more on your questions: the js code should be in the main page - cfwindow is just an absolutely positioned div from the main page, it is not a separate window, so all js functions on your main page are available to run from our cfwindow. however, plugins like star rating (i was actually using a different one - http://www.fyneworks.com/jquery/star-rating/) have to be initialized and applied to a certain sets of elements after the page has finished loading, so those elements are available in the page DOM for the plugin to be applied to them. having those elements in a cfindow, however, makes them unavailable in the page's DOM when the page initially loads. so you need to incorporate the plugin initialization/application in the function that opens your cfwindow, or run a js function that will apply the plugin in the onShow event of cfwindow.
my problem with the star rating and thickbox was, as i remember now, related to the fact that the star rating applied in the thickbox window had to update the rating on the main page as well as in the thickbox window, all after a n ajax call to a cfc to update rating values in the db - this i just could not implement no matter what i tired (come to think of it, one thing i have not tried was to destroy and re-create the rating element in the main window... maybe i should try that...). if you post your code, i will be happy to help you make it work... just bare-bones functionality, please, easily reproducible anywhere... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Scott Spurlock wrote: > I'm pretty new to this whole AJAX thing, so please bear with me.� I had > tried to implement some cfwindow functionality in the past and didn't find it > flexible enough for my needs.� So I've been trying to learn jQuery.� I've > got one plugin working and now I'm trying to use the Star Rating widget > (http://orkan.jaslo4u.pl/star_rating/index.html#overview) in a form in a > cfwindow.� And that's where the lightbulb's not going on.� Should the > jQuery code be on the original page or in the cfwindow?� I know I need the > cfajaximport tag on the original page -- do I need it in the cfwindow code > too?� I can get the window to open up, but I can't get the jQuery code to > run.� Should I just ditch this cfwindow stuff altogether??? > > Scott > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315651 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

