I have a function to create extra fields in the profile editor of a site's users in WordPress. A part of it creates two image upload fields (media uploader with thickbox), and a jQuery snippet to populate a text input with the URL of the image, and a placeholder (img) with the image itself. This is basically the result:
Themediauploadershouldprovidetheurlwith:
varimgurl=$('img',html).attr('src');
It'sworkingnormallyonlocalhost,butwhenIputitontheserver,itdoesnotwork.Thelogshows"undefined", and interestingly only in Chrome (but works in Chrome on localhost).
Any ideas? If relevant, I can post the entire code.