[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Tables interactive
something like the following... I have used the javascript:alert() function instead of your form populating function for testing. sample xslt <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method = "html" encoding="utf-8" /> <xsl:template match="/"> <html> <title></title> <body> <table> <xsl:apply-templates select="data/cell"/> </table> </body> </html> </xsl:template> <xsl:template match="cell"> <tr> <td onClick="javascript:alert('{.}')"><xsl:value-of select="."/></td> </tr> </xsl:template> </xsl:stylesheet> test data xml <?xml version="1.0" ?> <data> <cell>1</cell> <cell>2</cell> <cell>3</cell> <cell>4</cell> <cell>5</cell> <cell>6</cell> </data> gl, jim fuller -----Original Message----- From: Cross, Neal - Development Controller [mailto:ncross@xxxxxxxxx] Sent: 06 May 2003 15:05 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: Tables interactive The method I would use would be to use javascript to populate the HTML form items. For examople put this activator on your cell: <td onClick="cellStore('populatCellValueHere')">CellValue</td> Then use this javascript to store the value in the form for later usage: function cellStore(value) { document.formName.formItem.value=value; } Does this help at all? -----Original Message----- From: John Proctor [mailto:jproctor0@xxxxxxxxxxx] Sent: 06 May 2003 14:42 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Tables interactive I can create a table via xsl but is there any way of say clicking on a cell and having the contents copied into a field, the idea is to have say a shopping cart and for the user to select a cell via a mouse click and have the contents copied into a html field. Thanks for any help John Proctor _________________________________________________________________ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient please contact the sender immediately. Any disclosure, copying, distribution or any other use of this communication is strictly prohibitedand may be unlawful. Stuart Lawrence Marketing Communications Limited reserves the right to monitor and intercept communications for unlawful business purposes. This also confirms that this message has been swept for viruses, although Stuart Lawrence Marketing Communications Limited accepts no responsibility for any loss or damage resulting directly or indirectly from the use of this email or contents. 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
|