[jQuery] Using jQuery to completely separate HTML from Javascript

2009-07-13 Thread Thierry
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
un 9, 5:10 pm, waseem sabjee 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 wrote: >

[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 wi

[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 + '¶m2=' + param2 + '¶m3=' + param3 + '¶m4=' + param4,

[jQuery] form.action equivalent in jQuery

2009-04-22 Thread Thierry
I currently have the following legacy piece of html: The above probably doesn't look too elegant but can someone suggest to me the best way to initialize this.form.action in jQuery?

[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" wrote: > On Thu, Apr 2, 2009 at 4:1

[jQuery] Re: Excluding some children in a selector

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

[jQuery] Excluding some children in a selector

2009-04-02 Thread Thierry
I have the following structure for 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 hello button is clicked?

[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] 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] Retrieving values from elements of the same class

2009-03-27 Thread Thierry
For the following code: $(document).ready(function() { $('.approve').click(function() { alert($('.approve').prev().val()); }); }); Each time I click on any of the button, it's returning me 1. What should I change in my javascript code to get the pr

[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 wrote: > On Fri, Mar 20, 2009 at 9:48 AM, Thierry wrote: > > > I have a bunch of hype

[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] 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
p is beginning, the GIF image is frozen :-( Thanks for any idea, 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 partia

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

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

[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 > >

[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 al

[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 slid

[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] 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 progressive

[jQuery] Re: Accessing elements from another frame

2008-02-21 Thread Thierry
cument).show(); > > $("#loading_div", 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: > &g

[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 actu

[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 i

[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, but

[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

[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 () {