you are mixing 2 languages here that get executed at different stages of the process.
ColdFusion is a server language and gets parsed and executed on the server.
Javascript is a client language and gets parsed and executed on the client machine inside a browser like Internet Explorer.
What you are trying to do here is use ajax to pass data via Javascript back to the server and have ColdFusion do something with it.
With Spry, the cfm page you define in the action attribute of the form is where the ajax will be sent to.
In your case the code that does the delete should be in the 'insertcategory.cfm' page because that is where Spry will push the action to.
You can follow a good tutorial on it here:
http://www.adobe.com/devne
You can view source of the page in your browser too and that will show you that your function DeleteCategory () {} is actually empty. Thats because the ColdFusion code inside the {} was parsed on the server before being passed to the client browser.
HTH
Main Topics
Browse All Topics





by: erikTsomikPosted on 2007-10-29 at 13:24:20ID: 20172972
And also on the delete I do not want to use action page . How can i do that