Hello. This is probably a stupid question, but I'm using jquery.load() and Jquery UI's tabs.. the pages that i load in there have detail links which are relative inside them like
<a href="mypage.html">link</a>
So say my main page is myserver.com/rootdir/DefaultTabs.asp So if the page I am loading is in myserver.com/rootdir/dir1/page1.html then when I load it into the tab it is a broken link that looks like myserver.com/rootdir/page1.html
So how do I, for example replace all the links on the page to show the right directory, but NOT replace the link if it is already an absolute link. (for example at the bottom of every page I have myserver.com/rootdir/prefs/EditTab.asp which I still want to work)
Thank you so much. I'm barely venturing into jquery and very behind. I've been struggling with this a few hours and have been trying startswith, search within divs/classes, etc.
I know I'm missing the concept of jquery chaining/finding, but...