Topic: javascript error I can't figure out (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=30259" title="Pages that link to Topic: javascript error I can&amp;#039;t figure out (Page 1 of 1)" rel="nofollow" >Topic: javascript error I can&#039;t figure out <span class="small">(Page 1 of 1)</span>\

 
redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 05-12-2008 02:05

Hey all,

I've got a page that has multiple forms on it... when I submit one of the forms I'm using the php header function to pass it back to the submitting page...

code:
header("Location: /path/page.php?var=result#godown");



... for some reason (only in IE6 so far) if I try to use the anchor reference above "#godown" it kills all the javascript on the page and gives me an error, "Permission denied". If I remove the anchor reference it works fine but of course doesn't bump the user down to where they were in the first place. I'm not too worried about it as it only happens in IE6 but I was just curious if there is something simple I'm missing ?

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 05-12-2008 21:28

Any chance to see the page in question ?

What do the JS do anyway ?

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 05-13-2008 05:52

Hi poi,

Thanks for your time on this... unfortunately it's all on my local machine. The javascript that is being killed is very simple; just an image rollover script and a submit form on change script.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 05-13-2008 09:28

If it's local, it might be IE6 that is over zealous about security ...

Also, if the script is purely a rollover, you can certainly get rid of it and use CSS no preload rollovers.

Is it the entire script that is "killed" or just a specific function ? if it's the latter, try to comment each function and see where IE6 ticks.

liorean
Paranoid (IV) Inmate

From: Umeå, Sweden
Insane since: Sep 2004

posted posted 05-13-2008 18:34

Not sure whether I'm on the right track or not, but I think anchors and fragment identifiers are considered a fully client side feature (anchors are never sent in requests, to give an example. The server never knows about the anchor navigation, only the browser does.). As such, it might be that Internet Explorer actually doesn't allow them from the server, either.

--
var Liorean = {
abode: "http://liorean.web-graphics.com/",
profile: "http://codingforums.com/member.php?u=5798"};

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 05-13-2008 18:51

Correct. There must be an RFC about that, somewhere

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

posted posted 05-20-2008 17:11

That makes sense... thanks for the help.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu