Downer On Prototype?
- From: Rob <ratkinson@xxxxxxxxxxxxx>
- Date: Wed, 20 Feb 2008 03:27:27 -0800 (PST)
On Feb 20, 12:22 am, Tony <nos...@xxxxxxxxxxx> wrote:
anush wrote:
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.
Your problem seems more likely to be on the client side, based on your
other comments. I would recommend that you ask on comp.lang.javascript,
but they'll probably bite your head off for using prototype.js in the
first place...
You need to somehow determine if 'id' is being passed into the query
string properly. Then you can determine if the problem is server-side
(PHP) or client-side (javascript). If $_GET['id'] reads as 'undefined',
then I would have to point you to the client side.
** they'll probably bite your head off for using prototype.js **
Tony, I'm intrigued to know why people have such a downer on Prototype
- this isn't the first time I've read comments like this.
Whenever I've used it, I've found it to just simply do exactly what I
want, no bugs, no hacking through code, and superbly documented.
Hace you found problems in the past, or is it the purist in you?
Rob.
.
- Follow-Ups:
- Re: Downer On Prototype?
- From: Tony
- Re: Downer On Prototype?
- From: rf
- Re: Downer On Prototype?
- References:
- Ajax.Request
- From: anush
- Re: Ajax.Request
- From: Tony
- Ajax.Request
- Prev by Date: Re: Ajax.Request
- Next by Date: Re: Advantages and disadvantages of PHP?
- Previous by thread: Re: Ajax.Request
- Next by thread: Re: Downer On Prototype?
- Index(es):
Relevant Pages
|
|