xsl-list
[Top] [All Lists]

Re: using the href attribute

2003-06-15 08:17:13
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({(_at_)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



<Prev in Thread] Current Thread [Next in Thread>