Note that there are some explanatory texts on larger screens.

plurals
  1. POfinding text in ajax returns on Javascript console
    primarykey
    data
    text
    <p>My javascript framework uses Ajax to dynamically change certain parts of my page. When I use a javascript console like firebug or the one that comes with Chrome and I try to find some tags it seems that the dynamically altered HTML parts are not searched. I will have to hunt them down manually which is a daunting task at times since the framework generates tons of HTML.</p> <p>The only info I can find about this concerns finding tags programmatically by traversing the DOM but that is not what I'm looking for, I need my debugger to be able to find those tags when I am examining the code at runtime.</p> <p>Is there a way around this in any browser?</p> <hr> <p>I've created a simple example to demonstrate <a href="http://www.softwear.nl/test/ajax.html" rel="nofollow">here</a></p> <p>If you open it with Chrome, start the javascript console before clicking on the button and search for the word <strong>tag</strong> you will find 1 in the original HTML. Next, click the button. You will see the change. Now search again for the same word <strong>tag</strong>. It will not be found. However, if you do a find for <strong>ta</strong>, it will be found. Looks like the search results are buffered someway and not cleared once the page changes.</p> <p>Firebug doesn't seem to update the page at all.</p> <hr> <p>I found out that if you start Chrome's javascript console after the Ajax refresh, text can be found however, if the Ajax refresh happens when the Javascript console is allready open, searching capabilities within the refreshed Ajax content is limited. I still can't figure out when it does/doesn't work.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload