Giter VIP home page Giter VIP logo

Comments (5)

abbas-gadhia avatar abbas-gadhia commented on July 27, 2024

I did some more digging into the issue and it turns out that i'm doing div.innerHTML = "some html" right before calling the script function of LAB. This html replace is a code that gets executed as a part of a synchronous ajax response from jquery.

Also i noticed that there is a request in the servlet for the "resource that fails" but there is no invocation on the wait function

from labjs.

abbas-gadhia avatar abbas-gadhia commented on July 27, 2024

another interesting thing is that after the innerHTML replace is done, i cant see any of my console.log statements on the console and neither the alerts! but the LAB code for getting that resource is executed!

from labjs.

getify avatar getify commented on July 27, 2024

I'm confused about this bug report. Can you post a link to a page showing the issue, and explain reproduce steps and what to look for?

from labjs.

abbas-gadhia avatar abbas-gadhia commented on July 27, 2024

i'm sorry if i've confused you. i must admit that i did some edits to my original comments posted above as and when i found out new things.

the real issue turned out to be with innerHTML replaces in IE. if the html is malformed such as nested form tags etc
http://jadendreamer.wordpress.com/2009/06/02/internet-explorer-fix-unknown-runtime-error-using-innerhtml-ajax/

...then, the behavior is unpredictable in IE.
in my case, i was using LAB right after doing an innerHTML replace. A lot of things were unpredictable after doing that replace, such as console statements not showing up, alerts not showing up but surprisingly, the subsequent js code (LAB) was being executed albiet in an unpredictable fashion....

from labjs.

abbas-gadhia avatar abbas-gadhia commented on July 27, 2024

closing this issue as it is not an issue with LAB

from labjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.