I would move the javascript outside the cfdiv. It should work then. -- Kumar Shah http://www.coldfusion-ria.com/Blog/
On Tue, Dec 15, 2009 at 11:49 AM, Brady Ashworth < bra...@constructionmonitor.com> wrote: > > I am having a problem with using a jquery function that allows me to check > all boxes in a dynamically created page. no matter how I try it it always > throws and error at me and then the check all function just doesnt work. I > know the check all function works because I have tried it on its own page. > The problem is that the function is sitting inside of a "cfdiv" tag. this > completely breaks the jquery function. Here is the function code. > > <script type="text/javascript"> > checkall = $(document).ready(function(){ > $("#checkboxall").click(function() > { > var checked_status = this.checked; > $("input[name=mapid]").each(function() > { > this.checked = checked_status; > }); > }); > > }); > </script> > <cfset ajaxonload("checkall")> > <label for="checkboxall">Select All<input id="checkboxall" type="checkbox" > /></label><br> > <input name="mapid" type="checkbox" /><BR> > <input name="mapid" type="checkbox" /><BR> > <input name="mapid" type="checkbox" /><BR> > > This is the error that it throws out: > > Error processing JavaScript in markup for element permitdiv: [Enable > debugging by adding 'cfdebug' to your URL parameters to see more > information] > > And here is the code that the error is refering to: > > <CFELSE> > <a > href="javascript:ColdFusion.navigate('#event.linkto('action.permitSearch')#&startRow=1','permitdiv','','','POST','permitoptions')">First</a> > | > <a > href="javascript:ColdFusion.navigate('#event.linkto('action.permitSearch')#&startRow=#previous#','permitdiv','','','POST','permitoptions')">Previous</a> > - > </CFIF> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329169 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4