Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Dynamically jumping to section in page with #link

Quote Reply
Dynamically jumping to section in page with #link
Hi

I'm trying to pass a #link thorough from one page to another which goes through a linkSQL script.

A the moment I've got it added to the end of the hyper link like this:

Code:
<a href="admin.cgi?do=plugin&plugin=EasyPoll&func=poll&lst=gp#30">View Linked</a>

and in the page the script returns I've got this which is dynamically produced about 1/2 way down the page...

Code:
<a name="30"></a>

The problem is the page doesn't jump down that section when it loads for some reason.

Does anyone know how to get it working through the LinkSQL system?

Thanks!

r
Quote Reply
Re: [ryel01] Dynamically jumping to section in page with #link In reply to
Hi,

Don't you just need #30 and not the full URL?

i.e

<a href="#30">..</a>

?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Dynamically jumping to section in page with #link In reply to
hi andy - the link isn't on the same page otherwise yes that would work. What I'm doing is passing some information back to the script which is dynamically returning another page, and it's within that new page that I want to automatically jump down to a particular section.
Quote Reply
Re: [ryel01] Dynamically jumping to section in page with #link In reply to
Just ran into this last week.

The #tag is not passed through the script.

You can make a change to Jump.pm by adding the line in red, just below the line in bold at the end of the file.

Quote:


($goto =~ m,^\w+://,) or ($goto = "http://$goto");
####
($IN->param('Name_Tag')) && ($goto .= '#' . $IN->param('Name_Tag'));
####


And, in your links, if you want to jump to a tag, add :

jump.cgi?ID=<%ID%>;Name_Tag=<%field_for_name_tag%>


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.