I am getting the BranchMap by ZIpCode.It is working in IE8. But is not working in FireFox 3.6.14 Basically I have a TextBox for entering Zip code and Find Button to get the BranchMap.
Button OnClick event has Javascript function
.aspx page
<input id="fnd_box" name="zipcode" maxlength="7" type="text" value="Find by Zipcode"
<a class="fnd_button" href="javascript:openMap()
;">Find</a
>
Javascript function:
function openMap(){
var ezip=document.branchmap.zi
pcode.valu
e;
if(!ezip || isNVa(ezip)) {
alert('Please enter a valid zipcode.');
return false;
}
var bmurl='
http://www.branchmap.com/mapserver.php?client=xyz&mw=100&zpl=1&spl=2&zip='+ezip;
window.open(bmurl,'branchm
ap','width
=640,heigh
t=585,top=
0,toolbar=
no,persona
lbar=no,lo
cation=no,
directorie
s=no,statu
sbar=no,me
nubar=no,s
tatus=no,r
esizable=y
es,left=10
0,screenX=
100,top=10
0,screenY=
100');
}
How to make it work in FireFox 3.6.14 version.It's working fine in IE8.
Thanks
Did gives you an error message?
Try to change this line
var ezip=document.branchmap.zi
For this one
var ezip=document.GetElementBy
Also what is isNVa? a custom function? or perhaps you are trying to use isNAN function?