[somewhat OT] dumb html / cgi question

Len Morgan len-morgan at crcom.net
Sun Apr 13 08:20:09 EDT 2008


I think you're missing something.  :-)  If I'm not mistaken, you put <a 
name="anchorname"/> to create a named anchor and then you can reference 
it.  I don't think it shows up as a link if you do it this way which may 
or may not be what you're after.

len

jbv wrote:
> Hi list,
>
> In html, anchors are used to lead endusers to specific sections
> of webpages. Anchors are included in tags and added to the
> link in the form :
>     http://www.myDomain.com/myPage.html#anchor-name
>
> But what if the html content is generated by a cgi script ?
>
> The only way I can see to lead users to a specific section of
> the page, is to define each section inside a <div> with an ID :
>     <div id="section_1">
>
> and then scroll to that section when the page opens, with a
> short script on the <body> tag :
> <body
> onload="window.scrollTo(0,document.getElementById('section_1').clientTop)">
>
> Or am I missing something ?
>
> Thanks,
> JB
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>   



More information about the use-livecode mailing list