Results 1 to 7 of 7

Thread: why wont my go button go?

  1. #1
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Question why wont my go button go?

    http://japantown.awardspace.com/news.shtml

    thers the page with the go button that doesnt work.

    here is the code.

    Code:
    <form name="form" id="form">
            News Jump:&nbsp; 
            <select name="jumpMenu" id="jumpMenu">
              <option value="message1.shtml">Update - Message 1</option>
            </select>
             &nbsp;
             <input type="button" name="go_button" id= "go_button" value="Go" onClick="MM_jumpMenuGo('jumpMenu','parent',1)">
             <br>
          </form>
    My Web Site
    Japan Town

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Error: MM_jumpMenuGo is not defined
    Source File: http://japantown.awardspace.com/news.shtml
    Line: 1
    The function is not available to the page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    umm ok? but, how do i fix it
    My Web Site
    Japan Town

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Have you deleted any code recently?
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    no i just added this jump menu today
    My Web Site
    Japan Town

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Johnnymushio View Post
    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?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    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

    Code:
    <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>
    My Web Site
    Japan Town

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •