Ajax.Request

A

anush

Hi,
I am using prototype.js to save data into MySQL using Ajax.Request

So i am grabbing the id and if the id<0 , I am adding it as a new
data, otherwise I am just updating it. Similarly I am checking if the
id>0, and then delete that row.

I have been able to add new data successfully but update and delete
function are just not working. When I look into the value of the
`id` , it displays as "undefined". Could anyone please tell me how to
proceed. The rest of the parameters are getting grabbed.
 
D

David Mark

Hi,
I am using prototype.js to save data into MySQL using Ajax.Request

So i am grabbing the id and if the id<0 , I am adding it as a new
data, otherwise I am just updating it. Similarly I am checking if the
id>0, and then delete that row.

I have been able to add new data successfully but update and delete
function are just not working. When I look into the value of the
`id` , it displays as "undefined". Could anyone please tell me how to
proceed. The rest of the parameters are getting grabbed.

Proceed by posting some code, but don't expect too much if the problem
is specific to Prototype. That's one of the many pitfalls of using
such a library.
 
D

dhtml

Proceed by posting some code, but don't expect too much if the problem
is specific to Prototype. That's one of the many pitfalls of using
such a library.

And let the flame fest begin...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top