Re: Restricting Postgres

From: Matt Clark <matt(at)ymogen(dot)net>
To: Pierre-Frédéric Caillaud <lists(at)boutiquenumerique(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Restricting Postgres
Date: 2004-11-04 22:37:06
Message-ID: 418AAF12.8030307@ymogen.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance


>
> In your webpage include an iframe with a Javascript to refresh it
> every five seconds. The iframe fetches a page from the server which
> brings in the new data in form of generated JavaScript which writes
> in the parent window. Thus, you get a very short request every 5
> seconds to fetch new data, and it is displayed in the client's window
> very naturally.
>
> ...

Yup. If you go the JS route then you can do even better by using JS to
load data into JS objects in the background and manipulate the page
content directly, no need for even an Iframe. Ignore the dullards who
have JS turned off - it's essential for modern web apps, and refusing JS
conflicts absolutely with proper semantic markup.

http://developer.apple.com/internet/webcontent/xmlhttpreq.html is a good
starting point.

It's clear that this discussion has moved way away from PG! Although in
the context of DB backed web apps I guess in remains a bit on-topic...

M

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-11-04 22:44:53 Re: how to edit a function from psql?
Previous Message Pierre-Frédéric Caillaud 2004-11-04 22:00:14 Re: Restricting Postgres

Browse pgsql-performance by date

  From Date Subject
Next Message Matt Clark 2004-11-04 22:38:57 Re: appropriate indexing
Previous Message T E Schmitz 2004-11-04 22:32:57 appropriate indexing