outdoorxtreme1
Programmer
I am having a problem with this script. Its weird, sometimes I type in a number like 3333 and it will go to the google link like this:
Other times I type in the same number and it doesn't work.
Anyone see any problems with the code?
echo "<script language=\"Javascript\">
<!--
var str = \"left=0,screenX=0,top=0,screenY=0\";
if (window.screen){
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += \",height=\" + ah;
str += \",innerHeight=\" + ah;
str += \",width=\" + aw;
str += \",innerWidth=\" + aw;
} else {
str += \",resizable\";
}
function call_full() {
var saddr=document.getElementById('saddr').value;
var daddr=document.getElementById('daddr').value;
fullScreen('}
//-->
</script>";
echo '<form name="addr_form" id="addr_form">
<b>Get Directions</b>
<br>
<font size=2>Your address: (street, town, state)</font><br>
<input type="text" size=40 maxlength=40 name="saddr" id="saddr" value="" />
<input type="button" type="submit" onClick="call_full()" value="Go">
<input type="hidden" name="daddr" value="40.00000, -80.00000"/>
</form>';
Other times I type in the same number and it doesn't work.
Anyone see any problems with the code?
echo "<script language=\"Javascript\">
<!--
var str = \"left=0,screenX=0,top=0,screenY=0\";
if (window.screen){
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += \",height=\" + ah;
str += \",innerHeight=\" + ah;
str += \",width=\" + aw;
str += \",innerWidth=\" + aw;
} else {
str += \",resizable\";
}
function call_full() {
var saddr=document.getElementById('saddr').value;
var daddr=document.getElementById('daddr').value;
fullScreen('}
//-->
</script>";
echo '<form name="addr_form" id="addr_form">
<b>Get Directions</b>
<br>
<font size=2>Your address: (street, town, state)</font><br>
<input type="text" size=40 maxlength=40 name="saddr" id="saddr" value="" />
<input type="button" type="submit" onClick="call_full()" value="Go">
<input type="hidden" name="daddr" value="40.00000, -80.00000"/>
</form>';