You'll need to debug the remote request.

First thing would be to install Firebug for Firefox so you can view the
request.

Then put some persistent debugging code in the CF page:

<cfsavecontent variable="debugOutput">
        <cfdump var="#URL#">
        <cfdump var="#FORM#">
</cfsavecontent>

<cffile action="WRITE" file="#ExpandPath('.\debug.html')#"
output="#debugOutput#">

Go through the motion of trying to delete the user again then view
debug.html to see what's happened.

Hope that helps.

Adrian

-----Original Message-----
From: Walter Conti
Sent: 18 March 2008 22:31
To: CF-Newbie
Subject: jQuery first steps


I have this little ajax request whic is supposed
to delete a usere "un" which is passed correctly.
I don't get any result from function(data) and
no errors either, but the record is not being deleted.
Tried also $.get, same thing. Pease help.

<script>
function deleteUser(un){
//alert(un);
$.post(
'remoteFunctions.cfm',
{username:un},
function(data){alert(data)});
//self.location="http://127.0.0.1/schoolsforums/index.cfm";;
}
</script>


remoteFunctions.cfm contains :
<cfset application.user.deleteUser(url.username)>
which is properly initialized and otherwise works ok


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3453
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to