Re: [GENERAL] PGSQL and Javascript

2009-01-30 Thread Leif B. Kristensen
On Friday 30. January 2009, Reg Me Please wrote: >Hello all. > >Is there a way to directly access PGSQL from a Javascript application? >With no application server intervention, I mean. >Just like libq allows access from C/C++. The usual way to handle it is to let the JavaScript code call a server

Re: [INTERFACES] [GENERAL] PGSQL and Javascript

2009-01-30 Thread Sean Davis
On Fri, Jan 30, 2009 at 7:43 AM, Reg Me Please wrote: > I already have a JS interpreter (spidermonkey) but there is no PGSQL > interfacing API! > This'd be why I'm asking. > Ah. Sorry again. No idea if this will be useful, but you might take a look at: http://www.whitebeam.org/ Sean > > On

Re: [INTERFACES] [GENERAL] PGSQL and Javascript

2009-01-30 Thread Miha D. Puc
Well you can add you own objects to Spidermonkey via its c api. So you can implement something like Database object in c using libq and access it from your script. Regards, Miha Reg Me Please pravi: I already have a JS interpreter (spidermonkey) but there is no PGSQL interfacing API! This'd b

Re: [GENERAL] PGSQL and Javascript

2009-01-30 Thread Thomas Markus
look at apache cocoon for serverside javascript (rhino engine) you can direct access java classes. write all db stuff in java and access it from js var dao = Packages.my.own.package.DAOController.findAll(); Packages.java.lang.System.out.println(dao.myproperty); regards thomas Reg Me Please s

Re: [INTERFACES] [GENERAL] PGSQL and Javascript

2009-01-30 Thread Reg Me Please
I already have a JS interpreter (spidermonkey) but there is no PGSQL interfacing API! This'd be why I'm asking. On Friday 30 January 2009 13:24:59 Sean Davis wrote: > On Fri, Jan 30, 2009 at 7:09 AM, Reg Me Please wrote: > > I'd like to write part of the application in Javascript, server side, no

Re: [INTERFACES] [GENERAL] PGSQL and Javascript

2009-01-30 Thread Sean Davis
On Fri, Jan 30, 2009 at 7:09 AM, Reg Me Please wrote: > I'd like to write part of the application in Javascript, server side, not > in > the web page. > I missed your point. Do a google search for javascript interpreters in the language of your choice. For example, there is Rhino for java. Sea

Re: [GENERAL] PGSQL and Javascript

2009-01-30 Thread Reg Me Please
I'd like to write part of the application in Javascript, server side, not in the web page. On Friday 30 January 2009 12:53:05 Allan Kamau wrote: > May be Javascript + JDBC not sure. > > But the question is why would you want to do so? > Javascript can be read easily by the user having the javascr

Re: [GENERAL] PGSQL and Javascript

2009-01-30 Thread Allan Kamau
May be Javascript + JDBC not sure. But the question is why would you want to do so? Javascript can be read easily by the user having the javascript running on their browser. JDBC or any other database connecting client will want to some how authenticate the user in most cases the username, passwor

[GENERAL] PGSQL and Javascript

2009-01-30 Thread Reg Me Please
Hello all. Is there a way to directly access PGSQL from a Javascript application? With no application server intervention, I mean. Just like libq allows access from C/C++. -- Fahrbahn ist ein graues Band weisse Streifen, grĂ¼ner Rand -- Sent via pgsql-general mailing list (pgsql-general@postgre