From: | Jorge Godoy <jgodoy(at)gmail(dot)com> |
---|---|
To: | Paul M Foster <paulf(at)quillandmouse(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Ajax/PostgreSQL |
Date: | 2006-08-05 23:27:25 |
Message-ID: | 87bqqybw6a.fsf@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Paul M Foster <paulf(at)quillandmouse(dot)com> writes:
> Here's an example: The user wants to enter a bill (accounts payable) into the
> system. He first has to pick a vendor. Normally, this would entail a PHP page
> that generates a PostgreSQL query. The user would then get a second page with
> various vendor information (like number of due days for that vendor), and
> various other payable info. But wouldn't it be nice to have vendor information
> filled in on the original page, directly after the user picks a vendor?
> Theoretically, AJAX might allow something like this. But from what I can see,
> it would require PostgreSQL bindings in Javascript, and some way to pass the
> data back so that PHP could use it.
I'd do it the reverse: Javascript would call a PHP-enabled URL, PHP would get
the data, return to JS, JS would then populate the form.
This way all your logic is contained within PG and PHP. JS would only be used
to manipulate the interface.
--
Jorge Godoy <jgodoy(at)gmail(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | Robby Russell | 2006-08-05 23:29:32 | missing chunk number 0 for toast value xxxxx |
Previous Message | Paul M Foster | 2006-08-05 22:42:39 | Ajax/PostgreSQL |