Closed Thread Icon

Preserved Topic: Named Anchors in .shtml (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=16160" title="Pages that link to Preserved Topic: Named Anchors in .shtml (Page 1 of 1)" rel="nofollow" >Preserved Topic: Named Anchors in .shtml <span class="small">(Page 1 of 1)</span>\

 
warjournal
Maniac (V) Mad Scientist

From:
Insane since: Aug 2000

posted posted 07-07-2001 00:35

I'm using some SSI in something that I'm working on, hence .shtml. Now, I'm also using some named anchors. They don't seem to get along on my local machine. If I change the files to .html and edit the anchors, local machine previews fine. Otherwise I get 404 when I try to link to index.shtml#whatever.

Is this an OS feature? A Win 98SE thang?

I guess what I would like to know is if you folks running something other than Win 98SE have the same feature. Or if some of you Win 98SE users *don't* have this feature.

Just curious.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-07-2001 09:05

That's by design. You have to run web server on your computer if you want to test SSI locally.

Take a look at the FoxServ for Apache/PHP/MySQL bundle...

warjournal
Maniac (V) Mad Scientist

From:
Insane since: Aug 2000

posted posted 07-07-2001 16:04

"...get 404 when I try to link to index.shtml#whatever."

I can't use named anchors on my local machine in a SHTML doc. That's what I'm asking about.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-07-2001 16:19

Do you have a web server running on your machine? If you're opening shtml files using File/Open, then anchors won't work...

warjournal
Maniac (V) Mad Scientist

From:
Insane since: Aug 2000

posted posted 07-07-2001 16:34

Nope. Not running server. As a matter of fact, there is no SSI yet in the SHMTL docs that I am working on.

Named anchors in an .HTML doc works fine locally.

Now, <a href="some.shtml"> links just fine locally, but <a href="some.shtml#noway"> doesn't. I've been through the code many times looking for a simple syntax error, but nothing. When I change the extension to HTML in the file name and in the anchor, it works fine.

Strange annoying little foible I've got here. Maybe it's time to re-format and try again. Or run a local server, but that's something I've been trying to avoid. Ah, well.



[This message has been edited by warjournal (edited 07-07-2001).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-07-2001 16:51

As I've said, that's by design (it's the same on every other Windows installation). You can't call named anchors in SHTML files locally, you *must* have web server running locally in order to do that...

BTW We already had discussion about this here: http://www.ozoneasylum.com/Forum12/HTML/000164.html

warjournal
Maniac (V) Mad Scientist

From:
Insane since: Aug 2000

posted posted 07-07-2001 17:52

Here I thougth I wasn't getting through to you and it turns out you weren't getting through to me.

Named anchors not working in a SHMTL doesn't make sense to me. Why would they design it that way? After all, regular HREF.SHTML works fine to and from SHTML, why not HREF.SHTML#?

:sigh:

Thanks, Max. I'm going back to the salt mine.


---
I, Warjournal, Techincal-Slop Author Extraordinaire.

« BackwardsOnwards »

Show Forum Drop Down Menu