Results 1 to 2 of 2

Thread: DOM update on AJAX load

  1. #1
    Join Date
    May 2010
    Location
    Sacramento, CA
    Posts
    91
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Default DOM update on AJAX load

    I have a question about a pretty heavily coded jquery application i'm designing. All content is loaded via ajax into div's and most of the pages that are loaded into the div's have their own <script> sections with page specific functions, listeners etc.

    I'm curious as the user clicks around from one page to the next, is the DOM updated to remove the <script> that was loaded in from the page when you leave it or does it stick around until you completely refresh the entire page? I can't find a clear answer on this topic anywhere! Thanks for the help/comments,

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,920
    Thanks
    43
    Thanked 3,187 Times in 3,151 Posts
    Blog Entries
    12

    Default

    That would be impossible to tell without seeing the page. Even then it might require intensive examination and/or remain elusive. If the code has documentation, it might be in there. Or if the code has an author you can contact, you could ask them.

    Generally once a script is loaded in a window, it sticks around until the page is changed or reloaded. However there are ways to remove a script and/or undo its effects.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    crobinson42 (02-22-2013)

Similar Threads

  1. Modify Ajax XML Ticker to Update Automatically
    By jerryxh in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 01-04-2010, 01:06 AM
  2. Replies: 0
    Last Post: 02-24-2009, 12:45 AM
  3. DHTML Modal window v1.1-How to load record per ID for update form
    By kashifmalik in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-19-2008, 06:13 PM
  4. Animated Collapsible DIV - Toggle breaks after ASP.NET AJAX update
    By grandeandy in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-17-2008, 07:59 PM
  5. Cache Update After Page Load
    By hikerguy1900 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-30-2006, 12:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •