ZupaDupa
01-12-2003, 10:23 AM
I have 2 frames, 'top' and 'bottom'. The 'bottom' frame has a textbox and a button in a form. Id have to send the text from the textbox to the 'top' frame.
|
Click to See Complete Forum and Search --> : sending text to a frame? ZupaDupa 01-12-2003, 10:23 AM I have 2 frames, 'top' and 'bottom'. The 'bottom' frame has a textbox and a button in a form. Id have to send the text from the textbox to the 'top' frame. khalidali63 01-12-2003, 10:44 AM I have attached the solution in a zip file njoy Khalid ZupaDupa 01-12-2003, 11:05 AM I appreciate your reply. But... is there a way to send text to the frame so all the posted texts would stay in it? khalidali63 01-12-2003, 12:10 PM do u mean to place text in a variable? because the top frame has to have a document to performa ny tasks at all. and a documnet will be an html page in that frame. Please elaborate what exactly u meant. Khalid ZupaDupa 01-12-2003, 12:15 PM Heres an example: I type 'hello' to the textbox and press the button. Now the topframe says: hello Then I type 'world' to the textbox and press the button. Then the topframe should say: hello world khalidali63 01-12-2003, 12:28 PM I don't uderstand why,cus if you want to retain the last value,wht if user types the same value again??? ne wyas.. in the bottom.html page copy the all the code inclusive of script tags. This will do exactly what you want ,but you will have to adopt some functionality to delete the duplicate entries a user might add. Khalid <script language="JavaScript1.2"> var val = ""; function process(){ var prnt = parent.frames[0]; val += document.form1.txt.value+" "; //now write the text value in the uper frame prnt.document.getElementById("message").innerHTML = val; } </script> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |