[jQuery] Using jQuery to completely separate HTML from Javascript

2009-07-13 Thread Thierry
=foo(2);/a a href=# onclick=foo(3);/a I was thinking of something like: a href=# class=foo-1/a a href=# class=foo-2/a a href=# class=foo-3/a But how to bind the foo() function (with proper parameter) using jQuery? Thanks for any recommendation/comment. Thierry

[jQuery] Re: Handling key event in Chrome or Safari during a popup

2009-06-10 Thread Thierry
, waseem sabjee waseemsab...@gmail.com wrote: check this link $(#mytextbox).keyup(function(event){     if (event.keyCode == 27) {         $(this).attr({ value:Escape });     } }); On Tue, Jun 9, 2009 at 8:59 PM, Thierry lamthie...@gmail.com wrote: I am currently following the image popup

[jQuery] Handling key event in Chrome or Safari during a popup

2009-06-09 Thread Thierry
I am currently following the image popup example from: http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/ The demo is at: http://yensdesign.com/tutorials/popupjquery/ If I run the demo on Windows XP on Chrome or Safari, the escape key doesn't close the popup

[jQuery] What's the best way to pass parameters through jQuery's ajax?

2009-04-24 Thread Thierry
Right now, I'm using jQuery's ajax like the following: function hello_world(param1, param2, param3, param4) { $.ajax( { type: 'POST', url: 'foo.php', dataType: 'html', data: 'param1=' + param1 + 'param2=' + param2 + 'param3=' + param3 + 'param4=' + param4,

[jQuery] form.action equivalent in jQuery

2009-04-22 Thread Thierry
I currently have the following legacy piece of html: form action= method=get name=clientListForm id=clientListForm input type=submit name=submit_hello id=submit_hello value=Say Hello onclick=this.form.action = 'hello.php'; input type=submit name=submit_hi id=submit_hi value=Say Hi

[jQuery] Re: Excluding some children in a selector

2009-04-03 Thread Thierry L
I rushed a bit in writing the html, the id should correspond to the table and not the tr. The is(button) didn't work but is(input) is getting what I wanted, thanks for the help. On Apr 2, 5:55 pm, Richard D. Worth rdwo...@gmail.com wrote: On Thu, Apr 2, 2009 at 4:14 PM, Thierry lamthie

[jQuery] Excluding some children in a selector

2009-04-02 Thread Thierry
I have the following structure for tr: tr id=world td/td td/td td input type=button name=hello value=hello / /td /tr I also have the following javascript: $(#world tr).click(function() { // do stuffs }); Is there a way to prevent the above event from triggering when the

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Thierry L
the input button. On Apr 2, 4:41 pm, Eric Garside gars...@gmail.com wrote: $('button', $('#world tr').click(function(){         // Do stuff for #world tr onclick     })).click(function(e){     e.stopImmediatePropagation();     return true; }); On Apr 2, 4:14 pm, Thierry lamthie...@gmail.com

[jQuery] Enable a disabled button by id

2009-03-30 Thread Thierry
I can disable button with specific id with the following code: jQuery(#click_me:button).attr(disabled, true); If I want to re-enable the button, the following doesn't work: jQuery(#click_me:button).attr(disabled, false); Does anyone know what I'm missing?

[jQuery] Retrieving values from elements of the same class

2009-03-27 Thread Thierry
For the following code: script src=jquery-1.3.2.js type=text/javascript/script script typetext/javascript $(document).ready(function() { $('.approve').click(function() { alert($('.approve').prev().val()); }); }); /script div input type=hidden value=1 / input type=button

[jQuery] Array of all checked checkboxes

2009-03-27 Thread Thierry
I have a series of checkboxes with class=the_checkbox. I can get all checkboxes by classname and manually loop through each to find out the checked ones. I'm wondering if I can get an array of checkboxes that have been checked with one line of jQuery?

[jQuery] How do you iterate across elements with the same class name?

2009-03-20 Thread Thierry
I have a bunch of hyperlinks with class 'hello_world'. I want to assign each one of them a random colour. I can set the colour for all of them with the following: $(a[class=hello_world]).css(color, red); How can I iterate over every element with class name 'hello_world'?

[jQuery] Re: How do you iterate across elements with the same class name?

2009-03-20 Thread Thierry L
Great, that helps but I think I'll do it from the server side code, the web page loads much faster when the operation is done on the server side. On Mar 20, 12:58 pm, Charlie Griefer charlie.grie...@gmail.com wrote: On Fri, Mar 20, 2009 at 9:48 AM, Thierry lamthie...@gmail.com wrote: I have

[jQuery] How do you handle 2 differents and 1 action?

2009-03-03 Thread Thierry
I have the following piece of code which checks if a user has pressed the Enter key in a text input with id=text_input and then performs some action: $(document).ready(function() { $(#text_input).keyup(function(e) { // Checks if the Enter key was entered if(e.keyCode == 13)

[jQuery] How do you handle 2 differents and 1 action?

2009-03-03 Thread Thierry
I have the following piece of code which checks if a user has pressed the Enter key in a text input with id=text_input and then performs some action: $(document).ready(function() { $(#text_input).keyup(function(e) { // Checks if the Enter key was entered if(e.keyCode == 13)

[jQuery] Re: Display GIF animation during jQuery loop

2009-01-23 Thread Thierry Florac
for any idea, Thierry

[jQuery] [autocomplete] Submit text entered as-is, without replacing value with autocomplete

2008-11-19 Thread thierry
with the first found term. Is that possible? Thank you, Thierry

[jQuery] Re: Submit text entered as-is, without replacing value with autocomplete

2008-11-19 Thread thierry
My bad. I found it. For anyone having the same issue, selectFirst (false) option is the one to use. On Nov 19, 4:42 pm, thierry [EMAIL PROTECTED] wrote: Hi guys, I have a search input with an autocomplete to help find items, but this search can also search partial words. Example: User input

[jQuery] Re: [autocomplete] where did the doc go?

2008-11-17 Thread thierry
Yes exactly... can't believe I didn't see it. Thank you Jorn. On Nov 15, 5:37 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: You're looking for this, right?http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_datao... Jörn On Sat, Nov 15, 2008 at 3:49 AM, thierry [EMAIL PROTECTED

[jQuery] [autocomplete] where did the doc go?

2008-11-15 Thread thierry
Hey guys, I hope it's just I can't find it anymore, but where's the (complete) doc on autocomplete? The plugin page on jQuery seems pretty light (http://docs.jquery.com/Plugins/Autocomplete), and the official page redirects to this new jQuery page. If I remember correctly, there was a list of

[jQuery] Re: jQuery+Cycle : slideshow with progressive image loading

2008-06-01 Thread Nicolas Le Thierry d'Ennequin
Hi Mike, Thanks a lot for your help (and your great plugin, needless to say !) Meanwhile I've also tried my hand at some code and come to what seems to be a valid solution. It relies on image preload - slides are added to the Cycle randomly depending on the order in which they are pulled from

[jQuery] Re: jQuery+Cycle : slideshow with progressive image loading

2008-06-01 Thread Nicolas Le Thierry d'Ennequin
I'm honored, Mike! Thanks also for the minor but well-needed improvements to the code. Now here's another, probably more useful, version: - the slide URLs are registered directly from the DOM - the img nodes are removed from the DOM (except for the first 2) - the slideshow is launched with 2

[jQuery] jQuery+Cycle : slideshow with progressive image loading

2008-05-31 Thread Nicolas Le Thierry d'Ennequin
Hello, A previous discussion here (http://groups.google.fr/group/jquery-en/ browse_thread/thread/319177a5a9bb22a9/01b7544ac7203748) and a recent addition the to the Cycle plugin (see http://www.malsup.com/jquery/cycle/add.html) makes me think that creating JQuery+Cycle slideshows with

[jQuery] Re: Accessing elements from another frame

2008-02-21 Thread Thierry
Nobody have a suggestion for this?? On Feb 19, 10:52 am, Thierry [EMAIL PROTECTED] wrote: I, Is there an easy way to reproduce the following using only jquery? I am trying to hide and show an element in a specificframefrom anotherframe. This code is actually working but I would prefer

[jQuery] Re: Accessing elements from another frame

2008-02-21 Thread Thierry
, top.content.document).hide(); See http://docs.jquery.com/Core/jQuery#expressioncontext for more info. - Richard On Thu, Feb 21, 2008 at 11:03 AM, Thierry [EMAIL PROTECTED] wrote: Nobody have a suggestion for this?? On Feb 19, 10:52 am, Thierry [EMAIL PROTECTED] wrote: I

[jQuery] Resizable only to specified width

2008-01-10 Thread thierry
Hello, I would like to create a weekly calendar where people can select one day, or more. I would like it to work a bit like outlook. So when someone selects a day, it should be possible to resize the selection to include more days. Problem is that the resize should snap to a day, so that it is

[jQuery] Attribute selector (^=) problem with multiple values

2007-12-20 Thread Nicolas Le Thierry d'Ennequin
Hi jQuery group, The simple piece of code below is designed to highlight table cells whose class name is that of the currently hovered one (to visually group them). In my example the class name itself is film + id (film1, film2, etc) so I use the [attribute^=value] selector. OK to that point,

[jQuery] get(0)

2007-10-22 Thread Thierry
I'm new to jQuery and i cant figure out what this does: node.get(0).onreadystatechange = function () {

[jQuery] get(0)

2007-10-22 Thread Thierry
hey, im new to jquery, and im wondering what this does: this.node.get(this[0]).onreadystatechange = function () somehow, google groups missed my first post on this