Giter Club home page Giter Club logo

Comments (4)

CarlosBonetti avatar CarlosBonetti commented on August 11, 2024

Hey, thanks for the feedback!

I tried to recreate the error but with no success. I made some tests on http://jsfiddle.net/carlosbonetti/zmE4L/8/.

Can you try to recreate it on jsfiddle or provide a link so I can see it happening?

from jquery-loading.

CarlosBonetti avatar CarlosBonetti commented on August 11, 2024

Hey @tbl0605, I think I figured what is happening here.

When you call $("#feedback-panel-id").html('').html(strData); maybe you are appending a new body element to the page, so when you call $('body').loading('stop') you're actually initializing a second overlay for the second body element.

Try to avoid returning body or complete HTML pages for ajax returns (returning JSON objects is a good idea). Hence, I will work for a better solution for when an element not initialized receives a .loading('whatever') call (right now the parameter is ignored and the plugin is initialized).

from jquery-loading.

tbl0605 avatar tbl0605 commented on August 11, 2024

Hello @CarlosBonetti,
thank you for your reply!
Sorry I had little time to make some tests lately ;) Actually I changed a lot my html code, and I can't reproduce this problem for the moment.
But you're right, there's probably something to do with the body tag.
I will wait on your next release to see if problem occurs again in the future ;)

Thank you for your work and nice plugin ! :)
Thierry.

from jquery-loading.

CarlosBonetti avatar CarlosBonetti commented on August 11, 2024

I'm closing this since the error doesn't happen anymore

from jquery-loading.

Related Issues (19)

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.