473,549 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need to pass some value from XSL to javascript.

2 New Member
I need to pass some value from XSL to javascript.
For the reasons it is inpossible to use xsl:param and xsl:variable.
There is some ‘if’ conditions in XSL that would modify that value.
I create id in my HTML.

Expand|Select|Wrap|Line Numbers
  1. <TABLE ALIGN ID="Table2">
  2.     <TR>
  3.         <td id="hasValue"/>
  4.     </TR>                        
  5. </TABLE>

Now I would like to save the data into that column.

Expand|Select|Wrap|Line Numbers
  1. <xsl:if test="$action = 'update'">
  2. <!—insert 0 into “hasValue”-->
  3. </xsl:if>
How can I do this?
And then I will be able to read that value in javascript.
Oct 12 '05 #1
0 2468

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1726
by: Al C. | last post by:
Is there a technique for this? Take a standard order-entry. You have your "header" info with the PO number, and Tax rate, etc. and then you have one to many item lines. Currently I do it all on one screen, but this is a PITA when an order has a lot of items as it results in a lot of server-trips as well as scroling. Everything is written...
1
2406
by: jiing.deng | last post by:
I have not learned Javascript,just copy & paste & revise <script language="JavaScript"> function confirmDelete{ re = confirm("Delete or not?(yes,cancel)"); if (re == "0"){<?php $re1 = 0;?>}else{ <?php $re1 = 1;?>} <!--the upper line will cause the confirm windows disappearing--!> return 0; } document.writeln(confirmDelete());
0
2426
by: Matt | last post by:
My problem is to allow ASP to interact with JSP, and I pass JavaScript object in my approach, but I wonder if it will work in network, not just in local machine. For testing purposes, the following are page1.html and page2.html that use Array JavaScript object to pass data back and forth. page1.html is able to transfer data to page2.html,...
11
10177
by: charlie_M | last post by:
I have a number of applications where I want to have many onclick='submit()' attached to different 'elements' on a single form ..... which sends the form to a CGI "script" which does all the validation. The problem is.. how can I code the submit()s so the CGI's form collection knows which 'element' was clicked?? I am NOT permitted to use...
7
2348
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a WinForms interface and then need to port that to a web app. I am kinda stuck on a design issue and need some suggestions / direction. Basically I...
6
9366
by: paul | last post by:
HI! How do we send a variable from an Iframe page back to its parent? I have a script that calculates the iframe's window size but I need to know how to send that value back to its parent so I can use it there. Thanks in advance :) Paul
3
1669
by: AAOMTim | last post by:
In my design, page 1 is a web-based dashboard used to assign resources to an organization. The dashboard includes information about the organization as well as a list of all assigned resources. Included on page 1 is a lookup button that will open a search menu to find additional resources to assign to the orgaization. When I press the...
1
3627
by: msg2ajay | last post by:
hello , i have to pass a 'span' id to the javascript function'. how can i pass that. when i tried like below it is working!!! may the function is in the same page.... eg: ---- <html> function dscptAction(){ var obj = document.getElementsByTagName("span");
0
7532
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7730
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7492
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3510
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1957
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1069
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.