[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How do I convert the use of onclick in HTML to wor

Subject: RE: How do I convert the use of onclick in HTML to work in XSLT?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 8 Mar 2006 20:43:06 -0000
onclick in html
There's no way onClick can "work in XSLT". XSLT performs a transformation on
an XML document to produce your HTML page. The HTML page can contain
anything - XSLT doesn't care, it's just data. Then the browser starts
displaying the HTML, and at this stage things like onClick can happen; but
by this time the XSLT transformer has finished its work and gone home to

Michael Kay

> -----Original Message-----
> From: Shirley Gasch [mailto:sgasch@xxxxxxxxxxxxxxxxxxxxx] 
> Sent: 08 March 2006 19:16
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  How do I convert the use of onclick in HTML to 
> work in XSLT?
> Hi Everyone,
> I am new to the list and to XSLT (but I am learning). I had the 
> following html that worked on a site with two frames. This was in the 
> default.html:
> FRAMEBORDER=1 title="Naviagation Area">
>        <FRAME SRC="WaiverHome.htm" NAME=b MARGINWIDTH=0 
> FRAMEBORDER=1 title="ESMO Configuration Modification Request Home 
> Page">
>     </FRAMESET>
> On the default.xsl, it is the following:
> <frameset cols="16%,64%" frameborder="1">
>        		<frame src="waivernav.xsl" name="a" 
> marginwidth="0" 
> marginheight="0" frameborder="1" title="Navigation Area"/>
>        		<frame src="waiverhome.xsl" name="b" 
> marginwidth="0" 
> marginheight="0" frameborder="1" title="ESMO Configuration 
> Modification Request Home Page"/>
>     		</frameset>
> Below is the html that used onclick (in waivernav.html) to put the 
> target frame in the right-hand frame:
> <TD ALIGN=center id=srch abbr="Search for a CMR">
>              <P><INPUT TYPE=button NAME=SearchSyLg 
> VALUE="Search  CMRs 
> " 
> onclick="window.top.b.location.href='FMPro?-db=WebWaivers.fp5&
> -lay=Normal&-format=WaiverSearch.htm&-view';return 
> true;"></P>
>           </TD>
> In the XSLT, I am using many forms to get buttons to work to make the 
> target pags to work properly with Filemaker Pro. Below is one of the 
> forms used with a button:
> <form method="post" name="SearchforCMR"><xsl:attribute 
> name="action">waiversearch.xsl</xsl:attribute>
> 					<p><input type="hidden" 
> name="-db" value="WebWaivers"/>
> 						<input type="hidden" 
> name="-lay" value="Normal"/>
> 						<input type="hidden" 
> name="-token.error" value="search_error.xsl"/>
> 						<input type="Submit" 
> name="-view" value="Search"/>
> 					</p>
> </form>
> I have tried many different things, but can't figure out where to put 
> onclick to do the same thing in xsl (the pages always wind up taking 
> up the whole page) or whether there is some other way to do this.
> Any suggestions would be appreciated.
> Thanks.
> Shirley Gasch
> -- 
> Shirley Gasch                                         Phone:  
> (301) 794-2164
> Computer Sciences Corporation       Fax:    (301) 794-8355
> 7700 Hubble Drive, Rm N384
> Lanham/Seabrook, Md.  20706         email: sgasch@xxxxxxx

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.