This is probably an AJAX/AHAH request, and while I haven't looked at the code I'm not sure there's any ability to hook into the callback from outside.<div><br></div><div>Worst-case scenario, you could poll the DOM with a different script for the element (or class) in question. Something like this is definitely crude and inelegant, but could work:</div>
<div><br></div><div>var polled = false;</div><div>setInterval(function() {</div><div> if(!polled && $('#element-in-question').length > 0) {</div><div> polled = true;</div><div> // Do your thang...</div>
<div> }</div><div>}, 500);</div><div><br></div><div><br></div><div><div><br></div><font color="#333333">Carl Wiedemann</font><div><div><font color="#333333">Website design and development consulting</font></div><div><font color="#333333"><a href="mailto:carl.wiedemann@gmail.com" target="_blank">carl.wiedemann@gmail.com</a> | skype: c4rlww</font></div>
</div><br>
<br><br><div class="gmail_quote">On Sat, Nov 12, 2011 at 11:07 AM, Idan Arbel <span dir="ltr"><<a href="mailto:idan@arbel-designs.com">idan@arbel-designs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have an image field form, and I want to run some js code after the image is uploaded and the preview is created…<u></u><u></u></p>
<p class="MsoNormal">I can’t seem to figure out what jquery event to use.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’d appreciate any help.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><font color="#888888"><p class="MsoNormal">Idan<u></u><u></u></p></font></div></div></blockquote></div><br></div>