There are two different things that you could be looking for here, so let's clarify a bit: having a spinner run while the page itself is loading might be problematic (you can't do much of anything until the page is loaded - your best bet would be to include an <img> tag at the top of your HTML and hide it when the page is loaded). If you want to use a spinner while your AJAX calls are being fetched, that's a different story altogether, and the jQuery plugins will handle that for you; you just need to find a plugin that you like.
On Tuesday, May 14, 2013 3:11:16 PM UTC-4, Chrystopher Medina wrote: > > well i have mi spinner , i just wanna show it before the page be loaded. > or even i have to use jquery spinner > > > > 2013/5/14 asgallant <[email protected] <javascript:>> > >> Do you want a "loading" spinner (or something like it)? There are jQuery >> plugins that can do that for you (search for jQuery spinner). >> >> >> On Tuesday, May 14, 2013 1:52:56 PM UTC-4, Chrystopher Medina wrote: >> >>> hi my frined u know i have this >>> >>> $(document).on('ready',**function(){ >>> //$("nav div ul li ul li a").on('click',function(e){ >>> // $("#contenido").load('vistas/' + $(this).attr('id') + '.php'); >>> //}); >>> >>> >>> >>> >>> $("#contenido").load('vistas/**ayuda.php'); >>> $(".menu").on('click',**function(){ >>> $("#contenido").load('vistas/**' + $(this).attr('id') + '.php'); >>> >>> }); >>> >>> >>> }); >>> >>> but i just wanna show a image.gif before load and when the page be load >>> the image hides like next >>> >>> $("#cargando").show(); >>> >>> >>> >>> >>> 2013/5/13 Chrystopher Medina <[email protected]> >>> >>> Thanks my friend I will keep investigating about that. >>>> >>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Visualization API" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> Visit this group at >> http://groups.google.com/group/google-visualization-api?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
