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

 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290523
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