|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML and JavaScript1.2 [window.open(url,target,options)
Hello, i am newbie in XSL thema.
Please reply private to this mail, i dont wanna to spam your list with
such elementar things.
I have following problem. I have rendered XML data and want to show
those data.
Thouse data countains information for URLs (ID of record), and i wanna
to open new browser window without any visual controls like navibar,
statusbars.
This is avaible only starting JavaScript 1.2, but it seems that XML (on
IE5.5) always try to use JavaScript 1.0, which dont have additional
parametrs to function to window.open().
What i need is:
window.open("show.php?act=SHOW&showonly=1&pid=<xsl:value-of
select="id"/>", "simpleshow",
"toolbar=0,location=0,scrollbars=1,directories=0,status=0,menubar=0,resizable=1,width="+550+",height="+550+",left="+(screen.width-550)/2+",top="+(screen.height-550)/2)
*) i have tried that write in function and call them in right moment:
------------------------------------
<xsl:script language="JavaScript1.2">
function myFunction(eee) {
window.open("sk_pers_top.php?act=SHOW&showonly=1&pid="+eee,
"pers_izz_alt_win",
"toolbar=0,location=0,scrollbars=1,directories=0,status=0,menubar=0,resizable=1,width="+550+",height="+550+",left="+(screen.width-550)/2+",top="+(screen.height-550)/2)
}
</xsl:script>
<<<<<SKIPPED>>>>
<a class="ref">
<xsl:attribute name="onclick">
myFunction(<xsl:value-of select="id"/>)
</xsl:attribute>
<xsl:value-of select="vards"/>
</a>
-------------------------------------------------------
It doesnt work, just clicking on href the says:
"Error: Type mismatch: 'MyFunction'.
and i cant locate the problem.
*) Then i have tried simply integrate window.open in attribute inline.
-----------------------------------------
<a class="ref">
<xsl:attribute name="onClick">
window.open("show.php?act=SHOW&showonly=1&pid=<xsl:value-of
select="id"/>", "simpleshow",
"toolbar=0,location=0,scrollbars=1,directories=0,status=0,menubar=0,resizable=1,width="+550+",height="+550+",left="+(screen.width-550)/2+",top="+(screen.height-550)/2)
</xsl:attribute>
<xsl:value-of select="name"/>
</a>
-------------------------------------------------
Error: Cannot use parentheses when calling a Sub
It seems like, that it will use only JavaScript1.0.
Please help. I have tried out everything i know. I think for you - gurus
, that is no problem.
With best wishes and hope, Uwix.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








