That didn't work either. I changed it to do a cfc binding and that all works.
Regards Dale Fraser http://learncf.com -----Original Message----- From: Rakshith N [mailto:[EMAIL PROTECTED] Sent: Monday, 8 October 2007 8:20 PM To: CF-Talk Subject: RE: CFAJAXPROXY Help! You may want to call ColdFusion.Grid.refresh('gridname') to refresh the grid in the onsuccess handler. Rakshith http://www.rakshith.net/blog/ -----Original Message----- From: Dale Fraser [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 9:40 AM To: CF-Talk Subject: CFAJAXPROXY Help! I have this line. <cfajaxproxy bind="cfc:Battery.deleteTask({batteryForm:[EMAIL PROTECTED],{batteryForm: batt [EMAIL PROTECTED])" onsuccess="alert('success')" /> Which effectively says when I click the button btnDelete call deleteTask method in Battery.cfc and onsuccess show an alert. It should work, in fact the docs show this as an example. But what happens, is I get the alert 'success' when the page loads and nothing on success of the delete. I know that it is succeeding as I can run the method manually and it works, and from my page it also works as if I click the refresh button in the grid (after deleting a record) my record is gone. So i'm probably doing something silly, but am lost. What I want is actually not an alert, but for the grid to refresh, the alert is just there to help me figure out whats going wrong. Regards Dale Fraser http://learncf.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290524 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

