Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 12th, 2004, 06:42 PM
kkxsl kkxsl is offline
Junior Member
Dev Articles 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','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

Reply With Quote
  #2  
Old January 12th, 2004, 09:26 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
How are you setting the variable?

Reply With Quote
  #3  
Old January 13th, 2004, 08:57 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
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?

Reply With Quote
  #4  
Old January 14th, 2004, 11:23 AM
kkxsl kkxsl is offline
Junior Member
Dev Articles 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
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')">

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > 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 1 hosted by Hostway
Stay green...Green IT