I have a select box and a link. Something like this.
The user picks an option from the select box and then clicks on "Edit". I open a NEW window using a custom javascript function called CreateWindow and pass the value of the option through my url as shown. But the first time I do this I always get an empty string in the new window! The page first opens my link and then submits the page, but I want it to submit the page first and then open the link, so I can get the value of the option. Does anyone know a work around or a diffirent way of doing this?
Code:
<select name="select" size="10">
<option value= "116">X</option>
<option value= "117">Y</option>
<option value= "118">A</option>
<option value= "119">B</option>
<option value= "120">C</option>
</select>
<a href ="javascript:document.form1.submit();CreateWindow('[URL unfurl="true"]http://127.0.0.1/edit.cfm?ID=#Form.Select#')"[/URL] > Edit </a>
The user picks an option from the select box and then clicks on "Edit". I open a NEW window using a custom javascript function called CreateWindow and pass the value of the option through my url as shown. But the first time I do this I always get an empty string in the new window! The page first opens my link and then submits the page, but I want it to submit the page first and then open the link, so I can get the value of the option. Does anyone know a work around or a diffirent way of doing this?