/    Sign up×
Community /Pin to ProfileBookmark

link issue: td id browser compatibilities

Hi. I have a problem with browser compatibilities regarding link td id. I have encoded this link – <a href=”index.php?loadmod=#eed”> and it should link to the page of eed on the <td id=”eed”> section. This only works for firefox browsers and not with IE. Here is a sample:

Go to this link:
[url]http://www.airsept.com/robert2/index.php?loadmod=eed[/url]
and click “Articles” button on the left navigation. When you click that button, it should go directly to it’s target making the section “EED or Electronic Evaporator Dryer” go to the top of the page. This only works for firefox browsers and not with IE.

to post a comment
PHP

11 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYJun 03.2005 — one thing that is weird, is that when you enter this url in IE it works fine

http://www.airsept.com/robert2/index.php?loadmod=particles#eed
Copy linkTweet thisAlerts:
@ShmohelJun 03.2005 — What is the code that you are using?

I am confused if $_GET['loadmod'] is supposed to equal [color=red]eed[/color] ; [color=red]#eed[/color] ; or [color=red]particles#eed[/color].

I have never done it, so some one who is more of a guru can let you know if passing symbols (# in this case) through a URL will mess with it. Might need to use a code instead. I have done that in the past.
Copy linkTweet thisAlerts:
@DaiWelshJun 03.2005 — works for me in IE
Copy linkTweet thisAlerts:
@MarkLJun 03.2005 — You might try using the HTML entity for the pound sign (#), which is &#163, or the HTML escape for it, which is &pound.
Copy linkTweet thisAlerts:
@MarkLJun 03.2005 — I just checked it using IE as well, and had no problem with the link, just for the record I am using IE 6.
Copy linkTweet thisAlerts:
@ShmohelJun 03.2005 — You might try using the HTML entity for the pound sign (#), which is &#163, or the HTML escape for it, which is &pound.[/QUOTE]

&pound; would definately confuse it. It would think pountis another variable. I would suggest ASCII which I believe is %23.
Copy linkTweet thisAlerts:
@MarkLJun 03.2005 — I don't think ASCII would work in a URL, but you are right in that I doubt the HTML escape would work either. I think the HTML entity is the best bet, or you could try turning the entire URL into a string variable and then use urlencode() on it.

The strange thing is that I have no problem with the link using IE 6, so I am guessing that it has already been fixed, or it is a problem with the version of IE being used. If it is an older browser version, urlencode() might do the trick.
Copy linkTweet thisAlerts:
@ShmohelJun 03.2005 — I don't think ASCII would work in a URL, but you are right in that I doubt the HTML escape would work either. I think the HTML entity is the best bet, or you could try turning the entire URL into a string variable and then use urlencode() on it.

The strange thing is that I have no problem with the link using IE 6, so I am guessing that it has already been fixed, or it is a problem with the version of IE being used. If it is an older browser version, urlencode() might do the trick.[/QUOTE]


I have used ASCII before to pass the equiv of '=' and '>=' and it worked.
Copy linkTweet thisAlerts:
@jazpersonauthorJun 04.2005 — Ok thanks for the replies. It works fine with me in IE but on a different computer. Maybe the IE that I am using right now has a different version. Weird.
Copy linkTweet thisAlerts:
@NogDogJun 04.2005 — Safest thing to do is run anything to the right of the "?" in the url throuh [url=http://www.php.net/urlencode]urlencode()[/url].
Copy linkTweet thisAlerts:
@SpectreReturnsJun 04.2005 — HTML entities work in URLs. Just FYI.
×

Success!

Help @jazperson spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...