Re: innerHTML with AJAX problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sheldonlg

    Re: innerHTML with AJAX problem

    Erwin Moller wrote:
    Martin schreef:
    >But it works just fine for the first form (which is already in the
    >initial page)
    >
    Yes, that is normal HTML.
    >
    >the second form uses the same functions as the first so it should act
    >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
    >
    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.
  • Laser Lips

    #2
    Re: innerHTML with AJAX problem

    Why doesnt javascript returned my Ajax execute?

    This one had be stumped for a while...

    Graham

    Comment

    • Erwin Moller

      #3
      Re: innerHTML with AJAX problem

      Laser Lips schreef:
      Why doesnt javascript returned my Ajax execute?
      >
      This one had be stumped for a while...
      >
      Graham

      Hi,

      Why JavaScript/innerHTML is designed that way, I do not know.

      It is possible however to GET it executed anyway.

      Randy Webb helped me out some time back with this.

      You can find the details in this thread:


      or


      All credits go to Randy, not me. ;-)

      Regards,
      Erwin Moller

      Comment

      Working...