This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xsl:for-each - passing value to a popup window


Hi Bryan,

This sounds more like a javascript/html question

The passing of values through http is via the use of the post or get
methods.

For example, your javascript function may open a new window and request the
address

"http://www.mydomain.com/somefile.php?value=something&value2=somethingelse";

The server side scripting language (PHP, CGI/Perl, ASP) can then display the
value passed (in the example above, using the get method, where the value is
passed in the URL)

>From the original window, use the xsl:value-of command to pass the value to
your new page from your XML (using Xpath)

ie.

<a
href="http://www.mydomain.com/somefile.php?value={/root/value/something}";>so
mething</a>

Best look into Javascript/HTML lists or the Server side implementation you
want to use as this isn't really XSLT related

Tim

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Bryan Tulloch
Sent: Thursday, 31 May 2001 2:23 AM
To: 'XSL-List@lists.mulberrytech.com'
Subject: [xsl] xsl:for-each - passing value to a popup window

I have a table, any cell of which when clicked generates an onclick event
which creates a popup window. The data in the table is populated using a
for-each loop. What I want to be able to do is to get the value of the data
in the particular row that is clicked and pass this to the popup, then to
display it in the popup.

Bryan


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]