I have a javascript tootip and am trying to have the var tip dynamically put in the page from my asp database inteface. with code like this
[code]..asp
<%=rsCard("CardDescription")%>
The tip is an id like this
Expand|Select|Wrap|Line Numbers
- ..html
- id="<%=rsCard("CardDescription")%>"
this gets the id from the database and works fine where card description I am using fro the id.
The javascript var tip is as follows.
Expand|Select|Wrap|Line Numbers
- ..javascript
- var tip6 = '<img src="a/6.jpg"><div class="tp2">dddddd</div>';
and sits in the head section.
I can use other asp lines of script like I am using for the id like the following
Expand|Select|Wrap|Line Numbers
- ..javascript
- var tip6 = '<img src="<%=Server.URLPathEncode(rsCard("ThumbnailURL"))%>"><div class="tp2"><%=FontName%></div>';
these work, but I am still stuck with the var tip6. This needs to be dynamically created too but doesnt work when I put an include there too.
Basically I need the var without having to define them all on the page or externally but created by the info in the database.
Any ideas for someone who knows nothing.
Richard