[somewhat OT] dumb html / cgi question

Björnke von Gierke bvg at mac.com
Sun Apr 13 14:28:21 EDT 2008


Anchors are not fetched from the server, but navigated to on the same  
page, so the browser does everything itself. Just use an anchored link  
as specified in the html source of your choice (mine is: http://w3schools.com/html/html_links.asp 
  ), and the browser of your users will handle the rest.

have fun
Björnke

On 13 Apr 2008, at 10:44, 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