473,671 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to pass a parameter using HTML link?

I'm new to XSL and am trying to pass a variable from a link on an HTML
page to a page containing XSL that needs to receive the parameter.

So, I'm thinking I need something like this:

1. A link with a parameter:
http://www.host.com/receivingpage.ht...gory=computers

2. A way for the XSL on the "receivingpage. htm" to be able to grab the
"computers" value from the link and use it in the rest of the XSL
processing.

Any thoughts on how to do this?

I'm sure it's simple but a search on this site (and google) didn't turn
up any clear examples.

Thanks!

Jul 20 '05 #1
4 7830
bearclaws wrote:
I'm new to XSL and am trying to pass a variable from a link on an HTML
page to a page containing XSL that needs to receive the parameter.

So, I'm thinking I need something like this:

1. A link with a parameter:
http://www.host.com/receivingpage.ht...gory=computers

2. A way for the XSL on the "receivingpage. htm" to be able to grab the
"computers" value from the link and use it in the rest of the XSL
processing.

Any thoughts on how to do this?

I'm sure it's simple but a search on this site (and google) didn't turn
up any clear examples.

Thanks!

But is not 'receivingpage. htm' a html page? Where does xsl come into play?
Jul 20 '05 #2
Sorry - receivingpage.h tm is an html page but it contains the calls to
the XML and XSL page.

I found this solution which works very well; however, it seems pretty
complicated for what I'm trying to do:
http://www.experts-exchange.com/Web/..._20310939.html

Any thoughts on a simpler solution?

I'm in the process of deconstructing the above soultion. I'll post my
results if I can scale the code down properly.

Jul 20 '05 #3
bearclaws wrote:
Sorry - receivingpage.h tm is an html page but it contains the calls to
the XML and XSL page.

I found this solution which works very well; however, it seems pretty
complicated for what I'm trying to do:
http://www.experts-exchange.com/Web/..._20310939.html

Any thoughts on a simpler solution?

I'm in the process of deconstructing the above soultion. I'll post my
results if I can scale the code down properly.

Well, I do this all the time in some of my applications:

Using java, getting the parameter passed is a no brainer. Building an in
memory xml document or modifying one using the parameter is also trivial.
I know that one can pass variables to an xsl file, but I have never
attempted to do so.
Jul 20 '05 #4
I can do this easily with ASP but cannot use it for this particular
project...so I'm stumped.

I have to think that there is a Javascript or simple solution for this.

Anybody?

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8372
by: LarryM | last post by:
Hi, A newbie-question: I would like to send in a parameter with the starting link. I suppose I can do this with: 'http://www.mySite.com?param=xxx'. But I cannot figure out how to read that param-value. Putting '?param=xxx' after the websiteName does not indicate exactly which page is receiving the parameter.
3
32143
by: DCB | last post by:
Hello. I have an easy question, likely, that has me in a headspin. I have an include file to a frames based site that basically forces frames on the end user if they visit the site and hit a non-frames created page... Simply, it is: if (parent != self)
1
12987
by: TErnst | last post by:
Hello All.... What I am attempting to do is have a link/button on a page (testpopup.cfm) that opens a popup page (popupwindow.cfm). The popup page displays a resultset from a query and the selected record needs to be passed through a query string/URL parameter to the original calling page and will be available in the body onload event of the calling page. I open the popup window and display the query results, I then click on
23
12265
by: John | last post by:
Last year, I remember finding a web page describing how to pass the name of a file to another web page, and have that web page load that image file. Now, I can't find my record of that (it was saved on another computer that I can't get to right now), and I can't remember what search parameters I used to find it when I googled the topic. Can anyone point me the right direction? I'd like to use a method that would be accessible to the...
5
3744
by: Fresh Air Rider | last post by:
Hello Could anyone please explain how I can pass more than one arguement/parameter value to a function using <asp:linkbutton> or is this a major shortfall of the language ? Consider the following code fragments in which I want to list through all files on a directory with a link to download each file by passing a filename and whether or not to force the download dialog box to appear.
1
1217
by: Phill | last post by:
Can you pass a command line parameter to an app that is deployed thru one touch using IE. Passing the parameter in the http link causes the file not to be found. Any ideas how the website can pass info to the program?
3
1615
by: Chris | last post by:
I have a modal (yes it must be modal) web page. I do this by having an empty frame that points to my main page (so that I can repost without new popups) I have to pass data to the child page from the parent and the only way I can figure to do it by the url. Please correct me if I'm wrong on that. When the data get to my frame I then have to pass the data to my child form, again through the url (i think). The only way I found to do...
5
13984
by: JohnDriver | last post by:
Hi, I am having a form which has a text box and 3 radio buttons. I am using GET method in Ajax to pass the value. I can pass the value of the textbox fine but how to pass the value of radio button? I searched a few things on Google but I find the javascript below most useful in my case but there is some problem that my code is not running: var test = document.getElementsByName("meal"); for (i = 0; i < test.length; i++) {
12
11080
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
0
8476
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8914
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7433
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5695
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2810
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
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.