Comments (8)
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.
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.
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.
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.
The namespace raty
was not found, maybe your import is broken.
from raty.
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.
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.
Since raty already imported, it is ok.
from raty.
Related Issues (20)
- couldn't open the link HOT 1
- raty stars not showing in RoR application HOT 1
- a total of 5 stars, but can score 0.5 points HOT 1
- Accessibility issue with using ALT attribute for numeric value HOT 1
- Create Github tag for 2.9.0 release HOT 1
- stars do not showing on redirect HOT 5
- Raty not working on Rails 6 HOT 4
- How to create stars at runtime HOT 2
- Are there any workable examples for Raty with Bootstrap's popover? HOT 1
- Incorrect json (comma at the end) HOT 1
- Separate Features as Optional Modules HOT 3
- Removes Karma and Jasmine In Favor of Jest HOT 10
- Drop jQuery dependency HOT 3
- Proposal: introduce modular plugin system HOT 2
- Drops jQuery from Test Helper
- Add Webpack Setup on README HOT 2
- JQuery defer or reduced javascript? HOT 1
- Raty is not defined HOT 4
- No effect HOT 3
- Build breaks the score calculation in half HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raty.