Sequencing of observers - need an insight

6 views
Skip to first unread message

Aaron Drake

unread,
Aug 23, 2010, 6:25:40 PM8/23/10
to Blast Mojo
I have several different observes listening on a submit button:

this.addIntercept("around", "Submit", "BlockProceed", ...
this.addIntercept('before', "Submit","ShowOverlay", ...
this.addIntercept('before', 'ShowOverlay', 'GetValues', ...

THe sequence of events should be:

1. On click, run a check to determine if the submit should proceed
(otherwise BlockProceed)
2. On click, place an overlay to indicate that the submit is in
progress
3. Before displaying the overlay, populate a div with specific
information taken from the form inputs

This runs fine in FF, but the 'before' intercepts do not fire in IE8.
Is there logic about the 'around' parameter that I should be aware of?

Jaime Bueza

unread,
Aug 24, 2010, 12:32:43 PM8/24/10
to blast...@googlegroups.com
Hey Aaron,

I believe that I've run into this issue before where I've stacked too many intercepts on a particular event in a command. Try to think of a more logical command chain sequence rather than stacking. I'm assuming you can't release the source to see the actual problem at hand so it's pretty tough for us to debug this. Furthermore, I'm just spitballing here but you can actually create your own custom events within each command/behavior and observe those events inside your commands to ensure you have the right sequence that you want. For example:


Also, it helps to look into using ajax Dyntatrace installed for event tracking: http://ajax.dynatrace.com/pages/ it is a free program that installs itself into Internet Explorer. 

Sorry for the late reply--you may have already resolved this issue? If so, please tell us your approach to the solution.

Hope this helps,
Jaime
Reply all
Reply to author
Forward
0 new messages