+1 Nice website.
Farrukh On 2011-01-15, at 12:17 AM, Amedeo Mantica wrote: > Hello all, > > Sometime ago I was on the hotnews page of apple website > > http://www.apple.com/hotnews/ > > and I noticed that if you click on the page selection numbers a javascript > actually change tha page but is also added a fragment identifier to the page, > so if you copy/paste the url or hit refresh you are still in the correct page > > > now, if we have a direct action page that we have called with some > parameters, for example: > > /wa/showProducts?category=Cables > > and we have inside that page some Ajax popup buttons or other Ajax elements > that can change category or page, when we hit realod we lose any choice made. > > > based on apple hotnews and thank to Mike for some explanations page I made a > solution that I would like to share with you > > When you need to an ajax call ( via AjaxUpdateLink, an AjaxObserveField > etc... ) you need to update the url using a js window.location=... > > then the url become > > /wa/showProducts?category=Cables&page=2#&category=Video > > when an user hit refresh or the url is pasted in a new page I made a > javascript that take care of combining/updating the left side (and discard > the rightside) > > > this is the js source code if you would like to check > > http://www.confindustria.chieti.it/WebObjects/ConfindustriaNet.woa/Contents/WebServerResources/ajaxToDirectActions.js > > if you would like to try go to this website > > http://www.confindustria.chieti.it > on the top navigation bar click on "LE AZIENDE" > > then you have on the left a popupmenu called "Selezione per settore" ( > actually I have enabled only on that ) > change tha value then reload the page > > I think that this can be made better and eventually incorporated in wonder, > adding two bindings to AjaxDinamicElements ( fragmentIdentifierKey, > fragmentIdentifierValue ) > > > Any suggestion ? > > Regards > Amedeo > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
