Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 18th, 2004, 06:35 AM
Authorized User
 
Join Date: Jul 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default function SymError() problem

well im not sure where to post this ..

anyway ive a dhtml menu being loaded using the following tags

<script language="JavaScript" type="text/javascript">
var navVer = navigator.appVersion;
if(navVer.substr(0,3) >= 4)
if((navigator.appName=='Netscape') && (parseInt(navigator.appVersion)==4))
document.write("<"+"script language='JavaScript' type='text/javascript' src='scripts/nsmenu.js'><\/script\>");
else
document.write("<"+"script language='JavaScript' type='text/javascript' src='scripts/iemenu.js'><\/script\>");
</script>

but it does not run in my asp,html pages if it run friom my local server .. but works fine if i simply open the html file directly in the browser.

when i checked the source of the runtime asp & html i did notice this code placed right above my script tags of js.

<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

and a closing sequence of similiar nature at the end of the page.

Is it b'coz of this that my dhtml menus dont work. if yes how do i get rid of this auto placing javascripts. i guess (im not sure) it started after i installed the .Net SDks ..

 
Old July 18th, 2004, 06:46 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The stuff about SymError is added by the Anti ad software from Norton Internet Security.

If you disable that feature, or your entire firewall, you'll notice that the code disappears. It's then much easier to debug a page, because errors are no longer hidden....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Round Function darrenb Access 3 May 22nd, 2007 05:45 PM
Date Function problem beetle_jaipur Classic ASP Basics 5 July 6th, 2006 01:08 PM
Msgbox Function Problem theokrtz Classic ASP Basics 4 July 4th, 2006 03:35 AM
Problem with function mat41 Classic ASP Basics 3 July 16th, 2005 01:19 AM
shell function problem bml Excel VBA 1 February 12th, 2005 05:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.