Re: Firefox - IE differences
| From: | Justin Patrin | Date: | Wed, 21 Jul 2004 22:11:32 +0000 |
| Subject: | Re: Firefox - IE differences | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191424@lists.php.net to get a copy of this message | ||
On Wed, 21 Jul 2004 17:45:35 -0400, Karl-Heinz Schulz
<karlheinz@khschulz.com> wrote:
> The following codes open the links perfect.
>
> print($press[1]." <a target=_blank href=..\PDF/$press[3]
>
> class=\"press_links\">".strip_tags(html_decode($press[2]))."</a><br>");
>
> When I open it in Firefox it will try to open the following link instead.
> When I will remove "..\" it will try to open the following link in IE. Is
> there a way which works on both?
>
> /publication/..\PDF/whatever.pdf
>
> When I will remove "..\" it will try to open the following link in IE.
>
> /publication/.PDF/whatever.pdf
>
> Is there a way that works on both?
>
1) Switch that backslash to a forward slash. All paths on the web use
forward slashes. Actually, \PDF may come out as PDF in the browser.
2) Put quotes around your attribute values!
echo '<a target="_blank" href="../PDF/blah.pdf">';
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--