facebook

How to passed an xsl parameter to a javascript function insi

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #271985 Reply

    jadeite1000
    Member

    Hi:

    I am having problem passing an xsl param variable as a parameter to a javascript function inside an
    xsl styelsheet.

    Here is my xsl stylesheet.

    <xsl:param name=”numberOfRecordsFromDatabase” select=”search-result/rec-num” />
    <xsl:template name=”Body”>
    <body bgcolor=”#FFFFFF” leftmargin=”0″ topmargin=”0″ marginwidth=”0″ marginheight=”0″
    onLoad=”cloneHeader();window.parent.shrinkIFrame(<xsl:value-of select=’$numberOfRecordsFromDatabase’/>);”
    onresize=”cloneHeaderResize();window.parent.shrinkIFrame(<xsl:value-of select=’$numberOfRecordsFromDatabase’/>);”>
    </body>
    </xsl:template>

    I am trying to pass a variable called numberOfRecordsFromDatabase to
    a javascript function called window.parent.shrinkIFrame(<xsl:value-of select=’$numberOfRecordsFromDatabase’/>).

    Is this possible?
    If not, is there a way to do this.
    Any hint would be greatly appreciated.

    Yours,

    Frustrated.

    #272032 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to passed an xsl parameter to a javascript function insi

You must be logged in to post in the forum log in