pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Clark <matt@ymogen.net>
To: Pierre-Frédéric Caillaud <lists@boutiquenumerique.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Restricting Postgres
Date: Thu, 04 Nov 2004 22:37:06 +0000
Message-ID: <418AAF12.8030307@ymogen.net> (raw)
In-Reply-To: <opsgyneoj4cq72hf@musicbox>
References: <003301c4c29a$f052d910$8300a8c0@solent>
	<opsgyi89iccq72hf@musicbox>
	<418A98C0.9010107@ymogen.net>
	<opsgyneoj4cq72hf@musicbox>


>
>     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



view thread (34+ messages)  latest in thread

Message-ID: <418AAF12.8030307@ymogen.net>
Permalink:  ../418AAF12.8030307@ymogen.net/
Also on:    postgresql.org/message-id/418AAF12.8030307@ymogen.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: matt@ymogen.net, lists@boutiquenumerique.com
  Subject: Re: Restricting Postgres
  In-Reply-To: <418AAF12.8030307@ymogen.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox