[RESOLVED] Can't add value from form to the script
Hi everybody,
I am developing a website for a customer who used to be able to trace the parcels through using javascript. After a while the courier changed their routines, and this got out of function. Now courier has provided with new url, but still the code is not working. I hope someone can help me with this.
code is pasted below:
<form name="nettsporform" method="post" onSubmit="return submitNettsporForm(\'nettsporform\')">
<table width="750">
<tr>
<td valign="top" class="main" colspan="2">Bruk skjemaet under for å hente frem sporingsinformasjon om sendingen din. Siden vil åpne et eget vindu.</td></tr>
<tr>
<tr>
<td valign="top" class="main" colspan="2"> </td></tr>
<tr>
<td valign="top" class="main" align="right">Sending/kollinummer:<input type=\"text\" name=\"q\" id=\"value\" size=\"20\" maxlength=\"24\"></td>
<script language="javascript">
function submitNettsporForm(nettsporform) { window.open("http://sporing.posten.no/sporing.html?q="+document.nettsporform.q.value,"Nettspor","width=720,height=585,toolbar=no,menubar=y es,resizable=yes,status=yes,scrollbars=yes");
}
</script>
<td valign="bottom" align="left" class="main">
<a href="javascript:submitNettsporForm(\'nettsporform\')"><img hspace="5" src="includes/languages/norwegian/images/buttons/button_track.gif" border="0" alt="Hvor er sendingen?"></a></td>
</tr>
</form>
</table>
The problem is that I am not able to add value from the field name "q" to the url: http://sporing.posten.no/sporing.html?q= This is the field where customer puts in their parcelnummer.
Bookmarks