Search Postgresql Archives

javascript and postgres

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 * from bra'
            ,asynchronous : true
            ,parameters : ''
            ,onComplete : fetch_function
            ,onLoaded : function(){
                $( 'status' ).innerHTML="Loading...";
            }
            ,onFailure : function(){
                $( 'status' ).innerHTML= "error";
            }
        }
    );

regards


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux