Hi Gareth,

I'm the author of the star rating plugin and I have just found this
post. I visited the URL you mentioned but I can't see the star rating
plugin being used - hence I could not reproduce the problem.

Is there somewhere I can see this in action?

Cheers,
Diego A.

On Oct 1, 4:31 pm, GarethMatthews <[EMAIL PROTECTED]>
wrote:
> I all,
>
> UsingjQuery1.2.6 and the latest level of theStarRatingplugin
> obtained fromwww.fyneworks.com. Thestarratingworks fine under most
> circumstances, however I can make it break and I am not sure why.
>
> The page I am using it on is a AJAX page - i.e. part of the page is
> loaded and reloaded dynamically by some javascript. The dynamic part
> of the page contains thestarratings.
>
> As such, when the XMLHTTP response comes back and I set the innerHTML
> of the dynamic area of the page I then have to make the all important
> call to make the options turn into stars (i.e. $
> ('[EMAIL PROTECTED]').rating();). Again this normally works
> fine. However, if the dynamic area of the page is loaded with the same
> content (I use the dynamic area for switching between pages of content
> - so when I view page 1 it is fine, but then switching to page 2 and
> then back to page 1 triggers the fault) the options have changed to
> stars, but therating(i.e. whichstaris selected) is not shown - so
> all the stars appear grey.
>
> I get an error in my Firefox Error console when this happens:
>
> Error: elem.parentNode is null
> Source File:http://www.itakeout.co.uk/js/jquery-1.2.6_030908.js
> Line: 25
>
> You can see this error for yourself if you go 
> tohttp://www.itakeout.co.uk/select_restaurant.php?search=Portsmouthand
> moving between pages. They look fine on the first view, but going back
> to them theratingdisappears.
>
> I can't think this could be anything I am doing as the stars work fine
> most of the time. However, I'd really like to get this resolved. From
> the error it looks like either a bug injQueryor something in 
> thestarratingplugin is causingjQueryto mis-behave. Does anyone have
> any ideas? I am pretty new tojQueryand so am not sure exactly what I
> need to do here.
>
> Cheers,
> Gareth

Reply via email to