Modify a script to account for AJAX synchronization problems

Applying eValid to AJAX applications that require advanced DOM-based methods.

Modify a script to account for AJAX synchronization problems

Postby pPablo » Mon Feb 25, 2013 12:09 pm

How often do you have to modify a script to account for AJAX synchronization problems?
pPablo
 
Posts: 1
Joined: Mon Feb 25, 2013 12:05 pm

Re: Modify a script to account for AJAX synchronization prob

Postby eValid » Wed Mar 06, 2013 10:53 am

It's always best to use a script that is recorded directly from life and doesn't need any modification. In a perfect world that would be the normal case. But we don't live in a perfect world...

OK then: yes, depending on a number of factors, a lot of modification may be need to make sure that a script plays back reliably when it is dealing with AJAX.

The main problem is, de-synchronization of playback due to longer-than-normal processing times in the page due to AJAX actions.

What we do is wait until we see such a de-sync, then build a synchronization step into the script ahead of the point where the action that leads to the de-sync happens. This protects against de-sync by making sure the right stuff is in the browser face before the potentially offending command is issued.

If we had to declare a number it would have to be in the 5%-10% range, that is, 5%-10% of the commands in a script may need some help by adding additional synchronization commands.

eValid Team
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons