W3C home > Mailing lists > Public > www-svg@w3.org > June 2008

Re: Is it a bug where the uri has not changed, but the back button must be activated more than once?

From: Jonathan Chetwynd <j.chetwynd@btinternet.com>
Date: Fri, 27 Jun 2008 13:19:13 +0100
Cc: www-svg <www-svg@w3.org>
Message-Id: <AE681530-944C-416C-82B7-2D4413ACCDA7@btinternet.com>
To: Helder Magalh„es <helder.magalhaes@gmail.com>
Helder,

thanks for your lengthy and considered response.

the query relates to SVG and AJAX and xmlhttprequest in particular.
Though other concerns such as <use> remote file may be involved.

Opera is afaik the only browser supporting these both.
However the back button is broken, and this has been filed as a bug.

my concern is that whilst Google has many documents describing the  
navigational workarounds you outline.
references to the necessity that the back button or history should  
only be effected where the uri changes, are harder to find.

regards


Jonathan Chetwynd

j.chetwynd@btinternet.com
http://www.openicon.org/

+44 (0) 20 7978 1764


On 26 Jun 2008, at 11:15, Helder Magalh„es wrote:

>
>> Is it a bug where the uri has not changed, but the back button must  
>> be
>> activated more than once?
>> or to put it another way, what events does the back button  
>> register, when
>> the page has not changed?
>> how can one build an ajax app in svg and be certain that one hit of  
>> the back
>> button will return the user to the site before they visited the  
>> ajax web
>> app?
> [...]
>> not the usual issue around being able to navigate within the ajax  
>> app. [?]
>
> Overall this seems a matter apparently more fit to the SVG-developers
> group [1]. ;-)
>
> Sorry but the text is a bit confuse (at least, to me). Could you
> perhaps explain a bit more clearly: when you mean pressing the back
> button, do you mean navigating to a previous state of (the same)
> document or navigating to a previous (but different) document?
>
> If you are referring to navigate within document states (within the
> same document), then I'm not sure if it's possible at all. An HTML
> (not SVG related) framework I'm aware of, qooxdoo [2], includes
> support for this using neat tricks - you may perform back/forward
> navigation withing AJAX widgets (try the showcase [3], for instance).
> This seems to be implemented using fake HTML anchors (for example,
> http://example.com/example.html#exampleAnchor). Maybe it's possible to
> develop a similar technique in SVG, but this will require further
> investigation and interoperability tests for current
> implementations...
>
> If you refer to pressing the back button to navigate to the previous
> document, this already seems to happen in most UA as far as I know.
> Batik Squiggle implements it (with SVG document support only) and
> browsers which natively implement SVG seem to properly allow pressing
> the back/forward buttons to previous/subsequent (HTML/SVG) documents.
> Browser plug-ins (such as ASV for Internet Explorer) also seem to
> behave more or less as expected.
>
> SVG already includes a mechanism to navigate within SVG content and/or
> SVG views [4], although AFAIK implementation support is low (any at
> all?). I believe that SVG 1.2 addresses this matter in a more precise
> way so let's wait to see what future will bring. :-)
>
> Hope this helps,
>
> Helder Magalh„es
>
> [1] http://tech.groups.yahoo.com/group/svg-developers/
> [2] http://qooxdoo.org/
> [3] http://demo.qooxdoo.org/current/showcase/
> [4] http://www.w3.org/TR/SVG/linking.html#LinksIntoSVG
>
Received on Friday, 27 June 2008 12:19:56 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:39 GMT