XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 12th, 2004, 06:29 PM
kkxsl kkxsl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 kkxsl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old January 13th, 2004, 12:02 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
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.

Reply With Quote
  #3  
Old January 13th, 2004, 11:29 AM
kkxsl kkxsl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 kkxsl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks bud! That worked

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Window.Open in XSL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway