jQuery: The Write Less, Do More JavaScript Library

UI Tabs loading position

View: New views
2 Messages — Rating Filter:   Alert me  

UI Tabs loading position

by narula.vivek@gmail.com :: Rate this Message:

| View Threaded | Show Only this Message


Hi,

I am using UI Tabs to show content from other RSS feeds, therefore i
am using AJAX tabs.  In RSS feeds there is a lot of images that needs
to show. Loading of images takes a bit longer than text. When i
clicked on an closed tab it shows  "loading...."  text  and the tabs
opens once it loads the content in the container.  So what's i need is
NOT to  show  " loading..."  in the tabs instead needs to show this
text i container (while loading) and then  text and images once it
loads fully. How can i do this ?

Please help

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@...
To unsubscribe from this group, send email to jquery-ui+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: UI Tabs loading position

by Klaus Hartl-4 :: Rate this Message:

| View Threaded | Show Only this Message


You can turn off the standard spinner by setting spinner to null:

$('#tabs').tabs({
    spinner: ''
});

For displaying another loading message, you need to brew your own,
utilizing the select and load callbacks:

$('#tabs').tabs({
    spinner: '',
    select: function() {
        // show spinner
    },
    load: function() {
        // hide spinner
    }
});

I would probably use a positioned element for the spinner to place it
on top of the tab content.


--Klaus



On Sep 17, 5:37 pm, Vivek <narula.vi...@...> wrote:

> Hi,
>
> I am using UI Tabs to show content from other RSS feeds, therefore i
> am using AJAX tabs.  In RSS feeds there is a lot of images that needs
> to show. Loading of images takes a bit longer than text. When i
> clicked on an closed tab it shows  "loading...."  text  and the tabs
> opens once it loads the content in the container.  So what's i need is
> NOT to  show  " loading..."  in the tabs instead needs to show this
> text i container (while loading) and then  text and images once it
> loads fully. How can i do this ?
>
> Please help
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@...
To unsubscribe from this group, send email to jquery-ui+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---