[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
  • 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) <=
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member