Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: including javascript within the caption
phatrice
Junior Member

Posts: 7
Registered: 9/12/2003
Member Is Offline
posted on 9/16/2003 at 03:06 PM Reply With Quote
including javascript within the caption


hi, I am trying to include javascript within the caption which looks like

['<a href="" onClick="surprise('John')">',null,null],

but I haven't had much success with it despite tries with different conventions to escape the single quotes around 'John'

I tried \' I tried '\' I even tried ascii but it didn't work.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/17/2003 at 06:44 AM Reply With Quote

The following syntax is correct:
['<a href="javascript:;" onClick="surprise(\'John\')">Surprise...</a>'],
You should define href attribute, escape quotation marks, closing tag is required for anchor.
View User's Profile View All Posts By User U2U Member
phatrice
Junior Member

Posts: 7
Registered: 9/12/2003
Member Is Offline
posted on 9/17/2003 at 06:21 PM Reply With Quote

the code is like
<a href=\"javascript:;\" onClick=\"wow(\'foo\')\">Machine</a>

and the link is inside a table as well
and it didn't work, the error message was ";" expected.

the code is outputted from sever side which is why the double quotes are escaped, but the code works without escaped single quotes.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/18/2003 at 08:00 AM Reply With Quote

The code you've mentioned works fine with Tigra Tree Menu PRO v1.1.
So if you are still having troubles with it please send URL of your project or set of related files to via http://www.softcomplex.com/support/ Our specialists are ready to give you assistance with tree menu setup.
View User's Profile View All Posts By User U2U Member
phatrice
Junior Member

Posts: 7
Registered: 9/12/2003
Member Is Offline
posted on 9/18/2003 at 03:17 PM Reply With Quote

hi, I have version 1.0, how do I upgrade?
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/18/2003 at 03:45 PM Reply With Quote

Please contact us at http://www.softcomplex.com/support/
View User's Profile View All Posts By User U2U Member
phatrice
Junior Member

Posts: 7
Registered: 9/12/2003
Member Is Offline
posted on 9/18/2003 at 10:06 PM Reply With Quote

thank you very much, it's working now
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004