[jQuery] Problem with chronological order : jQuery code runs too late

2010-02-11 Thread Julien
to force the chronological order ? Thanks. Julien // Retrieve product option values from session variables. function SetOptionStringsInPaypalForm() { var f = document.forms.paypal; $(':input[class]', f).each( // for each input element in the hidden PayPal form

[jQuery] Re: Problem with chronological order : jQuery code runs too late

2010-02-11 Thread Julien
Thanks, Leonardo. This seems being the right answer. However, I fail at replacing the $.post() request by the more general $.ajax(). Can you see any error in the manner I'm doing the ajax request ? (The corresponding $.post() code in my first message works fine.) $.ajax( async: false,

[jQuery] Re: Problem with chronological order : jQuery code runs too late

2010-02-11 Thread Julien
Solved. I dont' know exactly what was wrong, although it was most probably in the callback function. Maybe the carriage returns. But this works fine: $.ajax({ async: false, url: cart_doc, type: 'POST', data: {action: 'retrieve_opt', name: fieldName}, dataType: 'text',

[jQuery] Re: Problem with chronological order : jQuery code runs too late

2010-02-11 Thread Julien
Solved. I dont' know exactly what was wrong (...) Oh, I found : the parameters to $.ajax() have to been included into json-like brackets ! $.ajax( { parameters } );

[jQuery] jQuery Form plugin and jQuery File Tree plugin

2009-10-26 Thread Julien
Hi, I can upload a file with this setup : - the form.js jQuery Form plugin script http://jquery.malsup.com/form/jquery.form.js?2.33 - the files.php which upload my files and print a validation message ... move_uploaded_file($_FILES[file][tmp_name], $_POST

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-16 Thread Julien
Thanks a lot, Karl. Your code dit it. Now are several events (like key strokes and checkbox changes) for which the same code must be run. So, I would like to retrieve the siblings from within a function. The problem I encounter with the code below is how to retrieve in jQuery the caller

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-16 Thread Julien
Hi Karl, Thanks for your interesting alternative approach. On my side I was trying to set a jQuery variable using the argument that was passed to the function. But something seems broken if we don't use jQuery from the very beginning for the selection. $.tmp = caller; alert($.tmp);//

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-16 Thread Julien
Karl, I choose to keep my original approach as it was better for code clarity in my case. From within my function, I could select the text input passed as argument with variable $currentField. I could also get the list of other text inputs located after it. $afterFields.length correctly counts

[jQuery] Re: Finding previous next input siblings encapsulated in other li ?

2009-10-15 Thread Julien
Hi again, My question was probably too long as I got no answer... When a change occurs is one of the following text fields, does someone know how to scan through all the text inputs located after it? fieldset name=myfields ul liinput type=text name=txt_one / input type=checkbox

[jQuery] Finding previous next input siblings encapsulated in other li ?

2009-10-06 Thread Julien
and next li-encapsulated siblings. This is a rather complex problem for a jQuery newbie and I'm not sure that I really catched how to use previous() and next() efficiently. Thanks for any help. Julien (...) fieldset name=footer_infos class=invisible ul li input name=footer_company type

[jQuery] Re: How to manipulate an object containaing HTML

2009-10-02 Thread Julien
On 1 oct, 20:07, Karl Swedberg k...@englishrules.com wrote: Sure, you can do this with html. Inside the success callback function, do this: $(html)    .find(td)      .css('padding-left','80px')    .end()     .appendTo('#myTable'); great! that's the .end() part i was missing! Thanks, i

[jQuery] Re: How to disable text inputs lying near checkboxes ?

2009-10-02 Thread Julien
Karl, Your explanation and also you code helped me make a big step forward in my understanding of how jQuery thinks. Your code works fine; I tested both solutions. Thanks a lot. Julien

[jQuery] Re: How to disable text inputs lying near checkboxes ?

2009-10-02 Thread Julien
Here the way to enable/disable several text inputs depending on the state of checkboxes located just after each one. $(':text~:checkbox').change( function(){ $(this).prev()[0].disabled = !(this.checked); } ); Hope this can help others.

[jQuery] How to manipulate an object containaing HTML

2009-10-01 Thread Julien
Hello, i'm trying to find out how to edit (manipulate DOM) of an HTML ajax result. What i have is the following : $('a').live('click',function(e){ var link = this; $.ajax({ url: testAjax.html, cache: false, data: 'href='+this.href, success: function(html){

[jQuery] Re: How to manipulate an object containaing HTML

2009-10-01 Thread Julien
On 1 oct, 16:26, Charlie charlie...@gmail.com wrote: you are trying to apply css to something that isn;t in  the DOM.  $.css() uses inline style attribute so if there is no html inline the attribute can't be applied can you add class name to html server side and use css to pad? if not you

[jQuery] How to disable text inputs lying near checkboxes ?

2009-10-01 Thread Julien
. $(':text').disabled=true; // This does not work. } } ); Thanks for any help. Julien

[jQuery] Re: How to manipulate an object containaing HTML

2009-10-01 Thread Julien
On 1 oct, 17:52, Charlie charlie...@gmail.com wrote: if it was json or xml could parse it then append, I've never tried parsing html from ajax another  method is append  to an empty hidden table, add classes/css or whatever to the td's in that table then append them to your visible table

