Hi guys,
this is my first post and I hope it can be useful.
I experienced some problems using Safari for Windows or Chrome for
Linux inside a Drupal site: with these browsers the "load" event of
the client is never called at the first page load. But it works
correctly if I force a refresh of the page.
I observed that the problem is inside the function
"APE.Client.prototype.load", declared in JavaScript.js.
Here, everything goes right until the last lines of the function: at
this point, the "iframe.onload" event is never fired. But, refreshing
the page, it works for some reason. The code is this:
---------------------------------
iframe.onload = function() {
if (!iframe.contentWindow.APE) setTimeout(iframe.onload, 100);//
Sometimes IE fire the onload event, but the iframe is not loaded -_-
else iframe.contentWindow.APE.init(config);
}
}
---------------------------------
I temporary solved this problem forcing the call of the event. Thanks
to the recursive timeout inside, it works correctly, maybe looping two
or three times:
-----------------------------
iframe.onload = function() {
if (!iframe.contentWindow.APE) setTimeout(iframe.onload, 100);//
Sometimes IE fire the onload event, but the iframe is not loaded -_-
else iframe.contentWindow.APE.init(config);
}
iframe.onload();
}
-----------------------------
Thanks for your work, you made a beautiful thing with Ape :)
Bye
o Rico, alias Federico Ravera
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/