HighDots Forums  

Re: Pass html form data in bi-directional ways

alt.html.dhtml alt.html.dhtml


Discuss Re: Pass html form data in bi-directional ways in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Vic Sowers
 
Posts: n/a

Default Re: Pass html form data in bi-directional ways - 03-06-2004 , 11:13 AM






This seems to work

Test.htm:
=================
<input id="Data" type="text">
<button onClick="MakeDialog()">Dialog</button>
<div id="Output"></div>
<script language="JavaScript">
var dlg=null;
function MakeDialog() {
dlg = showModalDialog("TestDialog.htm",Data);
}
</script>
================
TestDialog.htm:
================
<input id="Data" type="text" onChange="UpdateData()">
<script language="JavaScript">
Data.value = dialogArguments.value;
function UpdateData(obj) {
dialogArguments.value = Data.value;
}
</script>
================

"Matt" <jrefactors (AT) hotmail (DOT) com> wrote

Quote:
I have 2 html pages, both have a text box and a button. In page1.html,
when the user enter a text in text box, and click button, it will pass
the form data to page2.html, and it will open page2.html in a smaller
window and that data will show in text box in page2.html. In
page2.html, if the user changes the text box data and click the
button, it will update the data in existing window for page1.html. In
other words, data can transfer back and forth in page1.html and
page2.html.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.