[jQuery] Re: abeautifulsite.net plugins : tree view and context menu together

2009-09-03 Thread Julien
LRancez comment on tree view plugin : To add a context menu you need add some lines inside the js so you can configure any callback function: function showTree(c, t) { $(c).addClass('wait'); $(.jqueryFileTree.start).remove(); $.post(o.script, { dir: t }, function(data)

[jQuery] abeautifulsite.net plugins : tree view and context menu together

2009-09-02 Thread Julien
Hi, I'd like to put context menu ( http://abeautifulsite.net/notebook.php?article=80 ) on each tree view item ( http://abeautifulsite.net/notebook.php?article=58 ) The tree have many sub directories, sub sub directories, etc... and files. I need the id of the selected item (directory or file),

[jQuery] Re: Advice clone and live

2009-08-25 Thread Julien
On 25 août, 01:56, James james.gp@gmail.com wrote: clone(true) should do the trick. Though before there was a bug with this function where the events would not be cloned (in IE, I think). I don't know if that issues still exists, but try it out.

[jQuery] Advice clone and live

2009-08-24 Thread Julien
Hi, i'm trying to clone a row in a table with events attached to it. I initialy have the following html code to duplicate : tr td input type=text id=users name=users[] class=users / /td td input type=text id=expiration name=expiration[] class=expirationDate /

[jQuery] 1.3.x live event problem

2009-08-19 Thread Julien Martin
Hello, I noticed that after an ajax call, my jquery no longer works. After some research I realized I had to use either the livequery plugin or the live event provided out of the box by jquery 1.3.x. However, the live event used as follows does not work i.e. cacherFormulaireInscription does not

[jQuery] Re: Beginner needs help with jquery and ajax

2009-08-19 Thread Julien Martin
thanks Giovanni i'll try that. 2009/8/19 Giovanni Battista Lenoci gian...@gmail.com Julien Martin ha scritto: Hello, I basically want to catch any ajax request sent by my app and display an alert. I have tried this to no avail: *jQuery(*).ajaxSend(function(event,request, settings

[jQuery] Beginner needs help with jquery and ajax

2009-08-18 Thread Julien Martin
by the richfaces framework using an a4j:commandButton. Can anyone please advise, Thanks in advance, Julien.

[jQuery] Problem with the jQuery cluetip plugin and jboss Richfaces ajax submit

2009-05-19 Thread Julien Martin
://www.jboss.org/index.html?module=bbop=viewtopicp=4231946 Any comment or clue welcome, Julien.

[jQuery] Problem with jQuery Cluetip plugin and jboss Richfaces

2009-05-19 Thread Julien Martin
://www.jboss.org/index.html?module=bbop=viewtopicp=4231946 Any comment or clue welcome, Julien.

[jQuery] Re: Convert special characters

2008-05-29 Thread Julien de Prabère
On 22 mai, 19:19, hubbs [EMAIL PROTECTED] wrote: Well, I checked, and our website is using iso-8859-1.  I see that this is a subset of utf8.  Is it still possible to have js correctly uncode the characters? Yes but PHP work with the subset and do not work with utf-8 ! It is very important

[jQuery] Re: Convert special characters

2008-05-22 Thread Julien de Prabère
I notice with IE6.0 : Microsoft.XMLHTTP don't take care at charset and work only with utf-8 encoded responses, while Msxml2.XMLHTTP seems, like XMLHttpRequest, respect the charset if it is done ( Content-Type: text/html; charset=ISO-8859-1 in PHP). It seems explain your difficulties with

[jQuery] jcarousel and issues in Safari

2008-04-26 Thread Julien
and know how to fix them? Thanks a lot! Julien [1] http://sorgalla.com/2008/04/07/jcarousel-023/ [2] http://groups.google.com/group/jquery-en/browse_thread/thread/99db96d2aa7f374e/dbc65b00784909b9?lnk=gstq=jcarousel+safari#dbc65b00784909b9

[jQuery] Re: jcarousel problem under Safari

2008-04-21 Thread Julien
put the javascript under the css declaration as advised in [2]. Now I get no error message, but the carousel still won't work: doesn't rotate automatically or when I click the right button. Any idea how to fix this? Thanks a lot! Julien [1] http://sorgalla.com/2008/04/07/jcarousel-023/ [2

[jQuery] Re: jcarousel problem under Safari

2008-04-21 Thread Julien
put the javascript under the css declaration as advised in [2]. Now I get no error message, but the carousel still won't work: doesn't rotate automatically or when I click the right button. Any idea how to fix this? Thanks a lot! Julien [1] http://sorgalla.com/2008/04/07/jcarousel-023/ [2

[jQuery] Re: Multiple autocomplete selector

2008-01-17 Thread Julien
On Jan 4, 1:38 am, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Julien, Hello there, I was wondering if you knew about a plugin, or if you knew if it was easy to make a text input coupled with an autocomplete functionality which adds a box for each item added to it. A bit like facebook does

[jQuery] Multiple autocomplete selector

2007-12-26 Thread Julien
here: http://refreshpartners.com/fb_dev_wiki_images/fb_multiple_friend_input.jpg Many thanks! Julien