Page 1 of 1

Javascript help

Posted: 2003-05-01 08:43pm
by Pu-239
How do I make the browser allow scripts in frames to access pages from other domains in other frames? Trying to make an auto-login page for nukezone, local test copy seems to work, but fails when trying to do so on the online page.

Posted: 2003-05-01 08:46pm
by Kelly Antilles
*shudder* java.


Is java turned on the page? (ie, it allows script)

Posted: 2003-05-01 09:27pm
by Exonerate
Not Java Kelly, Javascript.

I believe you can call another frame's stuff with

Code: Select all

parent.nameofotherframe.whateverpropertyyouwant
For example, if you wanted to change the location of another frame, you could do:

Code: Select all

parent.framename.location.href='whatever.html';
Hope that helped.

Posted: 2003-05-01 09:34pm
by Kelly Antilles
Pah, I hate Java anyway... Ew. Too bad there aren't other ways around it.

Posted: 2003-05-01 10:00pm
by StimNeuro
Granted, Java is the only language that I've learned(aside from HTML, which isn't really a programming language) but I actually like it. It's logical and easy to understand.

Posted: 2003-05-01 10:16pm
by Exonerate
Javascript was actually the closest thing to a real programming language I taught myself...

Started by making very lame crappy websites, eventually figured most of Javascript out...

Posted: 2003-05-02 01:07am
by phongn
Hmph. Netscape should have kept the name 'LiveScript' so that everyone under the sun didn't think it was some sort of derivative of Java.