Getting TypeError: $(...).rateit is not a function with Jquery Dialog

Jun 18, 2013 at 5:54 AM
I am using Rating Plugin on a page which also contains Jquery Dialog. While retrieving value it is giving following error: Error: TypeError: $(...).rateit is not a function.

I have observed that if i remove dialog from page then rating plugin works fine.

Can anybody suggest solution for this?
Jun 18, 2013 at 8:07 AM
Hi Nimisha,

It seems like you have some sort of integration problem. Perhaps when adding the jQuery dialog, you also add another version of jQuery (thus overriding all registered plugins).
Another issue might be that the dialog shows its content in an IFRAME, and the IFRAME did not register the rateit script reference.

This is also the reason why I closed the issue, since it is an integration problem, not specific to jQuery RateIt.

If you can post a small example of your code in, it would help us to understand the root of the problem.

Jun 18, 2013 at 11:32 AM
I have created this fiddle

The code works in isolation but it does not work integrated in my code. I can send the code file for your reference, please let me know where i should attach the files.