[jQuery] Re: nth-child() vs. even/odd
No, they're definitely not equivalent in the general case. The :even and :odd selectors apply to the even/odd elements in the jQuery object. Depending on what has come earlier in the selector, those elements may not even be related in any way. In contrast, :nth-child(even) selects the even children of the element(s) in the jQuery object. The example in the documentation does a pretty good job of demonstrating this: http://docs.jquery.com/Selectors/nthChild
[jQuery] Control the execution of successive ajax calls !!!
hello, I have a request to make two ajax calls (two different requests), but the call back function for both the ajx calls is same.My requirement here is, i do not want to trigger the second ajax call till the first ajax call and it's success function are completely executed. I short, i want to control the execution of the successive ajax calls. Any ideas or pointers for the above question? Thanks, nit...
[jQuery] How do I cache a page once it has been loaded via AJAX?
How do I cache a particular page that has been loaded via Ajax GET request. I want it to stop the GET request after it has been loaded and simply show data onclick. I set the cache setting to 'true' and it still calls the request. What am I doing wrong? My Link $(document).ready(function() { $.ajaxSettings.cache = true; $('a#myLink').click(function(){ $.ajax({type: "GET", url: 'myPage.jsp', cache: true, dataType: 'html', success: function(html) {document.getElementById('myContainer').innerHTML = html;} }); });
[jQuery] Re: Needed link | Jquery simple Dropdown menu
a plethora of options! try these :) http://snipplr.com/view/2123/suckerfish-dropdown-menus-jquerystyle/ http://www.kriesi.at/archives/create-a-multilevel-dropdown-menu-with-css-and-improve-it-via-jquery http://jdsharp.us/jQuery/plugins/jdMenu/ 2008/8/24 Sridhar Gowda <[EMAIL PROTECTED]> > > Hi All, > > I am new to jquery a learner. I was just going through the sites for > simple jquery menu. But everywhere i am finding accordion menu. I dont > need that. Can anyone please help me out with this? any code or link? > > > Thanks & Regards > Sridhar k n >
[jQuery] Re: Minimizing jQuery library
Mike, thanks for your cool post. Last two hours I was doing just the same thing as you have suggested and came to a few results with limitations: - minified version of needed code without ready and sliding is 8k, without sliding but with ready 16kb and 42kb with sliding. Probably here is the best idea to get JSON functionality out of jQuery (or use yours JSONP) and find one simple sliding script. PS: I am not a fan of gzipping, sounds pretty uncommon to me. On Aug 24, 1:23 am, "Michael Geary" <[EMAIL PROTECTED]> wrote: > If you just need a basic JSONP (with callback), you might want to remove the > Ajax library in its entirety and just use a basic JSONP function. > > For the rest, I would get your app working, and then start going through the > jQuery code commenting out whatever you don't think you're using. Then test > your app. You'll probably find a few things you commented out that you have > to put back in, but those are easy to spot. This is why you comment out code > rather than deleting it. > > Watch out for silly syntax errors like extra commas or missing commas that > result from commenting out part of an object literal. > > Any good programmers' editor should let you select a range of lines of code > and with a single keystroke comment or uncomment the entire range (or do the > same with a text selection within a line of code, using the appropriate > comment characters in each case). If your editor doesn't do this, go get the > free Komodo Edit: > > http://www.activestate.com/Products/komodo_edit/ > > You could approach the Ajax plugin this same way, but it's complicated > enough that it would be hard to strip it down to a simple function call - > and JSONP only takes a dozen lines of code. See my ancient JSON plugin for > one example: > > http://mg.to/2006/01/25/json-for-jquery > > If you start from the uncompressed jquery-1.2.6.js on the website, watch out > for the exact point where the ajax plugin begins and ends - it's not exactly > on a line break. You can check out the code from svn and get the individual > files that go into jquery-1.2.6.js to see what's what. > > Once you have the code commented out that you aren't using, run it through > Packer or JSMin, then GZip it, and see how you've done! All of the > commented-out code will be gone from your download. > > -Mike > > > From: me-and-jQuery > > > Well, in my case, I need JSON call not classic ajax. I know > > other functionalities are simple in JS, but JSON call and > > sliding is a must. > > Max file can be 5-10 kb from my calculations. > > > What about removing functions from jQuery library which I > > don't need and have no effect on "engine" and needed > > functionality? Do you have any experience with that? > > > Thanks in advcance.
[jQuery] MultiFile plugin: Anyone know how to reset the form using javascript?
Hi there, anyone using the MultiFile plugin can drop me a line, please? How can I reset the form? Thank you!!
[jQuery] Needed link | Jquery simple Dropdown menu
Hi All, I am new to jquery a learner. I was just going through the sites for simple jquery menu. But everywhere i am finding accordion menu. I dont need that. Can anyone please help me out with this? any code or link? Thanks & Regards Sridhar k n
[jQuery] Re: Question about ajaxSubmit
> I'm new to the group and to JQuery, but am currently reading and > writing a review of JQuery in Action. I have an interesting problem; > I'm hoping someone can help me with it. > > I have a form that posts to a server. When the post executes, it > always receives a redirect. What I want to do is capture that > redirect, determine whether it is an HTML page or a PDF document. If > it is an HTML page, I want to display it in the same window/tab. If a > PDF document, I want to change the target for the GET (the redirect) > to "_blank" (a new window/tab). > > I'm afraid that so much of ajaxSubmit is wrapped up that I cannot get > access to what I need. I don't even know if JQuery will allow me not > to follow redirects - I don't see any API for this, but I'm likely > missing something. > > Any ideas? > > Thanks! > > David Sills This doesn't really have anything to do with ajaxSubmit. You're talking about capturing a redirect from the server but the XMLHttpRequest object will automatically follow a redirect. The response you end up with will be whatever is at the redirect location. Essentially the redir works the same as if you had requested the page without ajax, except the main window location for the browser will not change when the request is made via ajax. Mike
[jQuery] Re: Adding Values (Sum) of TD.
you should be able to .append a tfoot, then iterate through the tbody's trs and tds to populate an array, then use that to populate some fresh td's in the tfoot. i'd write it for ya but i gotta go to the opera. ^_^ stephen On Sat, Aug 23, 2008 at 10:12 AM, Scott Phillips <[EMAIL PROTECTED]>wrote: > > I am trying to do a footer at the bottom of the table, and I would > love to use jquery to provide a total in the footer, something like > this: > > 1 | 1 | 3 > 2 | 1 | 4 > -- > 2 | 2 | 7 (JQuery added the TDs above) > > > Is it possible? And can anyone point me in the right direction. >
[jQuery] Re: Question re: jQuery QuickSearch
Hi Mike, Thank you very very much for the much detailed explanation. I went over it and actually got my quicksearch to work! :) If there is anything I can do next time, please don't hesitate to ask. All the best, McBilly On Sat, Aug 23, 2008 at 9:34 PM, mickes <[EMAIL PROTECTED]> wrote: > > Try this: > > Here is a sample of the section of my html document: > > > ASAP Summries 2-26-08 - Flight Options > > script> >