onmouseover in xslt

G

Guest

I am using VS2005 and creating a menu control. I have a script section in
the control (and also in the page itself) which will show a certain set of
submenus depending on a parameter passed in to the javascript function.

I am using an xslt file to show the contents of an xml file in the control,
and in the <th> element I am telling onmouseover to call the function in the
control (and page). The xslt page looks similar to this:

<th class="classname" onmouseover="javascript:functionname(param)"> Menu one
- </th>

When I run this, the control renders, but the function is not being called.

Can anyone point me to some good xslt tutorials, or better still, paste a
little code to show how to call onmouseover from an xslt file.
 
S

sloan

I always start with
<th class="classname" onmouseover="javascript:alert('single quote');"> Menu one
- </th>


You need to watch for "double your pleasure" quotes. Aka, one set is double
and one set is single.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top