W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] <a onlyreplace>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 18 Oct 2009 11:35:11 -0500
Message-ID: <dd0fbad0910180935i6b07e025t14f4cc5aaacb34a7@mail.gmail.com>
On Sun, Oct 18, 2009 at 11:22 AM, tali garsiel <t_garsiel at hotmail.com> wrote:
> When I said an optimization is a must I didn't just mean bandwidth.
> Imagine this use case:
> You have a page with a chart and a table showing data calculated from complex statistical analysis on your huge database.
> Both the chart and the table have "refresh" buttons implemented with "<a onlyreplace ...>".
> Recalculating the chart when you refresh the table or vice verse will not be acceptable by your project manager :)
> The server will need to know what is currently requested.
> The solution is not necessarily to strip the content, but the server must get information of the updated parts and choose what to calculate.

That's not really an appropriate use of @onlyreplace.  Just put the
chart and table in <iframe>s with @name and use <a target> to refresh
them.  That also automatically optimizes bandwidth, since the subpages
that the chart and frame will live on contain *only* them.

(Preventing this sort of abuse might be a good reason to do the "only
<base> can carry an id list" revision.)

~TJ
Received on Sunday, 18 October 2009 09:35:11 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC