Erwin Moller wrote:
>
Yes, that is normal HTML.
>
>
I also thought 'it should' untill I tested. ;-)
Never assume too much.
>
Return this as your AJAX response and place it in a div:
<script type="text/javascript">
alert('Do you see this alert?');
</script>
>
Try it and you'll see what I mean.
>
Regards,
Erwin Moller
>
This goes along with what I have experienced.
I recently (a few months bsck) started working in an AJAX framework. I
quickly found that if I replaced some php code (while in the app), it
was seen immediately by hitting the element that exercised the existing
js code to exercise that php code. If, however, I replaced the code
that contained the javascript, it was not seen until I reloaded the
entire page.
Martin schreef:
>But it works just fine for the first form (which is already in the
>initial page)
>initial page)
Yes, that is normal HTML.
>
>the second form uses the same functions as the first so it should act
>the same way.
>the same way.
I also thought 'it should' untill I tested. ;-)
Never assume too much.
>
Return this as your AJAX response and place it in a div:
<script type="text/javascript">
alert('Do you see this alert?');
</script>
>
Try it and you'll see what I mean.
>
Regards,
Erwin Moller
>
I recently (a few months bsck) started working in an AJAX framework. I
quickly found that if I replaced some php code (while in the app), it
was seen immediately by hitting the element that exercised the existing
js code to exercise that php code. If, however, I replaced the code
that contained the javascript, it was not seen until I reloaded the
entire page.
Comment