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

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290260
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to