1
CopGuy
PHP and Document Anchors...
  • 2004/7/18 3:06

  • CopGuy

  • Just popping in

  • Posts: 6

  • Since: 2004/7/18


Using the Articles module, I'm trying to create an anchor link from the article description to an anchor in the article itself. However, when I clink on the link I get an error from Apache that the requested URL was not found.

On the page with the article description my link is as follows:
http://www.leesburgyellowjackets.org/modules/articles/articles.php?id=4#attendance

In theory this should go to the anchor named "attendance" in article 4, right?

I'd appreciate any advice that's available.

Thanks,

2
hervet
Re: PHP and Document Anchors...
  • 2004/7/18 8:45

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

Welcome to Xoops.

I don't know how you have created your article but I have just made a test and did not have any problem.
Inside my article I have added the folowing code :
<a name='t1'>Anchor


then I have called my article like this :
[/quote]
http://www.mysite.com/modules/news/article.php?storyid=12#t1
[/quote]

and it runs perfectly.

Bye,
Hervé

3
nick89
Re: PHP and Document Anchors...
  • 2004/7/18 9:23

  • nick89

  • Just popping in

  • Posts: 47

  • Since: 2004/7/9 8


let's be compliant now
<a name='t1' />

4
hervet
Re: PHP and Document Anchors...
  • 2004/7/18 9:42

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


I'm not sure it's really usefull

5
nick89
Re: PHP and Document Anchors...
  • 2004/7/18 21:36

  • nick89

  • Just popping in

  • Posts: 47

  • Since: 2004/7/9 8


it is if you want an XHTML compliant webpage

6
CopGuy
Re: PHP and Document Anchors...
  • 2004/7/20 0:16

  • CopGuy

  • Just popping in

  • Posts: 6

  • Since: 2004/7/18


I'm using the Articles mod and have the proper code in the article. It's as if the article does not exist at all. Is it possible that it's a problem with my Apache config?

7
hervet
Re: PHP and Document Anchors...
  • 2004/7/20 17:10

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

If you are really using the ARTICLE module and not the NEWS module, then your links should be like this one :
http://www.leesburgyellowjackets.org/modules/articles/article.php?id=1#myanchor


Bye,
Hervé

Login

Who's Online

174 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits