[jQuery] Re: jqGrid 3.3 version
Hi Tony, Very nicely done - will definitely take a look at it. Is there a plan to add filtering too? For example, I do a search which returns 3000 records (say split over GroupA,GroupB,GroupC etc). Now, if I want to filter on just GroupA (say 500 records) and then return just that info in the grid is that possible? Obviously it would require some sneaky server side Ajax to do too - but it would require filtering drop downs on each column in the grid too? Great work! Thanks, Patrick On Oct 15, 11:13 am, Rey Bango <[EMAIL PROTECTED]> wrote: > Wow Tony! Just WOW! :D > > Rey... > > Tony wrote: > > Hello all, > > A new version of jqGrid is available. > > All the new features and bug fixes can be found here > >http://www.secondpersonplural.ca/jqgriddocs/index.htm > > > Be a sure to visit the demo page for the new features. > >http://trirand.com/jqgrid/jqgrid.html > > > The jqGrid home page is here > >http://trirand.com/blog/ > > > Enjoy > > Tony
[jQuery] Re: AJAX Difference between IIS and Apache?
Hi Bill, Ah I think I have it now? In both examples above the Type of the $.ajax is set to POST... so it is *not* a GET request... however, in the string above I didn't have spaces - so it failed - when the Object in the second example was sent (which worked correctly) - obviously the spaces were correctly encoded... So when you pass params to a $.ajax and you don't URLEncode them into the QueryString then the spaces will be stripped... Better to pass as an object (which I now am!) But it's still strange that when the data is passed as a String with spaces that it works on APACHE & PHP.. very odd. On Jun 24, 3:18 pm, Bil Corry <[EMAIL PROTECTED]> wrote: > patrick davey wrote on 6/23/2008 5:52 PM: > > > data: 'requestID=350&elementID=' + > > 'ajax' + '&update_value=1 2 3 4 5', > > Spaces are not valid in a GET request. The above should be: > > data: 'requestID=350&elementID=' + > 'ajax' + '&update_value=1%202%203%204%205', > > - Bil
[jQuery] AJAX Difference between IIS and Apache?
Ok... this makes *no sense* (to me!) but then hopefully someone out there will have an answer. I have been using the Edit In Place from http://davehauenstein.com/blog/ to update some form fields using AJAX. All was going well until I noticed that spaces were being removed (e.g. 'Bob Jones' would become 'BobJones') The strange thing is that I ran this on an XAMPP server and it worked fine (spaces were retained) but when I ran it on my IIS server - the spaces were removed. The difference is in the data line: snippit which doesn't work $.ajax({ url: "results.asp", type: "POST", data: 'requestID=350&elementID=' + 'ajax' + '&update_value=1 2 3 4 5', end of snippit --does work (on both IIS and APACHE ) -- $.ajax({ url: "results.php", type: "POST", data: { requestID: "350", element_id: "firstname",update_value:" 1 2 3 4 5 " }, --- end of snippet--- Seems like the top one must be URL Encoded - but not done in a way IIS can interpret? Anyway - looks like I will be passing a map or using a new Edit In Place (any suggestions). You can see the code working on APACHE at http://www.snowpool.org.nz/test/test.htm - I cannot link to the ASP code... however the HTML file is basically identical - and both results pages just print out the contents of the form.. Any ideas? :) Thanks! Patrick
[jQuery] Re: TableSorter + Filtering + Ajax
Hi Kevin, That looks like a really excellent plugin - might have to give it a try. The one thing it doesn't do that I need it to - is *filtering*. That is, say I am returning rows and one of the columns is a city - and there may be multiple rows with the same city data. I want to be able to choose 'Dublin' and then only have rows which have dublin as a city returned. And then... I want to be able to continue sorting and paging through my ajax'd data! Fun eh ;) When I get something working I'll try to post it up somewhere... as long as I can make it readable etc! Thanks, Patrick On May 6, 9:47 pm, Kevin Kietel <[EMAIL PROTECTED]> wrote: > Try Flexigrid! > > http://webplicity.net/flexigrid/ > > This jQuery plugin is a Lightweight but rich data grid with resizable > columns and a scrolling data to match the headers, plus an ability to > connect to an json/xml based data source using Ajax to load the > content. > > If you need any help implementing it, just contact me or take a look > at the Flexigrid discussion on CodeIgniter > forums:http://codeigniter.com/forums/viewthread/75326/ > There are several examples that you can use. > > Let me know if this is what you're looking for! > > Bye, > > Kevin > > On May 6, 2:18 am, patrick davey <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am using the tablesorter pluginghttp://tablesorter.com/andit > > works fine for smallish tables. However, I need to page through large > > result sets (and filter them) - so I am going to use AJAX to > > repopulate the table once the options have been selected. > > > Now, if through filtering / whetever - less than 100 rows are > > returned, then I want tablesorter to just sort the table (without > > having to make an AJAX call) > > > To do this I want to edit the tablesorter plugin to call a function > > which returns true/false depending on how many records there are to > > sort. > > > So my question (there is one!) is how do I do that with tablesorter. > > I have tried using 'sortStart' and returning false but no joy. I can > > edit the source of course - but if there is a simple way I'd love to > > know it. > > > Better still, does anyone have an example of doing filtering&sorting& > > paging of large datasets using JSON/AJAX and Jquery? :) > > > Thanks, > > Patrick
[jQuery] TableSorter + Filtering + Ajax
Hi, I am using the tablesorter pluging http://tablesorter.com/ and it works fine for smallish tables. However, I need to page through large result sets (and filter them) - so I am going to use AJAX to repopulate the table once the options have been selected. Now, if through filtering / whetever - less than 100 rows are returned, then I want tablesorter to just sort the table (without having to make an AJAX call) To do this I want to edit the tablesorter plugin to call a function which returns true/false depending on how many records there are to sort. So my question (there is one!) is how do I do that with tablesorter. I have tried using 'sortStart' and returning false but no joy. I can edit the source of course - but if there is a simple way I'd love to know it. Better still, does anyone have an example of doing filtering&sorting& paging of large datasets using JSON/AJAX and Jquery? :) Thanks, Patrick
[jQuery] Remote JSON Ajax call - error function not called
Hi, I am trying to retrieve JSON Data from a remote server and manipulate teh returned data. That all works fine - the callback is executed and it all works as expected. The issue I am running into is that I want to use timeouts and error messages also - and they are not working. I tried the following code (just demo code - not the one I am using) $.ajax({ type:"GET", url: "http://www.thisSite.com/badurl.asp";, data:"jsoncallback=?", dataType: "json", timeout: 1000, error: function(){ alert('Error loading document'); }, success: function(data){ alert(data); } }); If I run the above function I would expect the error function to be called as it would get a 404 error for the bad URL... but that *does not happen*. No function is called. If, however, you change the URL to be a local address (but still incorrect) then the error function *is* called. I'm sure I'm missing something fundamental!! But is there a way to call error functions for remote urls? And if so how! Thanks, Patrick
[jQuery] Remote JSON Ajax call - error function not called
Hi, I am trying to retrieve JSON Data from a remote server and manipulate teh returned data. That all works fine - the callback is executed and it all works as expected. The issue I am running into is that I want to use timeouts and error messages also - and they are not working. I tried the following code (just demo code - not the one I am using) $.ajax({ type:"GET", url: "http://www.thisSite.com/badurl.asp";, data:"jsoncallback=?", dataType: "json", timeout: 1000, error: function(){ alert('Error loading document'); }, success: function(data){ alert(data); } }); If I run the above function I would expect the error function to be called as it would get a 404 error for the bad URL... but that *does not happen*. No function is called. If, however, you change the URL to be a local address (but still incorrect) then the error function *is* called. I'm sure I'm missing something fundamental!! But is there a way to call error functions for remote urls? And if so how! Thanks, Patrick