Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fullScreen script doesn't work all the time

Status
Not open for further replies.

outdoorxtreme1

Programmer
Oct 31, 2006
2
US
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>';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top