Results 1 to 1 of 1

Thread: *RESOLVED* Javascript within xsl ?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Coventry, England
    Posts
    169

    *RESOLVED* Javascript within xsl ?

    Hi,

    I have a javascript function called NewWindow which I call from various aspx files.

    <!--
    function NewWindow(URL,w,h,scroll,sizeable,name)
    {
    var win = null;

    var LeftPosition;
    var TopPosition;
    var settings;
    sizeable='no';
    if(name=='')
    {
    name='win';
    }

    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',r esizable='+sizeable+''
    win = window.open(URL,name,settings)
    if(win.window.focus){win.window.focus();}
    }
    //-->



    How do I call NewWindow from within a XSL file? I currently have the following code in my XSL files which opens the link in the same window:

    <xsl:attribute name="HREF">/pages/flights_snowforecast.aspx?deal=<xsl:value-of select="flag" />
    </xsl:attribute>
    <xsl:value-of select="portname" />


    Thanks.
    Last edited by seh; Nov 20th, 2002 at 05:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width