Connecting Tech Pros Worldwide Forums | Help | Site Map

javascript working locally but not online

Newbie
 
Join Date: Jan 2007
Location: UK
Posts: 1
#1: Jan 27 '07
I am puzzled by a problem I am having with a javascript that is working on my computer (mac osx) but fail when put online. it happens only with the old IE 5.2 for mac and the iCab browsers. the code is very basic

window.focus();

function openAutumn() {
autumnWindow = window.open("autumn.html", "Autumn", "width=800,height=600,left=30,top=30,location=0,sc rollbars=0,menu=0,statusbar=0");
autumnWindow.focus();
}

but maybe something needs adding?

b

Expert
 
Join Date: Oct 2006
Location: NC
Posts: 1,722
#2: Jan 27 '07

re: javascript working locally but not online


Since you are using IE5 (not really sure why you wouldn't use an updated browser) make sure you have javascript enabled:


From the browser's Tools menu select "Internet Options".
Select the Security tab.
Pick the "Internet zone" icon.
Push the "Custom Level..." button.
Scroll down the Settings list to the Scripting item. (You may need to double-click on icons to expand lists.)
Under the "Active scripting" item, choose the Enable radio button.
Push OK and Yes to confirm and close the Security Settings dialog box, then OK again to close the Internet Options dialog box.
Refresh the current page.
Reply