Active
Project:
Ajax Tabs
Version:
6.x-0.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2009 at 11:02 UTC
Updated:
30 Sep 2011 at 07:07 UTC
Is it possible to display the preload image while tab is processing?
Wonderful module, by the way!
Comments
Comment #1
keesee commentedI second this. Some kind of simple loading indicator would be great. Its not completely obvious that ajax is at work.
--
J.
Comment #2
hanamizuki commentedyeah! this is my first thought after enable this cool module.
Comment #3
stefan81 commentedYes, as it takes a while until the new content, a loading indicator would be cool!
Steps:
- Fade out the old content
- loader icon
- fade in new content
I'd be ready to sponsor a few bugs.
Comment #4
samchok commentedI think too this feature is really needed!
Comment #5
light9 commentedsubscribe
Comment #6
greylogic commentedsubscribing...
Comment #7
focal55 commentedI want to help out here but I am pretty new to contributing back to the community, so I will just put my thoughts in here for now, while I learn more about contributing to the amazing Drupal community
In the ajax_tabs.js file you can easily use jQuery to display a preloader when the tab is clicked. Here is an example of what I did to make a preloader show up.
ajax_tabs.js
To summarize, after the user clicks on the tab, check to see if the preloader is already on the page and if not, fadeIn() the preloader. On a success response, fadeOut() the preloader.
I will go educate myself on how to properly contribute back code, but maybe this will help some of you in the meantime.
I should also note that I added a .AjaxTabs-preloader class to my themes style sheet and made a GIF preloader graphic the background image. I am not sure how to do this properly via a module.
FYI - http://preloaders.net and http://www.ajaxload.info are great resources for sweet preloader GIFs.
Joe Ybarra
Focal55 Designer Development
Comment #8
hanamizuki commentedUPDATE: I turned off this again, cuz there are still some problem...
it works perfectly!! Thanks focal55~
My example: http://bhuntr.com/match/detail/3160
I moved the AjaxTabs-preloader to #content-area prepend
Comment #9
adam_c commentedThanks for the input into this issue, I cant seem to get it to work though.
I added you code that you posted to the bottom of the js file, I added a class
.AjaxTabs-preloader{
background:url("images/29.gif") no-repeat;
}
to my stylesheet but nothing happens. In firebug im expecting to see a div pre-pended to the the 'tabs-wrapper' but nothing happens. Am i missing something obvious?
Comment #10
jacobpov commentedSame here (subscribe)
Comment #11
denny84 commentedTry this css
Comment #12
msk2020ckp commentedPlz Tell me solution for this issue...This is must for every drupal website..