jquery queue sequence updating xml

Inviskive

New Member
I am developing undo/redo feature in a xml based UI, using JQuery i load, read and update xml nodes.\[code\]undo_xml=actual_xml; //save the actual xml state before to update it,$(this).attr("xmlattribute",newvalue); //update a specific node with a new valueredo_xml=actual_xml; //save the updated xml as the redo state\[/code\]The problem is the istruction \[code\]$(this).attr("xmlattribute",newvalue);\[/code\] runs always before than \[code\]undo_xml=actual_xml\[/code\], so I never record \[code\]undo_xml\[/code\] as desired.I tryed \[code\]$.queue()\[/code\], \[code\]jquery.stackevent()\[/code\] and many other way.But,\[code\]$(this).attr("xmlattribute",newvalue);\[/code\]always runs before xml var assignment.
 
Back
Top