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

To show a javascript dropdown menu in a jsp

Status
Not open for further replies.

pravzICS

Programmer
Aug 8, 2005
12
0
0
US
Hi all,

I am trying to show a javascript dropdown menu in a jsp page, but its not popping up at all.

say, when I open static.html, it shows .js drop down, but when I try opening the same page (.jsp or even .htm) in my application, the drop down does'nt come at all. i am using:

<script language="JavaScript1.2"
SRC="scriptspath/dropDownMenu.js"> </script>

It would be great if you can give me suggestions about what could go wrong.

Thanks a lot.

Pravz
 
Hey Pravz,

Try this:

<script language="JavaScript"
SRC="scriptspath/dropDownMenu.js"></script>
 
OR

<script language="javascript1.2"
src="scriptspath/dropDownMenu.js"> </script>
 
thanks for replying kendel,
tried both, it does't seem to work still.
still struggling...
pravz
 
Or
<script language="javascript"
src="../scriptspath/dropDownMenu.js"></script>

move your dropDownMenu.js to the same folder with your page and try this see if it will work?

<script language="javascript" src="dropDownMenu.js">
</script>
 
this does'nt work either. actually the drop-down comes when you open the static html page, but when included in the application, then it does't come up.
thanks
pravz
 
That's strange. I include a .js file in my file and it work just fine. Maybe that has something to do with how you include it in your page.

Here is how I include it:

<head>
<script language="javascript" src="popupMenu.js"></script>
</head>

and then I call the function inside that file like this:

<input type='txet' name='myText' onClick='MenuPopUp()'>
 
I am using the same to include the .js in my application. actually, I am using Struts framework, then might some other problem and not a javascript problem.
still struggling...
thanks anyway,
pravz
 
If if open it in netscape, I finally see some error:

Error: BeginSTM is not defined.

I have defined it but does anyone know what parameters does this take ? or any link which can tell me that.

Thanks a lot.

Pravz
 
I got it :)
it was about configuring it with struts framework.
thanks kendel,
pravz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top