oops, not "href" attribute, as its an image. still holds true though.
On Jul 10, 1:00 pm, KeeganWatkins <mkeeganwatk...@gmail.com> wrote: > jQuery isn't actually changing your "href" attribute, the browser > is... when you use relative paths in links (and some other elements as > well) the browser automatically appends the domain. if you need > something else, either change your relative paths to mirror something > that works for you, or simply use absolute paths. > > On Jul 8, 12:15 pm, Ralph Whitbeck <ralph.whitb...@gmail.com> wrote: > > > Is this in IE? > > > On Wed, Jul 8, 2009 at 12:41 PM, rinse_my_phonebook > > <hugo.lee...@gmail.com>wrote: > > > > When I call > > > $('#mydiv').append('<p><img src="a/b/image.jpg" /></p>'); > > > > I get > > > <div id="mydiv"> > > > <p><img src="http://localhost:53072/pathtocurrentpage/a/b/ > > > image.jpg <http://localhost:53072/pathtocurrentpage/a/b/%0Aimage.jpg>" /> > > > </p> > > > </div> > > > > Which is not what I want. > > > > Can anyone tell me why I get this or even how I can stop jquery from > > > changing my src attribute? > > > > Thanks in advance.