[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: using the href attribute

Subject: Re: using the href attribute
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Sun, 15 Jun 2003 17:17:13 +0200
javascript openwindow
Kathy Burke wrote:

Ahhh, but I need to use a javascript to size the window, etc.

Any idea what's wrong with this?

<a href="javascript:openWindow({@url})">

Script is in html <head> section:

  <msxsl:script language="javascript" implements-prefix="kb"><![CDATA[
        function openWindow()
	  {
	  window.open(), 'Link Window', 'toolbar=1, menubar=1 resizable=1,
dependent=0
				width=400, height=300, left=25, top=25')
        }
	  ]]>
	  </msxsl:script>

A script in msxsl:script is meant to be run during XSL transformation, while the script in href attribute is meant to be run when user clicks on the link.
So they have no chance to interact.


--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • xsl or html?, (continued)
        • dsk - Sun, 15 Jun 2003 00:33:42 -0400 (EDT)
        • G. Ken Holman - Sun, 15 Jun 2003 09:03:31 -0400 (EDT)
    • Passin, Tom - Fri, 13 Jun 2003 16:29:41 -0400 (EDT)
    • Kathy Burke - Sun, 15 Jun 2003 10:01:46 -0400 (EDT)
      • Oleg Tkachenko - Sun, 15 Jun 2003 10:14:57 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.