473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to send a variable value from html to XSLT?

3
Hi

I have a xsl page, that shows 14 barcodes on one page for printing.

I have created a dropdown list so that you can define how many barcodes you want on a single page.

I have an xsl variable "barcodeTotalNr" with default value of 14.

I have a dropdown list "barcodeTotal" which assigns a value to be read into "barcodeTotalNr" by a reloading / submiting the page.

How can I get xsl variable "barcodeTotalNr" to get the value from the drop down list at sumbit / reload??

I have the following code:

Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript">
  2.    <! [CDATA [
  3.    Funktionen updateNumberOfBarcode () {
  4.      var barcodeTotal = $ $ ("barcodeForm") barcodeTotal.value.
  5.      document.barcodeForm.submit ();
  6.    }
  7.    ]]>
  8. </ script>
  9. <-! Standardværdi for $ barcodeTotalNr = 14 ->
  10. <xsl:variable name="barcodeTotalNr" select="14" />
  11. <br/>
  12. <form id="barcodeForm" name="barcodeForm" action="">
  13.    <-! input type = "hidden" id = "bcTotalNr" name = "bcTotalNr" value = "" / ->
  14.    <span class="csslabel">
  15.    <xsl:value-of select="Update den list"/>
  16.    </ span>
  17.    <select id="barcodeTotal" name="barcodeTotal" class="cssinput" onchange="updateNumberOfBarcode()">
  18.      <option value="2"> 2 </ option>
  19. <option value="4"> 4 </ option>
  20. <option value="6"> 6 </ option>
  21. <option value="8"> 8 </ option>
  22.      <option value="10"> 10 </ option>
  23. <option value="12"> 12 </ option>
  24. <option value="14" selected="selected"> 14 </ option>
  25. <option value="16"> 16 </ option>
  26.    </ select>
  27.    <br/>
  28. </ form>
May 15 '12 #1
1 3560
Dormilich
8,658 Expert Mod 8TB
How can I get xsl variable "barcodeTotalNr" to get the value from the drop down list at sumbit / reload??
unless you have a server script that does the XSL transformation that’s afaik not possible, as I am not aware that XSL alone has access to the HTTP data.

though I don’t see where you use that XSL Variable in your code ...
May 15 '12 #2

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

Similar topics

1
by: Mauro | last post by:
I want to send a value called country to a page page2.asp from page1.asp. I have a field to entry this text value (variable fname) like this: <td class="titulos" width="14%">Station Code: <input...
3
by: hendedav | last post by:
Hi gang. As with any other post, I am working on a project and have gotten stuck. I am trying to obtain a variable value in the parent webpage from an <iframe>. For instance: Parent Page code...
4
by: tnhoe | last post by:
Hi, if I have both javascript and aspscript, how to get/retrieve the variable value in javascript into asp variable ? regards hoe
1
by: Shapper | last post by:
Hello, In my Global.asax I set a Session variable named "culture" which has the current culture being used in my web site. In my HTML page I need to preload the images for the current culture....
6
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...
3
by: valerehorath via AccessMonster.com | last post by:
Hi, I am attempting to select a value in a combo box in a form in access 2000 and pass it to a variable in an html document. How can i do this? Thank you very much. -- Message posted via...
2
by: rahulhere | last post by:
send some example how we increment a global variable value som few functions
1
by: everlives | last post by:
Hello Please help me any one. i am trying to send variable from scroll pane in Flash 8 to PHP But i am not getting the value "undefined": the code as follows: // create an xml object...
4
by: mskichu | last post by:
hi, I have a xml in which I want to replace the element(s) value with XSLT Xml message <Message> <case> <party1> <!-- there are other elements -->
4
by: jessy | last post by:
i need to know if its possible to write the value of a Javascript variable inside HTML tag ..and here's the line : var x=document.getElementById('div1').value; formdiv.innerHTML =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.