I'm working on a project that is using both of these together and we
are running into some problems.

I'm inheriting the dojo code. It looks like our jquery code is getting
called first in terms of the page being ready. The problem we have is
that the jquery is handling ad server loading so if the ad server gets
flaky, the browser (esp FF but also IE7) causes the dojo part to not
run.

I'm a little surprised by this as I'd expect it to run through to the
Dojo but it seems like the dojo is waiting for an event later in the
page loading sequence than jquery. so we have something like:

$(function() {
// do something on document ready
  update_ad_tags();

});

and then later in page:
<script type="text/javascript">
dojo.require("ag.user.AutoLogin");
dojo.require("ag.widget.user.LoginPopup");
dojo.require("ag.widget.user.RegisterPopup");
dojo.addOnLoad(ag.user.AutoLogin);
</script>

Any ideas how to force the dojo.addOnLoad(ag.user.AutoLogin) to run or
any elucidation of the relationship between handling of jquery's
document.ready and dojo's addOnLoad when used on the same page would
be appreciated?

-j

Reply via email to