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

convert this.id to vbscript 1

Status
Not open for further replies.

ASPVBNerd

Programmer
Joined
Nov 23, 2005
Messages
83
Location
SE
I dont know if this question should be i Javascript forum insted.

I have this code in that works great with javascript.
When i click on help the i send the id menuid4 to the Change_menu function in javascript.
Code:
<li id="menuid4" onclick="Change_menu(this.id);">Help</li>

Now I'm trying to use vbscript insted of Javascript.
I tried to change it to something like this but it didn't work.
Code:
onclick="vbscript: Skifta_Meny(this.id)

The error that I get is object..'this'
 
>[tt]<li id="menuid4" onclick="Change_menu(this.id);">Help</li>[/tt]
Try this.
[tt]<li id="menuid4" language="vbscript" onclick="Change_menu(me.id);">Help</li>[/tt]
 
Thank you very much tsuji.
Now it works.
 
I've forgotten to take out the semi-colon (;) at the end of the onclick handler. It shouldn't be there. Mind to take it out. Thanks!
 
I notice that, so i didn't post a reply about that because everyone understod that it just spelling error
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top