Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Problem with <BASE> and <A href="#...">

Reply
Thread Tools

Problem with <BASE> and <A href="#...">

 
 
cipher
Guest
Posts: n/a
 
      03-06-2008
Hi there,

I ran into a problem using <a href="#some_anchor"> in combination with
<base href="...">.

I have a PHP-script which creates a report in HTML from a database.
The script is called in two ways:
1. directly via browser
2. and by a cronjob with mails the report to a mailing list
The report contains both links to anchors inside the same document and
links to external resources. Calling the script by a browser works
fine. The mailed report contains an additional <BASE> to get valid
links to external resources, but the links to the anchors inside the
report are now wrong. (Using such a link forces the browser to reload
the HTML document from server before jumping to the anchor. This may
lead to a wrong report, if some records in DB has changed since
mailing the correct report)

Do I have to rewrite all external links or is there a better solution?


thx,

Markus
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
127.0.0.1 problem and version 2 problem Victor Laszlo Firefox 8 04-26-2008 11:17 PM
WebServer has encounted a problem and need to close out: Newbie with problem about webcontrol Eric ASP .Net 0 03-24-2006 02:20 PM
will all these messages cause a problem . I am a new subscriber and my computer is downloading 100,000 messages. Will this cause any kind of a problem with my ability to store other items?? Camille White Camille White Computer Support 9 11-08-2004 01:13 AM
Setup MSN Shorcut problem and IE problem Vic Computer Support 1 05-11-2004 09:14 PM
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57