reloading jquery functionality.

Discussion in 'jQuery' started by Thorlax402, Aug 13, 2010.

  1. #1
    Hello, I just noticed that one of my jquery scripts doesn't seem to work after using a jquery added called ajaxForm(). This plugin will post form data to a page and replace data inside a div with the response.

    My particular problem is that after after doing this, some of my other jquery scripts don't see the newly added data and don't function properly as a result. For example, I have one script that will pop-up a lightbox expansion of a thumbnail image. This script works fine, but since I define it in $(document).ready() I believe it is causing it to miss the newly shown thumbnails that get loaded onto the page.

    Is there any way to re-load the $(document).ready() function (for lack of a better explanation). I believe that would solve my problem if it is possible.


    Thanks in advance.
     
    Thorlax402, Aug 13, 2010 IP
  2. koko5

    koko5 Active Member

    Messages:
    394
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    70
    #2
    I think you should use .ajaxStart() and .ajaxStop() methods in $(document).ready() without re-loading it.

    Regards :)
     
    koko5, Aug 17, 2010 IP