Ha, I know it doesn't sound like it does make too much sense - I have a feeling that from user experience perspective it works pretty well though. I am not reloading the whole page, header and footer stay in place and AJAX load is at least a few times faster to load content than reloading the whole page.
Yeah, it seems some hacky trick with an iFrame will have to be the solution. Thanks On Jul 9, 4:15 pm, Ryan Florence <[email protected]> wrote: > Your question makes no sense to me. > > Are you saying you want the browser to do everything it normally does when > you load a new page (ie Safari, the address field starts filling up with a > blue status bar, other browser have a spinner somewhere in the interface.) > > If so, no, there's no direct way to do that. I guess onRequest you could > create an iframe and point it to some page on your server that has a > ridiculously long sleep time so the browser is always trying to load it, then > onSuccess of the ajax request you could destroy the iframe. I don't kow ... > seems silly. If you're reloading the whole page with ajax, and want it to > feel like it's not ajax, why not just reload the whole page? > > On Jul 9, 2010, at 5:45 AM, bootle wrote: > > > Thanks guys, > > > That's not what I'm looking for though. I have some big calls that > > reload almost all the page (like Facebook, to say) and for these I > > would like to give users "proper" loading feedback - as if the page > > was loaded without AJAX. onRequest can just modify something within > > HTML or temporarily change page title, but not change the state of the > > browser. > > > Matt > > > On Jul 9, 8:14 am, Andrea Dessì <[email protected]> wrote: > >> maybe using the same "onRequest" (or a global one) for all of them you > >> can create a stack and show a loading box > >> in the proper way :) > > >> -- > >> Andrea Dessì > > >> Email: [email protected] > >> Skype: nkjoep > >> Blog:http://www.stealthefish.com/ > >> LinkedIn:http://www.linkedin.com/in/andreadessi > >> Jabber: [email protected] > >> Twitter:http://www.twitter.com/NKjoep > > >> On Fri, Jul 9, 2010 at 08:16, Aaron Newton <[email protected]> wrote: > >>> See also Spinner: > > >>>http://mootools.net/docs/more/Interface/Spinner > > >>> On Thu, Jul 8, 2010 at 7:22 PM, Ryan Florence <[email protected]>wrote: > > >>>> onRequest: function(){ /* do whatever you want */ } > > >>>>http://jsfiddle.net/rpflorence/NF2jz/187/ > > >>>> On Jul 8, 2010, at 7:07 PM, bootle wrote: > > >>>>> Hey, > > >>>>> I've been searching all around internet for a solution to make > >>>>> browsers display loading information when accessing ajax content > >>>>> (spinner on tab and/or in address bar, 'loading...' text as title etc. > >>>>> - depending on browser). I'm looking for a behaviour like in Gmail and > >>>>> Facebook (for some calls), best if it could be implemented for JSON > >>>>> requests. > > >>>>> I found these two articles: > > >>>>http://www.stevesouders.com/blog/2009/04/27/loading-scripts-without-b... > >>>>>http://www.obviously.com/tech_tips/slow_load_technique > > >>>>> Before I start experimenting with that though, > >>>>> I'm wondering if you know what would be the best way to achieve it > >>>>> with mootools? Is there any existing class/extension to Request that > >>>>> could make this easy or an approach you would recommend? > > >>>>> Many thanks guys, > >>>>> Matt
