[jQuery] Forms Plugin: target scripts evaluated TWICE
I've noticed that scripts are evaluated twice if they're included in the
responseText & loaded via the Form's plugin "target" parameter -- using
jQuery 1.1.1
As an example:
[[[[[ FORMS PAGE ]]]]]
===============
<form method="post" action="form.html">
<input type="text">
<input type="submit">
</form>
<div id="out"></div>
<script type="text/javascript">
$().ready(function() {
$('form').ajaxForm({target: '#out'});
});
</script>
[[[[[ FORM.HTML (responseText) ]]]]]
===============
I AM OUTPUT.
<script type="text/javascript">
alert('a');
</script>
----
In the above, "a" gets alerted TWICE after a successful submit w/
ajaxForm -- at least it does in FF 2.0.
I don't think this is the desired behavior?
~ Brice
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/