|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Window.Open in XSL
Hi Guys
I am new to XSL. I want to use a <a href> tag with the javascript window.open function. This is a sample code of what i am trying to do $href_to_go_to value is URL and this is what I write in the xsl file for the <a> tag <a href="#" onClick="window.open('$href_to_go_to','displayWindow','menu bar=no,toolbar=no,resizable=no,width=210,height=90 ')"> The problem is that the link does not work. It passes the string $href_to_go_to 'as is' I have tried '$href_to_go_to' without the ''(quotes) - but that doesnt work either. Any help would be greatly appreciated. Thanks in advance KK |
|
#2
|
||||
|
||||
|
How are you setting the variable?
|
|
#3
|
|||
|
|||
|
Sorry for sounding lost... But I don't see any XSL whatsoever in the post... Are you sure the question is related to XSL? Maybe I'm overlooking something...
KKXSL: Is there any other code you can paste for us... How are you storing the value in $href_to_go? |
|
#4
|
|||
|
|||
|
Guys I found the answer
I had put the $href_to_go_to in {} to make this work. <a href="#" onClick="window. open('{$href_to_go_to}','displayWindow','menubar=n o, toolbar=no,resizable=no,width=210,height=90')"> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Window.Open in XSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|