Re: [GENERAL] javascript and postgres

2009-02-24 Thread
thanks for replies. Craig Ringer wrote: >This is a really, really, REALLY bad idea. I agree. John R Pierce wrote: > if you mean client side Javascript running on the end users web browser, > no, it should NOT be allowed to connect to a database server directly. Web pages have username and passwo

[GENERAL] javascript and postgres

2009-02-23 Thread
Hello all. My javascript connects with postgres using php. php responds with XML for my select request. I wonder is there any way to access to postgres directly? I mean like this. new PGSQL.Request ( 'postgres.server.com' ,{ ,port: 5432 ,sql : 'select *