Doug Stewart on 18 Mar 2014 08:36:46 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] HTML Anchor & Post Data


It's actually a GET request, not a POST one. 

Short answer:
Anchor goes last. 

http://stackoverflow.com/questions/10158283/how-do-i-combine-an-anchor-tag-and-a-pased-variable-in-an-html-href

--
Doug Stewart

On Mar 18, 2014, at 11:18 AM, Casey Bralla <MailList@nerdworld.org> wrote:

I've written a project management program that uses a web interface.   One of
the things I want to do is include a link to an anchor on the page, so that
the page automatically scrolls down to the <a name="location"></a> anchor.

However, I also want to include data in the URL line as part of a "post"
process from a form.  

Unfortunately, I don't seem to be able to make both of these things happen at
the same time.

For example:

"http://www.somebody.com/cgi-bin/Project.py?ProjectNumber=2014-0001" works fine
to automatically load the page for this project number.

Likewise, "http://www.somebody.com/cgi-bin/Project.py#Anchor" automatically
jumps to the anchor location.

But I can't combine the 2!  If I try "http://www.somebody.com/cgi-bin/Project.py#Anchor?ProjectNumber=2014-0001", the project number is not
picked up by the python script.


Anybody got any ideas?




--

Casey Bralla

Chief Nerd in Residence
The NerdWorld Organisation

www.NerdWorld.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug