|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate 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','menubar=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
|
|||
|
|||
|
You need to wrap the variable in braces: {}. Something like
Code:
<a href="#" onClick="window.open('{$href_to_go_to}','displayWindow','menubar=no,toolbar=no,resizable=no,width=210,height= 90')">
This assumes that you've already used <xsl:variable> to assign a value to $href_to_go_to. |
|
#3
|
|||
|
|||
|
Thanks bud! That worked
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Window.Open in XSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|