Rank: Advanced Member Groups: Member
Joined: 11/15/2008 Posts: 44
|
As I dig into this I thought I should check with you.
One of my applications does a callback using eo_Callback just after page load. It works in IE, FireFox 3, Safari, and Chrome but not with FireFox 4.0. Using alert()'s to step through the events, I found that the problem did not happen. Using a debug-div to trace the issue, I find that the client-side code runs without a hitch ... except that the callback does not actually happen.
I conclude that that it is a timing issue.
Has anyone else seen this yet? I'll try increasing the delay but I have a hunch that this is not the best solution.
If this is a new issue, I'll see if I can scale it down to a reproducible demonstration.
Thanks, Chris
|
Rank: Advanced Member Groups: Member
Joined: 11/15/2008 Posts: 44
|
Doing the eo_Callback with a setTimeout of 2000 works while at 1000 it still fails.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This can occur if one of the controls involved with the callback takes longer to load (or FireFox fires page load much faster than anybody else). So you will want to make sure all other controls are loaded before calling eo_Callback. If only a single control is involved, you can try triggering eo_Callback from that control's ClientSideOnLoad (you still need to use setTimetout so that ClientSideOnLoad returns first). If there are multiple controls invovled, the easiest way is to keep trying until eo_Callback returns true.
Thanks!
|
Rank: Advanced Member Groups: Member
Joined: 11/15/2008 Posts: 44
|
Thank sooo much!!
|