Forums
This topic is locked
Custom MM_JumpMenu Problem.
Posted 01 Aug 2005 16:49:33
1
has voted
01 Aug 2005 16:49:33 Bobby Hodges posted:
Hi folks. having a problem with a jump menu that passes two variables.Works just fine in FF, not at all in IE, it complains of an unterminated
string constant.
In FF, the url is formed like .snip..php?gTeamID=Albany&GOPPONENTID=Cook
This works fine in FF, jumps and everything. I can Paste this into IE and
it works, but the jump menu won't jump on it's own.
Anything obviously wrong here?
Using DWMX2004, php/mySql
Thanks for any help.
the jump code
<pre id=code><font face=courier size=2 id=code>
function MM_jumpMenu2(targ,selObj,restore){ //v3.0
eval(targ+".location='"+"showgamesgo.php?gTeamID=<?php echo
$row_rTeams['gTeamID']?>&GOPPONENTID="+selObj.options[selObj.selectedIndex].value+"'"

if (restore) selObj.selectedIndex=0;
}</font id=code></pre id=code>
The menu
<pre id=code><font face=courier size=2 id=code>
<select name="menu1" onChange="MM_jumpMenu2('parent',this,0)">
<option value="1">Select One</option>
<?php
do {
?>
<option value="
<?php echo $row_teamList['gOpponentID']?>"> <?php echo $row_teamList['gOpponentID']?> </option>
<?php
} while ($row_teamList = mysql_fetch_assoc($teamList));
$rows = mysql_num_rows($teamList);
if($rows > 0) {
mysql_data_seek($teamList, 0);
$row_teamList = mysql_fetch_assoc($teamList);
}
?>
</select>
</font id=code></pre id=code>
Edited by - bhodges616161 on 01 Aug 2005 16:51:00
Edited by - bhodges616161 on 01 Aug 2005 16:51:29