<Derrell.Lipman <at> UnwiredUniverse.com> writes:

> 
> "Alex D." <a.dukhovniy <at> tis-gmbh.de> writes:
> 
> >
> > <b>Warning</b>:  pg_connect() [<a
> > href='function.pg-connect'>function.pg-connect</a>]: Unable to connect to
> > PostgreSQL server: FATAL:  database &quot;test&quot; does not exist
> > in <b>C:\.............php</b> on line <b>267</b><br />
> > {"error":{"origin":2,"code":5,"message":"Kann keine Verbindung mit der DB
herstellen."},"id":11}
> 
> Hi Alex,
> 
> It's that FATAL error you're receiving that I've not been able to catch.  Any
> time the PHP script outputs anything (including this error message), it gets
> sent back to the browser.  We don't want that.  The part of the message that
> we want is the last line beginning with : {"error":{"origin"...  That's the
> JSON message.  When qooxdoo receives the error message, it finds that it's not
> a valid JSON message and complains bitterly.
> 
> Hmmm... I wonder if I catching and ignoring all output in the methods would
> work?  I don't know if it'd catch error messages, but it might be worth a
> try.
> 
> Hmmm... I wonder if I should make an attempt to determine if the response is
> not JSON and generate a JSON error event due to that?  That'd probably be
> better than just showing the error in the debug console, but it's putting code
> into the client that doesn't belong there.  The server shouldn't be sending
> the garbage...  Hmmm...
> 
> In the mean time, please try making one simple change: add an ' <at> ' before
> pg_connect.  Instead of this:
> 
> >            $db = pg_connect("host=$dburl port=$dbport dbname=$dbname
> > user=$dbuser password=$dbpwd");
> 
> do this:
> 
>             $db =  <at> pg_connect("host=$dburl port=$dbport dbname=$dbname
>  user=$dbuser password=$dbpwd");
> 
> That "should" cause the error to be ignored internally, and just have it
> returned to your $db variable.  Let me know how that works.
> 
> Cheers,
> 
> Derrell
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 


I become the same Error Message, but i don't connect to any database. I would
become back an Array of $_GET and $_POST.


test.js:

                ...

                var rpc = new qx.io.remote.Rpc();
                rpc.setTimeout(10000);
                           
rpc.setUrl("http://127.0.0.1/hostname.php?Hostname="+check_HostName+"&IP="+check_IP+"&HostAlias="+check_HostAlias);
                rpc.setServiceName("HostName");
                rpc.setCrossDomain(false);

                rpc.addEventListener("completed", function(e) {
                        alert("Status: Completed");
                });

                rpc.addEventListener("sending", function(e) {
                        alert("Status: Sending");
                });

                rpc.addEventListener("failed", function(e) {
                        alert("Status: Failed");
                });

                rpc.addEventListener("timeout", function(e) {
                        alert("Status: Timeout");
                });

                rpc.addEventListener("aborted", function(e) {
                        alert("Status: Aborted");
                });


                mycall = rpc.callAsync(
                        function(result, ex, id){
                                if (ex == null) {
                                        alert(result);
                                } else {
                                        alert("Async(" + id + ") exception: " + 
ex);
                                }
                        },
                        "method",
                        "arg1",
                        "arg2"
                );

                ...

hostname.php:

                <?php
                        echo "GET: ";
                        print_r($_GET);

                        echo "POST: ";
                        print_r($_POST);
                ?>


Any Idea ?

Regards
Stefan


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to