On Wed, Nov 19, 2008 at 12:58 PM, Scott Spurlock <[EMAIL PROTECTED]>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??? > running JS code that you didn't write inside of a cfwindow can be problematic. as per the docs ( http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_u-z_3.html): =============================== If the source attribute specifies a page that defines JavaScript functions, the function definitions on that page must have the following format: functionName = function(arguments) {function body} Function definitions that use the following format may not work: function functionName (arguments) {function body} =============================== Might there be some JS in the plugin that uses the "non-CFWindow friendly" function declaration? -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:315611 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

