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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JScript runtime error on DW3 jump menus

Status
Not open for further replies.

DeannaF

Programmer
Nov 8, 2000
1
US
I have created jump menus on a few pages in DW3. They work great at first, but if I change the page or it's template at all, the jump menus stop working. Selecting any options from the menu or clicking the Go button causes a MS JScript runtime error Object Expected.
Here is the code:
<select name=&quot;mnuComm&quot; onChange=&quot;MM_jumpMenu'
parent',this,0)&quot;>
<option value=&quot;comm_type_quest.asp?commType=tcpip&quot; selected>TCP/IP</option>
<option value=&quot;comm_type_quest.asp?commType=twinWin&quot;>Twinax thru Windows</option>
<option value=&quot;comm_type_quest.asp?commType=802&quot;>Ethernet 802.2</option>
<option value=&quot;comm_type_quest.asp?commType=twinDOS&quot;>Twinax thru DOS</option>
</select>
<input type=&quot;button&quot; name=&quot;gobtn&quot; value=&quot;Go&quot; onClick=&quot;MM_jumpMenuGo('mnuComm','parent',0)&quot;>

It highlights MM_jumpMenuGo('mnuComm','parent',0)in the debugger.
Please help me
Deanna
 
i have a different script that i have implemented on the pages of the site

Code:
//********************

this function goes into the head
  <script language=&quot;javascript&quot;>
   function firstvalue(test) {
   window.location=test
   }
  </script>

//********************

the function that goes into the select that has the value
to where u wnat to go

 onChange=&quot;firstvalue(this.options[selectedIndex].value)&quot;

//********************
one of the select options that has the selected option and
the * has to be replaced by the exact path of the url that u want to go to

 <option value=&quot;*****&quot;>2</option>[code]

pls replase the ****** in the value with the page you want to go to
if u dont want the page to go when the drop down in changed then u can use the onClick event for a button which you can add next to the drop down

 regards ::-) Unicorn11
abhishek@tripmedia.com
 
[red]Nothing is permanent in life except Change[red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top