Results 1 to 2 of 2

Thread: List Values - onChange=submit / Help

  1. #1
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation List Values - onChange=submit / Help

    How to add function to get onchange submit.

    below the functions and the form in my page:
    :
    Code:
     function openRoom(iRoomID, sRoomName)
    {
    	document.getElementById('roomname').innerText = sRoomName;
    	document.mychat.ReconnectClient(iRoomID);
    }
    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; }
    }
    and for the list value form this code:
    Code:
    <form name="form" id="form">
                        <select name="jumpMenu" id="jumpMenu">
                          <option value="JavaScript:mychat.ReconnectClient(100);">Room1</option>
                          <option value="JavaScript:mychat.ReconnectClient(101);">Room2</option>
                        </select>
                        <input type="button" name="go_button" id= "go_button" value="Go" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" />
                      </form>

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,369
    Thanks
    31
    Thanked 141 Times in 136 Posts
    Blog Entries
    32

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
  •