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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.