DOCH
03-12-2006, 03:21 PM
i am trying to have a page on my site which where i send the postcode, it goes in to part of a url line which opens a new page and it will show me the map of that area,
i need the below code to work so that it receives a postcode from a form in another asp file, i have tried modifying it to make it work but i aint got a clue.
the code:-
<script language="javascript">
function go() {
var loc = "http://www.streetmap.co.uk/streetmap.dll?postcode2map?code=" + <%Request.Form("Postcode")%> + ""
location.href = loc;
}
the <%Request.Form("Postcode")%> is the bit where the problem is, the from which is in another asp file submits to this file and i was hoping that it would place the postcode in that part of the url line,
after i type in the postcode, and submit it to the asp page containing the code above all i get is a IE window displaying the line:-
function go() { var loc = "http://www.streetmap.co.uk/streetmap.dll?postcode2map?code=" + + "" location.href = loc; }
another thing is how do i get that code to open in a new window and go to the url
very grateful to any one who can help, thankyou
i need the below code to work so that it receives a postcode from a form in another asp file, i have tried modifying it to make it work but i aint got a clue.
the code:-
<script language="javascript">
function go() {
var loc = "http://www.streetmap.co.uk/streetmap.dll?postcode2map?code=" + <%Request.Form("Postcode")%> + ""
location.href = loc;
}
the <%Request.Form("Postcode")%> is the bit where the problem is, the from which is in another asp file submits to this file and i was hoping that it would place the postcode in that part of the url line,
after i type in the postcode, and submit it to the asp page containing the code above all i get is a IE window displaying the line:-
function go() { var loc = "http://www.streetmap.co.uk/streetmap.dll?postcode2map?code=" + + "" location.href = loc; }
another thing is how do i get that code to open in a new window and go to the url
very grateful to any one who can help, thankyou