[jQuery] List overload
I just want to point out that this list is so active that I simply can't keep up. I wonder if splitting the list into two or more lists based on some criteria would be advisable. Just a thought, trans.
[jQuery] Re: List overload
On Oct 2, 4:46 pm, Rene Veerman [EMAIL PROTECTED] wrote: Trans wrote: I just want to point out that this list is so active that I simply can't keep up. I wonder if splitting the list into two or more lists based on some criteria would be advisable. Just a thought, trans. try a mailclient that supports threaded views (you have to turn it on though), then regularly 'mark all as read' even though you only scanned the headlines.. I already use Google Groups. Problem is there are so many new topics every day. Maybe it's not feasible but I wish I could look at product announcements separate from beginners questions and separate from advanced discussions. T.
[jQuery] Re: New jQuery Website...
On Sep 8, 12:58 pm, Chris Jordan [EMAIL PROTECTED] wrote: I really like the look of the new jQuery website. When did it get launched? My hats off to the designers! It looks fantastic!! :o) +1 although I sort of miss the red cylinders logo. 7.
[jQuery] Re: Progress image swap
FYI, I figured out a solution. The trick was to use setTimeout() to run the loading code as a separated process. $(#meter).attr(src,img/meter_on.gif).show('fast'); setTimeout(load_stuff_with_ajax,100); Thanks for youall's attempt to help. I appreciate your efforts. T.
[jQuery] Progress image swap
Hi-- I'm pulling my hair out trying to make this work. I want to change an image to an animated gif to indicate progress while I pull down some files via synchronous ajax, and then switch the image back to a static one when finished. Everything I try fails, invariably the animated gif doesn't become visible until all the ajax loads complete, and then of course it gone. HEre the basic code I have at them moment: $(#meter).attr(src,img/meter_on.gif).show('fast', function() { load_stuff_with_ajax(); $(#meter).attr(src,img/meter_off.gif).show(); }); Any help will is greatly appreciated. I can;t tell you how sick I am of reading tutorials saying how easy AJAX is when the simple things like seem impossible to figure out. Thanks, T.
[jQuery] Re: Progress image swap
On Jan 8, 4:46 pm, Benjamin Sterling [EMAIL PROTECTED] wrote: This is untested but something like: var ajaxCalles = 16; $(#meter).attr(src,img/meter_on.gif) // change the src tag to the animate gif $.ajax({ url: 'myurl', success : function(){//do processing}, error: function(){/process error}, complete : function(){ ajaxCalles--; if(ajaxCalles == 0){ $(#meter).attr(src,img/meter_off.gif) } } // this gets called after success and error callbacks are executed }); Make your group of ajax call like above and that should get you going. Thanks again. I implemented exactly what you suggested and unfortunately it does the exact same thing. All rendering of the page seems to occur only after all the javascript completes execution. It's like one made flurry of page rendering just at the end. Why would that be? Do I have to flush a change queue or something? T.
[jQuery] Re: Progress image swap
On Jan 8, 5:23 pm, Josh Nathanson [EMAIL PROTECTED] wrote: Any chance you can post a test page somewhere? It's a little hard to picture what's going on. Here's a strip down rendition of exactly what I'm doing: function Mica() { this.tally = 18; this.types = ['htm', 'txt', 'xml', 'gif', 'jpg', 'png']; this.sizes = ['sm', 'md', 'lg']; }; Mica.prototype.start = function() { var mica = this; $(#meter).attr(src,img/meter_on.gif).show(fast, function() { mica.load_files(); }); }; Mica.prototype.load_files = function() { for(var i=0; i this.types.length; i++) { ftype = this.types[i]; for(var j=0; j this.sizes.length; j++) { fsize = this.sizes[j] fname = data/ + ftype + / + fsize + . + ftype; this.load_up(fname, ftype, fsize); }; }; }; Mica.prototype.load_up = function(fname, ftype, fsize) { var mica = this; $.ajax({ url: fname, cache: false, async: false, complete: function() { mica.tally--; if (mica.tally == 0) { $(#meter).attr(src,img/meter_off.gif); } } }); }; T.
[jQuery] Re: Progress image swap
On Jan 8, 5:36 pm, Benjamin Sterling [EMAIL PROTECTED] wrote: Trans: async: false means that the browser will lock up each request will not do it asynchronously, which means the code we provide will not work. Is there a reason you are doing it with async: false? Ah, so it's not refreshing the screen _before_ it starts into the synchronous load. The reason I'm using async: false is b/c I'm also timing how long it take to load _each_ file. T.
[jQuery] Ajax/load doesn't load Google Ads?
Hi-- I am using AJAX to load a sidebar into my page: $('#side').load('side.html') It loads fine except for the the Google Ad code that is in side.html: div style=margin-left: 3px; script type=text/javascript!-- google_ad_client = pub-; google_ad_width = 160; google_ad_height = 600; google_ad_format = 160x600_as; google_ad_type = text_image; //2007-10-01: xanadu google_ad_channel = 9867202388; google_color_border = 336699; google_color_bg = FF; google_color_link = FF; google_color_text = 00; google_color_url = 008000; //-- /script script type=text/javascript src=http://pagead2.googlesyndication.com/pagead/show_ads.js; /script /div Why doesn't this execute when loaded by the ajax load method? Is there a way for me to fix it? Thanks, T.
[jQuery] Re: unload
On Sep 24, 12:53 pm, Erik Beeson [EMAIL PROTECTED] wrote: Try $(window).unload(...). Works for me on firefox. I think these docs are wrong:http://docs.jquery.com/Events/unload#fn Thanks. That worked for when the window changes or redirects. Is there anyway to detect a browser window being closed? T.
[jQuery] unload
I tried this: $(document).unload(function() { alert(Bye now!); } ); But it doesn't seem to do anything. What am I doing wrong? (I'm using the latest version of jQuery.) Thanks, Trans.
[jQuery] Re: get all checkboxes
On Sep 19, 4:37 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, is it possible in prototype to get all checkboxes on a page with a fixed id namepart like this: ID=my_checkbox and i want to get all checkboxes beginning on my_ I'm having a similar issue. I used: var videos_checkboxes = $('[EMAIL PROTECTED]'); That seems to work, however I can't seem to use it. I have: var videos = []; var videos_checkboxes = $('[EMAIL PROTECTED]'); alert( videos_checkboxes.size() ); // returns 3 like I expect // But this only iterates over 1 element and it is not a jQuery object. $('[EMAIL PROTECTED]').each(function(i, e) { alert(e); // [object HtmlInputElement] (why?) videos.push(e.val()); // Error }); What am I doing wrong? I'm trying to collect all the value attributes of the selected checkboxes. T.
[jQuery] Re: find is finding what?
On Jun 11, 7:30 pm, Erik Beeson [EMAIL PROTECTED] wrote: jQuery always returns a jQuery object, regardless of whether it finds anything or not. To see if anything has been selected, use last.length or last.size() being greater than 0. This is by design so chaining won't break if nothing is selected: $('.someSelector').addClass('highlighted'); Will add the class to the selected stuff, if anything is selected. Otherwise, it doesn't do anything. Ah, of course. That makes lots of sense. Thanks for the tip. T.
[jQuery] find is finding what?
Hi, I have the following: var stack = $('#mydiv') var last = stack.find('.card:last-child'); It doesn't make sense to me, b/c even if stack has no children, last is being assigned to some object irregardless of the '.card' filter. To work around I had to do this next: if (last.is('.card')) { return last; } else { return null; }; What am I misunderstanding? Thanks, T.