[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] using the href attribute


Subject: Re: [xsl] using the href attribute
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Sun, 15 Jun 2003 17:17:13 +0200

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
Keywords
xsl