I have a table that I screen scraped using the jQuery load function, the function returns a table with text and graphics. The website I scraped from uses relative paths for their images so when I return the code to my page the images are not showing up. I have been looking for a jQuery function to find the tag and either update it to add the scrapped sites url into the src attribute, but not having much luck.
The current tag looks like this:
<img style="border:thin solid black; margin-top:5-x;" src="/images/picture.jpg">
What I need to do is insert the http://www.somesite.com into the src atttribute, so it looks like this:
<img style="border:thin solid black; margin-top:5-x;" src="http://www.somesite.com/images/picture.jpg">
Can anyone point me to the proper feature I need to do this?
Thanks!