Jump to content

simple hyperlink not working in IE, but is working in Chrome


hedgehog90

Recommended Posts

Not really much else to explain.

Here's the site I own: www.gpstudios.com/index.php

Below the news blog is a Twitter feed.

There is a link in the twitter feed - http://bit.ly/7KuPKM, that when hovered over by the mouse is "http://www.gpstudios.com/%22http://bit.ly/7KuPKM%22" in internet explorer.

In google chrome however, it is simply http://bit.ly/7KuPKM.

 

So. what's going on? How do I fix it for internet explorer?

 

Any help much appreciated.

It's happening in Firefox as well hedgehog.  I'm guessing you're running html_entities() or something on the values pulled from twitter?  As the browser is outputting this as the URL:

 

<a href="http://twitpic.com/xor4p">http://twitpic.com/xor4p</a>

 

When obviously that should be:

 

<a href="http://twitpic.com/xor4p">http://twitpic.com/xor4p</a>

Worked it out.

if you view the source of where i extract the data on twitter (http://search.twitter.com/search.atom?q=from:gp_studios&rpp=1), you'll see it has used &quots, &gts and &lts.

My function extract the data was already replacing &lts and &gts, but not &quots.

I added it in and it now works perfectly.

Thanks for pointing me in the right direction :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.