[jQuery] Get the previous element matching a class

2010-03-02 Thread debussy007
Hi, I would like to have the previous TD element with class time. I tried : $(this).closest('td').prev('td.time').html() (where this is a div element inside a TD) But it only works for a div inside a TD that is *directly* following the td.time element. See the code below: my jquery

[jQuery] Check if elements have any attribute ?

2010-02-09 Thread debussy007
Hi, I need to check if a textarea has any other element than p,br,b,i,strong,em,ul,li,a and img. If it has, add the class customMarkup on the textarea EXCEPT IF any of the above elements contain ANY attributes. I have only the first part of the requirement, I still don't check for attributes

[jQuery] When async:false in ajax function, Firebug shows blank Response

2010-01-31 Thread debussy007
Hi, Have spoiled a whole day on this issue. So ... For your information, when you set async to false in your ajax function, the Response will be blank in Firebug. Seemed to work before, but don't know if it's related to Firefox, Firebug or jQuery. Using : Firebug 1.5.0 Firefox 3.6 jQuery 1.4 --

[jQuery] Long running AJax request blocking the other ajax requests

2009-08-20 Thread debussy007
Hi, I execute a long task by an Ajax request, and at the same time I would like to display the percentage of this task every second. The problem is that the percentage will not display as the first request is slowing down the others. Though ... they say Ajax is synchronous ... The code is

[jQuery] Get the value of the option elements

2009-07-20 Thread debussy007
Hello, The following code below doesn't seem to give the expected result: $('#aUsers option:selected').each(function() { console.log('user: ' + $(this).val()); }); It will display the empty string. -- View this message in context:

[jQuery] Re: Get the value of the option elements

2009-07-20 Thread debussy007
Uhm ... for some obscure reason I got it working now ... debussy007 wrote: Hello, The following code below doesn't seem to give the expected result: $('#aUsers option:selected').each(function() { console.log('user: ' + $(this).val()); }); It will display the empty string

[jQuery] How do I add parameters dynamically, right before the form submit ?

2009-07-18 Thread debussy007
Hi, When the user clicks on the submit button, I would like to add some parameters to the form before submitting it (standard post submit, no ajax) How may I achieve this ? Thank you for any help. -- View this message in context:

[jQuery] jQuery Form plugin with Yahoo UI

2009-07-17 Thread debussy007
Hi, When I add the jquery.form.js plugin from malsup, my Yahoo UI TreeView won't render anymore ... There seems to be some conflict. Is there any workaround for that ? Thank you for any help. -- View this message in context:

[jQuery] Re: jQuery Form plugin with Yahoo UI

2009-07-17 Thread debussy007
The problem has been solved ... I forgot to close the script tag of the plugin js inclusion ... debussy007 wrote: Hi, When I add the jquery.form.js plugin from malsup, my Yahoo UI TreeView won't render anymore ... There seems to be some conflict. Is there any workaround

[jQuery] Submit form with serialize() question

2009-06-17 Thread debussy007
Hello, I submit my form with the $.ajax method and passing it the serialized form. But what about the images inside the form ? Thank you for any help. -- View this message in context: http://www.nabble.com/Submit-form-with-serialize%28%29-question-tp24078650s27240p24078650.html Sent from the

[jQuery] Form plugin - success callback not executed ?

