[Pythonmac-SIG] fragment in pyhton ref doc's

Richard Gordon richard@richardgordon.net
Fri, 12 Jan 2001 18:33:20 -0500


>Most of the urls contain
>fragments (e.g. #12h-110) after the filename that are supposed to position
>the relevant section in the browser for viewing, however, only Netscape
>seems to accept this correctly.  ICab and IE just open the file at the top.
>This is also what they do if you click the hyperlink in the index file.
>
>!) Am I stuck with specifying Netscape as the only browser to use?
>
>2) What is this fragment specifying?  My Html 4 ref book does not list this
>kind of fragment, is it purely a Netscape extension?

hi-

I'm not convinced that I am really following you, but maybe this will 
help a little anyway. Generally, a url ending with # followed by a 
string is supposed to seek a named anchor, so #12h-110 would look for 
<a name="12h-110> in the target document. This works pretty much the 
same from one browser to another, so I don't think that's what's 
going on here. Another possibility is that this syntax is somehow 
being used to call the find() javascript function that is supported 
by Netscape but the last time I checked, was not supported by IE and 
probably isn't supported by iCab. This basically just triggers the 
find menu command, fills in the search string, and does the seek 
transparently once the entire target document is loaded.

So, that's my best guess and if it's correct, there's not much you 
can do but go in and hack together something in javascript that would 
trap for IE and maybe try to use textRange or something to emulate 
the find function.


Richard Gordon
--------------------
Gordon Design
Web Design/Database Development
http://www.richardgordon.net