marcoacs
06-10-2003, 09:57 AM
Hi all,
i need your help and experience in Javascript.
This is my sample form:
<form action="pagea.cfm" method="post" name="test_child_win">
<table width="468" border="0">
<tr>
<td>name</td>
<td>
<input type="text" name="name" id="name"></td>
<td></td>
</tr>
<tr>
<td>state</td>
<td>
<select name="states" size="1" id="states">
<option value="585585425258459658745269584526954">California</option>
<option value="695458245759615254485964851225987">Florida</option>
<option value="338458774156821305359024820358452">Texas</option>
</select></td>
<td><a href="#" onclick="MM_openBrWindow('pageb.cfm','pageb','')">new state</a></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="submit" value="Go" id="submit"></td>
<td></td>
</tr>
</table>
</form>
When user need insert a new state, open new child window, enter the name of the state, save that new state more a stateID (unique ID created in ColdFusion - 35 chars) in DB and send to parent window (form test_child_win->field states) 2 vars:
- the new state name
- the stateID
Is possible?
How to send to parent window stateID?
Thanx for any help.
Marco
i need your help and experience in Javascript.
This is my sample form:
<form action="pagea.cfm" method="post" name="test_child_win">
<table width="468" border="0">
<tr>
<td>name</td>
<td>
<input type="text" name="name" id="name"></td>
<td></td>
</tr>
<tr>
<td>state</td>
<td>
<select name="states" size="1" id="states">
<option value="585585425258459658745269584526954">California</option>
<option value="695458245759615254485964851225987">Florida</option>
<option value="338458774156821305359024820358452">Texas</option>
</select></td>
<td><a href="#" onclick="MM_openBrWindow('pageb.cfm','pageb','')">new state</a></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="submit" value="Go" id="submit"></td>
<td></td>
</tr>
</table>
</form>
When user need insert a new state, open new child window, enter the name of the state, save that new state more a stateID (unique ID created in ColdFusion - 35 chars) in DB and send to parent window (form test_child_win->field states) 2 vars:
- the new state name
- the stateID
Is possible?
How to send to parent window stateID?
Thanx for any help.
Marco