Yea, it actually does seem to decode it already, so when i read the hash string in my onload code it's decoded, I was just hoping I could have it display decoded so it looks nicer.
Thanks though. Filip Wirefors wrote: > > > dojo.back uses encodeURIComponent() internally. > To dedode you can use decodeURIComponent(). > > But the url hash string needs to be encoded, so I dont > think you can get around this urlencode behaviour in the hash. > > >> Date: Mon, 2 Mar 2009 11:31:49 -0800 >> From: [email protected] >> To: [email protected] >> Subject: Re: [fw-general] manipulating the window url without a refresh >> >> >> thanks guys! i think i have this working now. >> >> one last question though. when i use changeUrl in the call to >> dojo.back.addToHistory i have backslashes in the Url that i want to add >> to >> the hash. when i do that, changeUrl automatically encodes it to %2F. >> >> is there any way for me to actually get the '/' character to show up?? >> >> thanks again >> >> >> >> Matthew Weier O'Phinney-3 wrote: >> > >> > -- mapes911 <[email protected]> wrote >> > (on Friday, 27 February 2009, 10:00 AM -0800): >> >> sweet. you guys rock!! i'll give this a try tonight. >> >> >> >> i did a quick search of code in pastebin and didn't find dojo.back. >> >> perhaps >> >> he didn't use it? >> > >> > I did use it -- it's in both the main and bugapp branches. Look in the >> > js-src directory for references -- dojo.back is client-side, after all. >> > :) >> > >> >> anyway, i found some example code so i'm going to give this a whirl. >> >> question that pops into my head now is this: let's say a user >> bookmarks >> >> a >> >> url. this url will now probably have a hash mark in it. so for me to >> be >> >> able >> >> to load the correct content, do i create a dojo.onload (callback) >> routine >> >> that will read the stuff after the hash and determine what >> >> controller/action >> >> combo to call and load into my content div? >> > >> > Yes, exactly. >> > >> >> am i on the right track? >> >> >> >> thanks again >> >> >> >> >> >> Filip Wirefors wrote: >> >> > >> >> > >> >> > Hi, dojo.back has the kind of functionality you are looking for. >> >> > I used dojo.back in conjunction with dijit.layout.ContentPane >> >> > to be able to use the browsers back/forward butons and >> >> > bookmarking. >> >> > >> >> > Some info on the subject can be found here: >> >> > http://docs.dojocampus.org/dojo/back >> >> > >> >> > And if I'm not mistaken, Matthew uses dojo.back in his pastebin app. >> >> > >> >> > /Filip >> >> > >> >> > >> >> >> Hi all, >> >> >> >> >> >> I am developing an application that uses ajax/dojo.xhrget calls >> often >> >> to >> >> >> manipulate certain divs within a page. I would like to be able to >> >> update >> >> >> the >> >> >> url in the browser as the user clicks different areas so that if a >> >> user >> >> >> decided to bookmark the page, they would be able to return to the >> same >> >> >> page >> >> >> with the right content loaded in the container div. >> >> >> >> >> >> I've seen solutions in other forms where they use the >> >> >> parent.location.hash = >> >> >> URL; but this only works if you have a # mark within your url and >> you >> >> are >> >> >> modifying the part of the url after the # >> >> >> >> >> >> Does anyone here know of a way to do this with zend framework?? >> >> > >> >> > >> >> > _________________________________________________________________ >> >> > Svårt att hålla kontakten med släkt & vänner? Skaffa Messenger nu! >> >> > http://download.live.com/messenger >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/manipulating-the-window-url-without-a-refresh-tp22241256p22251070.html >> >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> >> > >> > -- >> > Matthew Weier O'Phinney >> > Software Architect | [email protected] >> > Zend Framework | http://framework.zend.com/ >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/manipulating-the-window-url-without-a-refresh-tp22241256p22294989.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> > > _________________________________________________________________ > Hitta hetaste singlarna på MSN Dejting! > http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952 > -- View this message in context: http://www.nabble.com/manipulating-the-window-url-without-a-refresh-tp22241256p22313801.html Sent from the Zend Framework mailing list archive at Nabble.com.
