So you basically store the url elsewhere to make the Back button work? I never got the hang of it... In my case i think it would be better to store in the actual address bar, so the person can bookmark it.
Atenciosamente -- Mauro Marchiori Neto email: [EMAIL PROTECTED] cel: 19 9129.9960 cel: 19 7806.9676 id: 80*15224 On Thu, Oct 9, 2008 at 2:13 PM, Diodeus <[EMAIL PROTECTED]> wrote: > > One was to perform this is to use a history IFRAME. (as in Brad > Neuberg's RSH) > > 1) Make your request to the iframe - I pass it a command and a page > title, separated by underscore. > > function getContent(t,c) { > frames['HIST'].location.href="http://www.mintorentals.com/ > historyManFrame.asp?t=<http://www.mintorentals.com/historyManFrame.asp?t=> > "+t+"&c="+c > } > > 2) The iframe sets the location hash and calls your AJAX function on > the parent page. > > (this one uses classic ASP) > > function hello(){ > baseRef = parent.location.href > myRef = baseRef.split("#") > if(myRef.length>0) { > baseRef = myRef[0] > } > parent.location.href=baseRef+"#<%=request("c")%>_<%=request("t")%>" > parent.document.title = "<%=request("t")%> - Rent Minto"; > parent.getContentH('<%=request("c")%>'); //this calls the actuall > AJAX functionality > } > hello() > > 3) Intercept the hash on your page, break it into your page title and > and command, execute them as in step 1 > > incomingRef = document.location.href.split("#") > if(incomingRef.length>1) { > temp=incomingRef[1].split("_") > if(temp.length==2) { > temp=incomingRef[1].split("_") > getContent(temp[1],temp[0]) > } > > } > > > > On Oct 9, 1:03 pm, "Mauro Marchiori Neto" <[EMAIL PROTECTED]> wrote: > > setInterval right? wouldnt it overload the browser? > > > > Thats right, the Ajax call changes the location hash and updates a <div>, > if > > i click the back button, the hash changes but nothing else happens. > > > > Atenciosamente > > -- > > Mauro Marchiori Neto > > email: [EMAIL PROTECTED] > > cel: 19 9129.9960 > > cel: 19 7806.9676 > > id: 80*15224 > > > > On Thu, Oct 9, 2008 at 1:45 PM, Justin Perkins <[EMAIL PROTECTED] > >wrote: > > > > > > > > > I know of no native way to do this. The first thing that comes to mind > > > is using window.setInterval() to invoke a function every couple of > > > seconds to see if the address bar has been changed. > > > > > Are you updating the address bar when an Ajax request changes the > > > page, but then when you click the back button you are noticing that > > > the URL changes (after the hash symbol) but nothing else does? > > > > > -justin > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---