Support Forums

Full Version: Javascript and Frames
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What's Up?

OK, So i followed the tutorial and using practice .html's it worked. Now for the real deal, But for some reason it doesn't seem to want to do it? I'm trying to automaticly submit a thread on another forum, But first things first we need to input text into those text boxes!

Heres the main html that opens two other frames
Code:
<HTML>
<HEAD>
<TITLE>Frames Values</TITLE>
</HEAD>
<FRAMESET cols="20%,80%">
<FRAME SRC="left.html" name="left_frame">
<FRAME SRC="http://www.teamxlink.co.uk/forum/posting.php?mode=newtopic&f=12" name="right_frame">
</FRAMESET>
</HTML>
Main.html

this is the html that attempts to add text to the text field in the other frame.
Code:
<HTML>
<HEAD>
<TITLE>JavaScript Example 13</TITLE>
</HEAD>
<BODY>
<body onload="parent.right_frame.document.post.subject.value='Me!'">
<FORM>
<INPUT type="button" value="Add" onClick="parent.right_frame.document.post.subject.value='Me!'">
</FORM>
</BODY>
</HTML>
Left.html

But Neither onload or by clicking the button does it add the text, The form and the field name are defently correct. If you dont already know the other frame is the link to the post new thread on the xlink forum.

Anyone see the scripting hole?

Thanks Bye.