javascript - IE: why isn't AJAX resulting HTML updated in DOM? -


I am loading html content on a single device via ezacks (using mootools 1.11 and squeezebox, if this case )

In the material that loads I have some js in the i which adds some HTML objects loaded.
Everything works fine in FF, but when I load it in IE (tested on IE7) code is not a "blank" tap or an object.
A quick test shows that the new elements loaded by AJAX are not in the IE domain. A devil was loaded with the id 'test' and when I document.getElementById ('test'

can anyone know how to solve / work this problem?

Some other information: I put my code inside the 'domed' window, tried to use the 'load' event, but IE never called it.

UPDATE
As advised, I tested this script on IE8 with better debugging capabilities.
It seems That problem is actually IM in T. I run my code on the door-to-windows of the windows, and it seems that the DOM starts running immediately (in the popup window) without waiting in fact. After loading, running the same script, finding the elements that do not have any problems.
So I think the question now is how to run the script at the right time.

  • Domain The domed event looks good before preparing it
  • The loading event does not appear at all
  • The file does not help after the script HTML objects, at the end
  • In the Mitols AJX options, I tell 'Avalcon' as the truth, otherwise the script does not run at all
  • Any ideas?

    There is nothing that prevents dom from loading the elements. I can update the internal HTML property There is no such thing as 'domed', but consider this:

    Ajax ("someurl", {method: "get", evalScripts: true, onComplete: function ) {$ ("Someid"). SetHTML (this.response. Text); // load content.}}). request ();

    Now, here is the question, evalScripts goes before or after it ends.

      to click onComplete: function () {/ p>  

    : if (this.options.update) $ (this.options.update) .empty (). SetHTML (this.response.text); If (this.options.evalScripts || this.options.evalResponse) this Elval (); This.fireEvent ('Parameter', [this.response.text, this.response.xml], 20); },

    This indicates that the script is evaluated after the update: and before it is completed, by doing this:

      update: I'm trying to: $ ('somediv'), EvalScripts: true  

    should work if it does not:

      New Ajax ("some"), {method: "get", but full: work () {$ ("someid"). SetHTML (This.response.text); // load content This.envalScripts (); // or if it still fails, then delay it: / * if (window.ie) (function () {this.envalScripts ();}) .delay (100, this); *}}). request ();  

    Comments

    Popular posts from this blog

    MySql variables and php -

    url rewriting - How to implement the returnurl like SO in PHP? -

    Which Python client library should I use for CouchdB? -