ie7 .load() question
ie7 .load() question
When I use .load() to pull an image into a page by referencing the 'href' value, it works great in every browser but IE7.
Let's say I have:
<a href="01"><img src="some-image.jpg" /></a>
If I run alert( $('a').attr('href') ), most browsers return "01", while IE7 returns "http://website.com/01", which causes problems when trying to load a specific string path.
I've implemented the standard return false/event.preventDefault(), but it still returns the url with the href string in IE7. I've got around the problem by using a title attribute, but I'd rather not have to add in unnecessary code.
Any thoughts? Thanks in advance for your insight.