View Full Version : why wont my go button go?
Johnnymushio
11-10-2007, 03:58 AM
http://japantown.awardspace.com/news.shtml
thers the page with the go button that doesnt work.
here is the code.
<form name="form" id="form">
News Jump:
<select name="jumpMenu" id="jumpMenu">
<option value="message1.shtml">Update - Message 1</option>
</select>
<input type="button" name="go_button" id= "go_button" value="Go" onClick="MM_jumpMenuGo('jumpMenu','parent',1)">
<br>
</form>
jscheuer1
11-10-2007, 04:20 AM
Error: MM_jumpMenuGo is not defined
Source File: http://japantown.awardspace.com/news.shtml
Line: 1
The function is not available to the page.
Johnnymushio
11-10-2007, 04:23 AM
umm ok? but, how do i fix it
tech_support
11-10-2007, 04:25 AM
Have you deleted any code recently?
Johnnymushio
11-10-2007, 04:28 AM
no i just added this jump menu today
jscheuer1
11-10-2007, 04:34 AM
no i just added this jump menu today
Apparently you neglected to add the supporting javascript code for it. Selects don't automatically navigate to pages, where did you find this code in the first place?
Johnnymushio
11-10-2007, 04:34 AM
fixed.. had to do with the fackt that i use ssi included for the top part of my pages.
this had to be added to the head
<script type="text/javascript">
<!--
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
var selObj = null; with (document) {
if (getElementById) selObj = getElementById(objId);
if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0; }
}
//-->
</script>
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.