RE: [Boston.pm] sending a user to the middle of a page from a form post

2005-03-08 Thread Aaron Sherman
On Tue, 2005-03-08 at 15:08, Tal Cohen wrote: > I am not sure if this will work, but...Try embedding an anchor tag name into > the path of the Perl CGI URL called in your FORM tag. Then, have the > Perl-CGI script embed that same anchor tag into the resulting HTML document. > What should happen is

Re: [Boston.pm] sending a user to the middle of a page from a form post

2005-03-08 Thread Alex Brelsfoard
Sorry, I guess I wasn't quite specific enough on my description. Yeah, I know how anchor tags work. But my problem is that the the html page is being made by a cgi script. That page made by said cgi script has anchors on it. I would like to be able to have the page load to a specific anchor

Re: [Boston.pm] sending a user to the middle of a page from a form post

2005-03-08 Thread Duane Bronson
I know this doesn't exactly answer your question, but you could set the focus to a form element with the -onLoad argument. print start_html(-onLoad=>"document.SelectImages.elements[0].focus();"); print start_multipart_form(-name=>"SelectImages",-method=>'POST'); Perhaps instead of focus(),

RE: [Boston.pm] sending a user to the middle of a page from a form post

2005-03-08 Thread Tal Cohen
I am not sure if this will work, but...Try embedding an anchor tag name into the path of the Perl CGI URL called in your FORM tag. Then, have the Perl-CGI script embed that same anchor tag into the resulting HTML document. What should happen is now when you call the CGI script, the browser will

Re: [Boston.pm] sending a user to the middle of a page from a form post

2005-03-08 Thread Chris Devers
On Tue, 8 Mar 2005, Alex Brelsfoard wrote: > Is there any way to have the content all spat out and then send some > sort of message to the browser telling it to go to a specific anchor > point on that page? Yes. The html uses a Foo non-linking anchor, e.g. Target The URL then points to

[Boston.pm] sending a user to the middle of a page from a form post

2005-03-08 Thread Alex Brelsfoard
OK, so here's what we've got. We have a perl CGI that spits out a form based on some info in a db. A user will fill out that form and hit submit. the submission actually goes to the same CGI which now interprets what it needs to do (basically its handed search criteria). It then spits out a