Table cell address/content

J

Joet

HI, I need assistance. I have a page with a table with many cells. Each cell has data with attached hyperlink to some other page. What I would like to do is the following: when I click on the cell(hyperlinked), and the new page is displayed, I would like to have the data/address of the table cell that send me to the page I am now looking at. I may repeat this several times. The reason I want to know how I arrived to the page I am now on, I would like to display that data in a header on the page I am now viewing. I hope this makes sense.
I appreciate for your help.
 
S

Stefan B Rusynko

You can pass a variable w/ each hyperlink
<a HREF="http://www.foo.com/index.htm?cell=cellname1">Cell1</a>

and write it on the receiving end page as
<script language="JavaScript"><!--
document.write("+location.search.substring(1)");
//--></script>




| HI, I need assistance. I have a page with a table with many cells. Each cell has data with attached hyperlink to some other
page. What I would like to do is the following: when I click on the cell(hyperlinked), and the new page is displayed, I would like
to have the data/address of the table cell that send me to the page I am now looking at. I may repeat this several times. The reason
I want to know how I arrived to the page I am now on, I would like to display that data in a header on the page I am now viewing. I
hope this makes sense.
| I appreciate for your help.
| --
| Jose Maria
 
S

Stefan B Rusynko

Try document.write(location.search.substring(1));





| Hi Stefan,
|
| I followed your instructions. I get the following results when following the hyperlink:
| "+location.search.substring(1)" appears on the beginning of the receiving page. I have searched HELP, but am unable to find any
documentations where it talks about parameters and how they may be used with hyperlinks.
|
| Any Suggestions?
|
| Thanks Again,
| --
| Jose Maria
|
|
| "Stefan B Rusynko" wrote:
|
| > You can pass a variable w/ each hyperlink
| > <a HREF="http://www.foo.com/index.htm?cell=cellname1">Cell1</a>
| >
| > and write it on the receiving end page as
| > <script language="JavaScript"><!--
| > document.write("+location.search.substring(1)");
| > //--></script>
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | HI, I need assistance. I have a page with a table with many cells. Each cell has data with attached hyperlink to some other
| > page. What I would like to do is the following: when I click on the cell(hyperlinked), and the new page is displayed, I would
like
| > to have the data/address of the table cell that send me to the page I am now looking at. I may repeat this several times. The
reason
| > I want to know how I arrived to the page I am now on, I would like to display that data in a header on the page I am now
viewing. I
| > hope this makes sense.
| > | I appreciate for your help.
| > | --
| > | Jose Maria
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top