Downer On Prototype?



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.
.



Relevant Pages

  • Re: Ajax.Request
    ... I am using prototype.js to save data into MySQL using Ajax.Request ... otherwise I am just updating it. ... Your problem seems more likely to be on the client side, ... so looking at the PHP code is ...
    (comp.lang.php)
  • Re: Q:what to use for client programming for MySQL 5
    ... > I will try to make small application for POS with MySQL in background. ... > is best to use for client part? ... For the first time everything is on just ... arf meow arf - contemplate the serene vacuity of the gumbyism ...
    (comp.sys.mac.programmer.misc)
  • Re: Q:client for MySQL
    ... >DS> I will try to make small application for POS with MySQL in background. ... >DS> is best to use for client part? ... For the first time everything is on just ...
    (comp.sys.mac.programmer.help)
  • Q:client for MySQL
    ... I will try to make small application for POS with MySQL in background. ... is best to use for client part? ... For the first time everything is on just ...
    (comp.sys.mac.programmer.help)
  • Q:what to use for client programming for MySQL 5
    ... I will try to make small application for POS with MySQL in background. ... is best to use for client part? ... For the first time everything is on just ...
    (comp.sys.mac.programmer.misc)