Javascript help

OT: anything goes!

Moderator: Edi

Post Reply
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Javascript help

Post 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.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
Kelly Antilles
Sith Acolyte
Posts: 6417
Joined: 2002-09-12 10:36am

Post by Kelly Antilles »

*shudder* java.


Is java turned on the page? (ie, it allows script)
User avatar
Exonerate
Sith Marauder
Posts: 4454
Joined: 2002-10-29 07:19pm
Location: DC Metro Area

Post 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.

BoTM, MM, HAB, JL
Kelly Antilles
Sith Acolyte
Posts: 6417
Joined: 2002-09-12 10:36am

Post by Kelly Antilles »

Pah, I hate Java anyway... Ew. Too bad there aren't other ways around it.
User avatar
StimNeuro
Padawan Learner
Posts: 444
Joined: 2002-11-11 02:58pm
Location: Marietta, GA

Post 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.
"Well, it's too bad that thread pilots aren't allow to carry pistols.
Otherwise they would have stopped you." - Pablo Sanchez
User avatar
Exonerate
Sith Marauder
Posts: 4454
Joined: 2002-10-29 07:19pm
Location: DC Metro Area

Post 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...

BoTM, MM, HAB, JL
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post 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.
Post Reply