Forum Moderators: open

Message Too Old, No Replies

IIS problems

cant get javascript to work

         

ncsuk

9:12 pm on Jun 12, 2003 (gmt 0)

10+ Year Member




Anyone know how to get javascripts working in IIS 5?

I should know how to do it but im having a go slow.

jeremy goodrich

9:14 pm on Jun 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Javascript being client side - shouldn't be any problem - it sounds like a client issue.

However, unless these are server side scripts?

ncsuk

9:16 pm on Jun 12, 2003 (gmt 0)

10+ Year Member



No its just a small fellow.

if (parent.location.href == self.location.href) {
holder page -->
window.location.href = '../index.html';
}

Basically a redirect if someone hits a frame.

jeremy goodrich

9:25 pm on Jun 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok, then that's a client side issue and has nothing to do with IIS ( I think).

Afaik, you can't do server side redirects with javascript, because the script gets executed by the client.

For your purpose, it might be best with an asp, asp.net, cfm, or perhaps Perl or PHP script.

ncsuk

9:34 pm on Jun 12, 2003 (gmt 0)

10+ Year Member



I could do all that but I just want it to work :(

It has worked before so I'm just wondering why it isnt now. I'll figure it out and tell you when I have.

plumsauce

10:26 pm on Jun 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




search for the term framebuster and you should find
working code.

i think that the trailing script comment should be
taken out, and the logical test should be!=
then set the location using parent.location=