Jump to content

Anchors and Variables


redgunner

Recommended Posts

Looks like nobody knows, so I'm going to help out. :) lucky you!

 

These links says you can and has some information about how to do it:

http://www.coderanch.com/t/111999/HTML-JavaScript/anchor-tag-passing-variable

http://www.ahfb2000.com/webmaster_help_desk/showthread.php?t=7579

 

I'm afraid I don't know how to do it but at least 2 examples in from the links above (that I don't understand). Please see my signature warning.

The links Namtip suggested will not help you.

 

:shrug: :shrug: :shrug:

 

Is it possible to pass variables through #anchors for example <a href="#edit?id=xxx"> and if so how?

No, it is not possible to send variables after the # sign. Anything after the # will not be sent in the HTTP request to the server.

random thoughts...

 

1. create a variable that is combination of the anchor tag name and the id (ie anchor_name ."|" . id)

2. use normal url variable pass - using the comboname as the data being passed

3. at the target page break the combo back to two variables

4. use <body onLoad="window.location = '#anchor_name'"> in your target page

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.