2009-06-17 Thread debussy007
Hi, it seems that my success callback is not getting executed, however, the Ajax post seems to be ok (200) with the correct text output ... The other params have effect, e.g. the ajax calls will be synchronous (option async to false) $('td[id^=order]').each(function(i) { var tdId =

[jQuery] Re: Form plugin - success callback not executed ?

2009-06-17 Thread debussy007
I found out it's because I need an existing element for option target. I didn't want any element to be updated by the result, that's why I put this #dummy pointing to nowhere. Well, I added an element display:none in my Html and point it to that one ... debussy007 wrote: Hi, it seems

re[jQuery] -ordering elements

2009-06-15 Thread debussy007
Hi, I have a set of td which have id's like: td id=order1[...] td id=order3[...] td id=order2[...] td id=order4[...] I would like to re-order them to have consecutive numbers, what is the best way to achieve this ? So far I have the code below, which iterates through all td's:

[jQuery] Connecting on YouTube using $.ajax ?

2009-05-12 Thread debussy007
Hi, I try to connect on Youtube using the script below. But I get the error message: Access to restricted URI denied code: 1012 Is there any way to bypass this issue ? function login() { var u = 'xyz'; var p = 'xyz'; $.ajax({ type: 'POST',

[jQuery] Re: submit() question

2009-04-07 Thread debussy007
I understood that in my submit callback funtion, i call a asynchronous function of google where I set the post values once I have a response. But I didn't wait for the google function to terminate. This issue is solved, Thank you. debussy007 wrote: I need something like

[jQuery] Re: submit() question

2009-04-06 Thread debussy007
what you are trying to do, but if the requirement is to pass the values to the server, you can include them in the data parameter of the ajax routine. data: $(this).serialize() + add_item=1, On Apr 5, 3:10 pm, debussy007 debussy...@gmail.com wrote: What do you mean by wrap

[jQuery] submit() question

2009-04-05 Thread debussy007
Hi, In my submit() callback function, I want to set two new values in some hidden input fields right before the post data is submitted, based on the values the user inputs in some input fields. However it seems already too late, the server will never have those values unfortunately. So I

[jQuery] Re: submit() question

2009-04-05 Thread debussy007
What do you mean by wrap 'submit()' that is built in 'form object' ? Sorry I didn't understand ) kcis...@hotmail.com wrote: I guess you'd better wrap 'submit()' that is built in 'form object'. before the submit() is called, you should set the values. On 4월5일, 오후1시48분, debussy007

[jQuery] load() My param is splitted

2008-11-19 Thread debussy007
Hi, When I want to send a param with line below: jQuery('#details').load('?php echo $this-baseUrl ?/myController/myAction/myParam/' + param, {}, function() {jQuery('#details').show();}); And if my param contains spaces, the param will contain the first word. E.g. param = 'hello world' URL

[jQuery] Re: load() My param is splitted

2008-11-19 Thread debussy007
I could fix it using: param = encodeURIComponent(param); debussy007 wrote: Hi, When I want to send a param with line below: jQuery('#details').load('?php echo $this-baseUrl ?/myController/myAction/myParam/' + param, {}, function() {jQuery('#details').show();}); And if my param

[jQuery] Get the content of an option element

2008-11-18 Thread debussy007
Hi, to get the selection option value, I use $('#select').val(); But how do I get the content of the option ? In other words: select id=select option value=hello selectedworld/option /select $('#select').val(); will return hello, but how do I get world ? Thank you ! -- View this

[jQuery] get the class that starts with ...

2008-11-11 Thread debussy007
Hi, How is it possible to get the class that starts with 'rate' of an element ? the class could be rate1, rate5, rateXYZ. I don't know what follows the substring 'rate'. I need to get the number that follows rate. Thank you for any help ! -- View this message in context:

[jQuery] Re: Problem with events

2008-10-30 Thread debussy007
is called, after function one has displayed its alert. How would I do that? If you answer that, you'll know the answer to your question. -Mike From: debussy007 I would like to execute instructions after an event has been fired and processed: $('#int').click(); // I fire click event

[jQuery] Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007
Hi, I want to use Block UI in the (document).ready(...) function. In Mozilla, the page is displayed and the message is appearing and block UI blocks the page, everything is fine. In IE and Safari, the page is only changed when the page has been unblocked (the message is appearing for 1 second

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007
almost immediately On Oct 30, 9:49 am, debussy007 [EMAIL PROTECTED] wrote: Hi, I want to use Block UI in the (document).ready(...)  function. In Mozilla, the page is displayed and the message is appearing and block UI blocks the page, everything is fine. In IE and Safari, the page

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007
( ) searchLocArr( ) searchLocInt( ... ) $.unblockUI(); }, 200); works very good !! What was wrong actually ? Why my version with setTimeout didn't work ? Seems pretty basic, block UI, execute some isntructions, unblock. malsup wrote: On Oct 30, 12:47 pm, debussy007 [EMAIL

[jQuery] Problem with events

2008-10-29 Thread debussy007
Hi, I would like to execute instructions after an event has been fired and processed: $('#int').click(); // I fire click event, callback function will be executed // Execute other instructions after the callback fct of the click event has been processed The problem is, how do I know when the

[jQuery] startsWith / endsWith

2008-10-15 Thread debussy007
Hi, it would be nice to find these two functionalities in the jQuery Utilities/String operations, beside trim(). No ? -- View this message in context: http://www.nabble.com/startsWith---endsWith-tp19997960s27240p19997960.html Sent from the jQuery General Discussion mailing list archive at

[jQuery] Ajax update on visible viewport of my div

2008-10-13 Thread debussy007
Hi, I have a scrollable div containing a table that can have like 100 thousands of lines from my database. I want to have an ajax update every 5 seconds on this data. So I tought I could update only the records which are visible in the area of the div that the user scrolled to. How would you

[jQuery] Ajax request Error - please help

2008-10-09 Thread debussy007
Hi, In localhost, all of my ajax request work perfectly, but on the prod server, whenever I try to make an ajax request, the following error appear: (This is the code used to display the error: error: function(xhr, status, ex) { var msg = Error ajax edit profile :\n\n; msg +=

[jQuery] Re: Ajax request Error - please help

2008-10-09 Thread debussy007
with GET, but if anyone has encountered this error, I would like to have some input if possible ... Because when i'll need to use POST I'll have the same problem again. Thank you! debussy007 wrote: Hi, In localhost, all of my ajax request work perfectly, but on the prod server, whenever I

[jQuery] Re: Completion callback after events

2008-09-27 Thread debussy007
, Sep 27, 2008 at 3:35 AM, debussy007 [EMAIL PROTECTED] wrote: Hi, For a lot of asynschronous calls, like the effects, jQuery provides completion callbacks which are very useful. Unfortunately it doesn't provide completion callbacks for events. How am I able to know when an event has been

[jQuery] My scripts executes two times a controller

2008-09-27 Thread debussy007
Hi, All my controllers which are located in the default module extends 'MyZend_Default_Controller_Action' which extends 'MyZend_Default_Common_Action' which finally extends Zend_Action_Controller When I do a request for the main page (IndexController/indexAction), the scripts executes once the

[jQuery] [TreeView] Lazy-load

2008-08-28 Thread debussy007
Hello, I use the Tree plusgin of Bassassistance but I noticed the files in the lazy-load demo was not the same as the files to download. For example there is no image ajax-loader.gif in the files. I tried to add it and add in the CSS the code that's missing: .treeview .placeholder {

[jQuery] [form][ajaxSubmit] How to send a parameter in error callback ?

2008-07-02 Thread debussy007
Hi, I would like to send a parameter in the error callback : var optionsPrcPic = { beforeSubmit: showRequestPic, // pre-submit callback success: showResponsePic, // post-submit callback dataType: 'json', url: ?php echo $this-baseUrl;

[jQuery] [validate] Manual submit with submitHandler question

2008-06-25 Thread debussy007
Hi, Whenever a form is correctly validated, I want to change my submit button into an ajax-like image. $(#form_register).validate({ submitHandler: function(form) { $(#button).html( '?php echo $this- baseUrl; ?/public/images/ajax/ajax-loader-32.gif' +

[jQuery] Re: [validate] Manual submit with submitHandler question

2008-06-25 Thread debussy007
Thank you, it works this way ! Jörn Zaefferer-2 wrote: Try to add form.submit(). The calls the native submit method and avoids triggering the validation again. Jörn On Wed, Jun 25, 2008 at 12:44 PM, debussy007 [EMAIL PROTECTED] wrote: Hi, Whenever a form is correctly

[jQuery] iFixPng issue in IE6 - red cross on image

2008-05-14 Thread debussy007
Hi, I am using iFixPng for IE6 but I have a strange effect ont he image, it displays but there is a red cross on it, sample: http://r12121.ovh.net/~a6aresra/reining-merida.php Instruction: $('img[src$=.png]').ifixpng(); Thank you for any kind help !! -- View this message in context:

[jQuery] Form Plugin: files not supported ?

2008-03-04 Thread debussy007
Hi, I try to submit my form with the Form plugin using ajax, but it seems that when I add a file in the form, I get a JS error. Aren't files supported by the plugin ? Thank you for any info ! -- View this message in context:

[jQuery] Re: Form Plugin: files not supported ?

2008-03-04 Thread debussy007
I have the following error (on firebug console): line 304 form.submit(); form.submit is not a function The thrid parameter of the error callback says SyntaxError: syntax error I can't see what I'm doing wrong, a submit without picture of the same form is working, but once I add a picture in

[jQuery] Re: Form Plugin: files not supported ?

2008-03-04 Thread debussy007
it is the fact that I upload 11 times 10 pictures from the form ?) Can you help me ? malsup wrote: Do you have an input with the name submit. Try renaming that element. Mike On Tue, Mar 4, 2008 at 7:30 AM, debussy007 [EMAIL PROTECTED] wrote: I have the following error (on firebug console

[jQuery] Determine if mouse is over a specific element

2008-02-12 Thread debussy007
Hi, is it possible to know wether the mouse is over a specific element or not ? Thank you for any help ! :thinking: -- View this message in context: http://www.nabble.com/Determine-if-mouse-is-over-a-specific-element-tp15445464s27240p15445464.html Sent from the jQuery General Discussion

[jQuery] check if an id exists

2007-12-24 Thread debussy007
Hi, what is the best way in jquery to check wether an id exists ? Thank you for any kind help !! -- View this message in context: http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488007.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007
I tried : if( ! $('#tooltip') ) { ... } it gives me a javascript error if I add this :( Eridius wrote: not sure, this is untested but might work(not sure what jQuery return if nothing is found) if($('#id')) { //it exists } else { //it does not } debussy007 wrote

[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007
(the error is elem has no properties in the jquery js) debussy007 wrote: I tried : if( ! $('#tooltip') ) { ... } it gives me a javascript error if I add this :( Eridius wrote: not sure, this is untested but might work(not sure what jQuery return if nothing is found

[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007
Thanks this works great !! Richard D. Worth-2 wrote: From: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F if ( $('#theId').length ) { // exists } else { // doesn't exist } - Richard On Dec 24, 2007 9:11 AM, debussy007 [EMAIL

[jQuery] Check/Uncheck a radiobutton

2007-12-14 Thread debussy007
Hello, I always used to uncheck a radio button this way : $('#radio_shuttle_1_4')[0].checked=false; The problem is that when using a selector that matches more than one element, it will not work. e.g. : $('[EMAIL PROTECTED]')[0].checked=false; will not work. Thank you for any help !! --

[jQuery] Ajax IE issue

2007-11-06 Thread debussy007
Hello ! The following code works in Mozilla FF but not IE : $.ajax({ type: GET, url: path,// path to JPG success: function(data){ alert('success ' + path); $('#currentImage').attr('src', path); }, error: function(xhr,

[jQuery] Re: slideUp/slideDown - Bug in IE with images

2007-10-22 Thread debussy007
:www.mredesign.com Newsgroups: news://forums.mredesign.com Blog :www.miuaiga.com debussy007 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, slideUp() slideDown() is not working well when there are images in IE. I made a sample page about this issue : http://matthew16.free.fr

[jQuery] Changing a background image with .css() function

2007-10-21 Thread debussy007
Hello ! I am trying to change the background image of a div when clicking on an element. This is my code : [...] $('#accordion').css('background-image', '/public/images/icons/slideDown.jpg'); alert($('#accordion').css('background-image')); [...] But the alert box will never

[jQuery] Re: Changing a background image with .css() function

2007-10-21 Thread debussy007
Ok, I found out thanks to the jquery IRC channel. It had to be url('/public/images/icons/slideDown.jpg') Thank you. debussy007 wrote: Hello ! I am trying to change the background image of a div when clicking on an element. This is my code : [...] $('#accordion').css

[jQuery] slideUp/slideDown - Bug in IE with images

2007-10-21 Thread debussy007
Hi, slideUp() slideDown() is not working well when there are images in IE. I made a sample page about this issue : http://matthew16.free.fr/temp/test.html Click on Click Here to animate (slideUp / slideDown). In Mozilla FF it is very smooth, but you will notice the difference in IE. Thank

[jQuery] Get the value of a radio button ?

2007-10-16 Thread debussy007
Hello, I have a radio button like this one: input type=radio name=othersTransLink value=familiale class=radionbsp;Lien familiale input type=radio name=othersTransLink value=étroit class=radionbsp;Lien étroit input type=radio name=othersTransLink value=Intérêt direct ou indirect

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
I integrated the form plugin. I tried the following : $('[name=othersTransLink]').fieldValue() But it return me an empty string. I do not have to specify the form or something ? Something is missing. malsup wrote: One option would be to use the form plugin: var value =

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
Thank you both of you !!! :-)) Dan G. Switzer, II wrote: I integrated the form plugin. I tried the following : $('[name=othersTransLink]').fieldValue() But it return me an empty string. I do not have to specify the form or something ? Something is missing. If you're using a

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
_ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 16, 2007, at 10:32 AM, debussy007 wrote: I integrated the form plugin. I tried the following : $('[name=othersTransLink]').fieldValue() But it return me an empty string. I do not have to specify the form

[jQuery] Re: Get the value of a radio button ?

2007-10-16 Thread debussy007
Oh ok, for some reason I have to add @ before name, because I use a version below 1.2. Thank you ! debussy007 wrote: The solution with the Form plugin works now, but I tried without the form plugin with your code but it returns null Karl Swedberg-2 wrote: You could also get

[jQuery] Permission denied to set property XULElement.selectedIndex

2007-10-12 Thread debussy007
Hello, whenever I try to display an alert box with some debugging information in my keyup function, I have the following errir in Firebug : [Exception... 'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex] nsresult: 0x8057001e

[jQuery] Help for Form plugin

2007-09-16 Thread debussy007
Hello, I have put a timeout for the ajax request when submitting my form : var options = { beforeSubmit: showRequest, // pre-submit callback success: showResponse, // post-submit callback dataType: 'json', timeout: 1 }; But the problem is

[jQuery] Re: Prev and Next problem

2007-09-15 Thread debussy007
for 1.2.1 (which is scheduled for this weekend) or use the older version delivered with jCarousel. debussy007 wrote: Hello, I have a problem to make this plugin running correctly for my web site. I have been trying for 2 days now, and I'm hopeless, that's why I am looking for a kind

[jQuery] Prev and Next problem

2007-09-14 Thread debussy007
Hello, I have a problem to make this plugin running correctly for my web site. I have been trying for 2 days now, and I'm hopeless, that's why I am looking for a kind soul here who can eventually help me! Here is a demo I made : http://matthew16.free.fr/jcarousel/jcarousel.html These are my

[jQuery] Re: Error with Ajax Submit with Form plugin in IE

2007-08-26 Thread debussy007
Hi, I finally could debug my error. It's the packed version of the validate plugin which generates me two errors. The js file which is not compressed is working fine in ie6 Thank you for your assistance malsup. malsup wrote: in IE6, a new page is opened, like the ajax is not

[jQuery] Error with Ajax Submit with Form plugin in IE

2007-08-25 Thread debussy007
Hi all, In my web application, the user is able to fill in a contact form, which will send an e-mail on submit. I am using the official Form plugin. The form plugin is working perfectly in Mozilla, but not in IE6. Check the foillowing example : http://matthew16.free.fr/temp/contact-form.php

[jQuery] Validation Form problem

2007-08-11 Thread debussy007
Hi, I am trying to use the Validation plug-in but I have the following error : missing } after property list [Break on this error] rules: {\n Here is the simple code : $(#form_contact).validate({ event: keyup rules: { lastname: required },

[jQuery] Re: Validation Form problem

2007-08-11 Thread debussy007
Oh ! Thank you ! This comma was not in the first example of the plugin's author ! spinnach wrote: you're missing a comma after 'event: keyup', it should be ' event: keyup,' dennis. debussy007 wrote: Hi, I am trying to use the Validation plug-in but I have the following

[jQuery] [Interface] ScrollTo

2007-07-21 Thread debussy007
Hi, I am using the ScrollTo function of interface but I can notice that it is not very fluid scrolling... I use it to scroll my header on all the pages except the main page. So I have put it in the jQuery(document).ready function, so that when the user clicks on the page, it automatically

[jQuery] Effect - Slide Up/Down

2007-07-20 Thread debussy007
Hi, I try to apply effect on a very basic example, But I can't have it working. Can anyone help me with this ? Thank you !! !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml;

[jQuery] Re: Effect - Slide Up/Down

2007-07-20 Thread debussy007
There probably is an easier way, but this was my first thought. Glen On 7/20/07, debussy007 [EMAIL PROTECTED] wrote: Hi, I try to apply effect on a very basic example, But I can't have it working. Can anyone help me with this ? Thank you !! !DOCTYPE html PUBLIC -//W3C//DTD XHTML

[jQuery] jQuery - form plugin

2007-07-17 Thread debussy007
Hi, I am trying to understand the difference between AjaxForm and AjaxSubmit. There are some examples Here : http://www.malsup.com/jquery/form/#sample1 With some forms. But for each form, when I click Submit, I get on a dummy.php page with some text on it. It doesn't look like an Ajax call.

[jQuery] Re: jQuery - form plugin

2007-07-17 Thread debussy007
connection in my company that breaks the script ! Thank you for your support. debussy007 wrote: Hi, I am trying to understand the difference between AjaxForm and AjaxSubmit. There are some examples Here : http://www.malsup.com/jquery/form/#sample1 With some forms. But for each form

[jQuery] JTicker Plugin problem

2007-07-15 Thread debussy007
Hi, I try to use JTicker, RSS feed, But I can't display my RSS feed. I can notice by adding some alerts debuging that the javascript stops here : FillSlide: function() { var Item, TickerHTML, Title, URL, Desc; $(# +

[jQuery] blur() problem

2007-07-08 Thread debussy007
Hi, I have an arrow on my website on which the user can click. The problem is that when the user clicks, in Mozilla I have the selection border on the arrow. The arrow has id buttonNext I tried this : $(#buttonNext).click(function(){ alert(test);

[jQuery] $(elem) question

2007-07-02 Thread debussy007
Hi, I am trying to access my SELECT element with jQuery but I can't make it working : This works : alert(document.getElementById('aller')); // [object] var sel = document.getElementById('aller'); alert(sel.selectedIndex); // 0 This

[jQuery] ajax request error

2007-05-30 Thread debussy007
Hi, I am calling an Ajax request to the server (J2ee, Struts Action) to get a number : * alert(date); alert(flight); var html = $.ajax({ url: ATBAjaxHandler.do, data:

[jQuery] Problem with show() and hide() in IE

2007-04-01 Thread debussy007
Hi, I have a website with header, menu, content. To change the content according to the menu clicked, I use show() and hide() functions of jquery. In Mozilla I got everything working, but in IE6, the height won't adapt according to the content's length. U can check it here :

[jQuery] Re: Problem with show() and hide() in IE

2007-04-01 Thread debussy007
It's not working :(