Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Javascript and Frames
#1
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.
[Image: Scorpion-Sig3.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Free Worker HTML, CSS, Javascript ImFocuzz 2 1,098 04-05-2014, 10:01 PM
Last Post: VHPanda
  [MyBBError Message] PLEASE HELP ME!! Enable Javascript Registration Error iRun 4 1,637 01-26-2012, 03:13 PM
Last Post: iRun
  Close Tab With Javascript. Qua 3 1,226 07-02-2011, 07:25 AM
Last Post: djakariuz
  Keyboard shortcuts with JavaScript faviouz 12 2,615 05-07-2011, 01:21 AM
Last Post: Danny
  Javascript Help. Form Submission. JohnRonder 0 786 02-01-2011, 11:12 AM
Last Post: JohnRonder

Forum Jump:


Users browsing this thread: 1 Guest(s)