Re: [jQuery] scrollable table with fixed (but flexible :P ) headers

2007-02-03 Thread Miel Soeterbroek
anks, Miel see attached zip for source -Original Message- From: [EMAIL PROTECTED] on behalf of Miel Soeterbroek Sent: Sat 3-2-2007 12:37 To: discuss@jquery.com Subject: [jQuery] scrollable table with fixed (but flexible :P ) headers Hey guys, I want to put a large data table in a (fixed-size

[jQuery] scrollable table with fixed (but flexible :P ) headers

2007-02-03 Thread Miel Soeterbroek
Hey guys, I want to put a large data table in a (fixed-size) container div, to make it a scrollable table. Doing this for a fixed width table isn;t quite hard, but the width of my table is not fixed at all. I now have two divs, both containing its own table. Top div table contains one row (the

Re: [jQuery] Why doesnt this work ?

2006-10-24 Thread Miel Soeterbroek
Not quite sure (total javascript noob here :) ), but i think the contains method is meant to be fired on an element, not on an attribute value (and any String for that matter) Guru's, correct me if i'm wrong ;) Something like this should work: (not tested btw) var arrowSrc = $(arrow).src()

Re: [jQuery] Updating multiple select fields at once

2006-10-24 Thread Miel Soeterbroek
Andy, Call the following function when the multiple selector (css class: multiSelect) changes, and the single select fields (class singleSelect) will change accordingly (if value is present). function go() { $(".singleSelect").each( function() { $(this).val( $(".multiple

Re: [jQuery] jEditable question

2006-10-24 Thread Miel Soeterbroek
Mika In order to keep the code as reusable as possible, i'd just go for the custom callback method, and leave the way of handling the response to the user. That way, i (and perhaps others) will be able to implement quick and dirty error handling, and others can go with JSON or anything else. T

Re: [jQuery] jEditable question

2006-10-24 Thread Miel Soeterbroek
Barry, I've added some code to show an error message. Quite ugly solution though: I catch all returned text, and look for the following string '[error]', if it's found, I revert the form field text and alert the error. The trick is to format the error texts well (ie containing the search string).

Re: [jQuery] load(),get(),post() params issue

2006-10-20 Thread Miel Soeterbroek
Thanks Blair, changing Array to Object did the trick… And indeed, the : was just a typo…   David, I use the extend functionality all over the place already, however, in this case there is no default set of values. Unset parameters will just arrive as null on the server. var params = n

[jQuery] load(),get(),post() params issue

2006-10-20 Thread Miel Soeterbroek
Howdy!   Consider the following two pieces of code:       function someFunction() {     var params = { name: ‘John’, surname: ‘Doe’ };     $.post(‘save.html’, params, function(data) {         alert(data); }); }   This works just fin

[jQuery] attach a click event to everything but one TR element...??

2006-10-14 Thread Miel Soeterbroek
Title: attach a click event to everything but one TR element...?? Hello there, Kind of new to jQuery (stumbled across it two days ago when i was looking for pieces of _javascript_ to sort tables), but i'm a fan already! (and i never was a great fan of anything related to _javascript_) (but