[jQuery] Re: Appending/prepending image source attribute

2008-01-31 Thread Danny
I think you would want to append just the ampersands, not '&' that's only to get the href past the HTML parser. Thus: $('someImage').attr('src', '/umbraco/ImageGen.aspx?image=' + originalSrc + '&width=' + width + '&height=' + height); Danny On Jan 31, 10:05 am, Karl Swedberg <[EMAIL PROTECTED]>

[jQuery] Re: Appending/prepending image source attribute

2008-01-31 Thread Karl Swedberg
Hi Ove, I think you sent me an email over at learningqjuery.com, but I'll answer here for the record. it would go something like this: var height = $("#myElement").height(); var width = $("#myElement").width(); var originalSrc = $('someImage').attr('src'); $('someImage').attr('src', '/umbra