English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

im building a menu for my web site using asp.net and xml to store the menu content.

The content is then pulled in to a web user control with a tranform where i can attach both client and server side scripts to the menu.

im having a spot of bother with attaching events to different submenus within the control using the xsl.

the code block goes something like this ...


javascript:ShowThisObject('');


everything except the value of element seems to be doing its job
the output i get on the page goes something like this ...

onmouseover="javascript:ShowThisObject(' ');"

and of course this is nested inside an elements opening tag to which i want the script attached.

my question is ...

How do i get it to output the custom and constantly changing object id's in the attributes content ?

2006-07-24 22:57:31 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

you should write the code in one line like
javascript:ShowThisObject('');

instead of


javascript:ShowThisObject('');


That problem is because of the newline character

good luck

2006-07-25 00:26:27 · answer #1 · answered by mdy 2 · 10 1

The xml checklist is an elementary textual content checklist, you are able to open it in maximum cyber web browsers, notepad and so on. ( Notepad++ is likewise good for enhancing xml ). changing it to xsl will in all likelihood reason you extra issues because of the fact the reader might in all likelihood spotlight lots of the checklist as having blunders.

2016-12-14 13:20:02 · answer #2 · answered by ? 4 · 0 0

Find it here

http://www.google.co.uk/search?hl=en&q=xsl&btnG=Search&meta=

2006-07-24 23:01:47 · answer #3 · answered by Joe_Young 6 · 0 0

fedest.com, questions and answers