Giter VIP home page Giter VIP logo

Comments (8)

wbotelhos avatar wbotelhos commented on August 25, 2024

Hi @Patatouf,

Make sure that the div is created before the bind and everything will works.
Check the image path too and take care to not bind the .raty elements twice.

To do a better test, use the Firebug, append a div on body and bind it.
It is the way I do my specs, and it works perfectly.

from raty.

Patatouf avatar Patatouf commented on August 25, 2024

Hi wbotelhos,

Thank you for you answer.
I am sure that the image path is correct because when I .raty an existing div when the page loads, it works fine. I also think that the div is created before I bind it because if I replay .raty by .remove or .html('some text'), it works well too.
How could I use the firebug to better test it ?

Thank you again for your help.

from raty.

wbotelhos avatar wbotelhos commented on August 25, 2024

Call your $.ajax() without the Raty bind then open the Firebug and execute the bind. $('.raty').raty();.
So you can make sure the div is there and inspect the DOM to check the images.

from raty.

Patatouf avatar Patatouf commented on August 25, 2024

I have the following error :
TypeError: Object [object Object] has no method 'raty'
Where could that come from ? I wonder if there is no interference with
bootstrap.js or something like that ?

On Wed, Feb 27, 2013 at 3:46 PM, Washington Botelho <
[email protected]> wrote:

Call your $.ajax() without the Raty bind then open the Firebug and
execute the bind. $('.raty').raty();.
So you can make sure the div is there and inspect the DOM to check the
images.


Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-14177080
.

from raty.

wbotelhos avatar wbotelhos commented on August 25, 2024

The namespace raty was not found, maybe your import is broken.

from raty.

Patatouf avatar Patatouf commented on August 25, 2024

wbotelhos, I feel sorry, I just changed the order of my imports and it solved the problem. Thank you very much for your help and your work !

from raty.

arnabrahman avatar arnabrahman commented on August 25, 2024

I'm facing same problem. Can you show some code?

Well i just added the bind in ajax() success function. Is this a good way?

from raty.

wbotelhos avatar wbotelhos commented on August 25, 2024

Since raty already imported, it is ok.

from raty.

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.