[jQuery] Re: Maybe Jquery ? Bug with firefox 3.5

2009-09-07 Thread Pierre Bellan
be the source of the problem, we can move forward. Pierre 2009/8/19 Pierre Bellan fcy...@gmail.com Hi all, I don't know if it's a bug in jquery but some of you can have encounter the same problem with their website. Recently, we had changed our website ( http://www.lequipe.fr ) using the jquery 1.3.2

[jQuery] Re: sending form’s button’s value

2009-08-20 Thread Pierre Bellan
Hello, i don't use this method to send my datas, but in my opinion, the value of the element of type button is not get by the serialize method. If you want to send the value of the button click, you can add that after the serialize. As you have a method by button, this works ;) data:

[jQuery] Maybe Jquery ? Bug with firefox 3.5

2009-08-19 Thread Pierre Bellan
Hi all, I don't know if it's a bug in jquery but some of you can have encounter the same problem with their website. Recently, we had changed our website ( http://www.lequipe.fr ) using the jquery 1.3.2 version. With the last version of Firefox ( 3.5.2 ), the site is render twice during the

[jQuery] Re: remove one element in an array

2009-06-12 Thread Pierre Bellan
Hi, An id must be unique on a page. In your code, every created image as the same id maybe the problem is here but i'm not sure. I think the first step is to replace id with a class and see if it works. You can use the live event gestion if you use jquery 1.3 (

[jQuery] Re: Question about 'ready' event

2009-06-12 Thread Pierre Bellan
I see one fast solution, You put a variable isLoaded in your top frame. At first, the value is false, and when it's ready you change the value to true. Inside the iframe that need the function, you check the value of the variable inside a periodic call. When the value is true, you can make the

[jQuery] Re: notify/update client when change on the server

2009-06-11 Thread Pierre Bellan
Hi, I don't think so. Because the web is based on a client/server disconnected architecture, after sending content, the server forgot the client. The client must send request to know if there are updates. To do this in a more efficient way, you must reduce the process time on server. For example,

[jQuery] Re: click function on anchor element

2009-06-11 Thread Pierre Bellan
Hi, I think that is because of the alert function. It needs a string and maybe for an anchor object, jquery introduces a toString method. With the console of firebug, there are no differences between anchor and images Pierre 2009/6/11 bensan...@gmail.com bensan...@gmail.com Hi all, I'm

[jQuery] Re: :eq versus eq()

2009-06-10 Thread Pierre Bellan
With the traversing method, you can match a set of elements then select, for example, the third one $('.myclass,#myid').eq(2) I didn't use the traversing method but i think that is one of possible usage Pierre 2009/6/10 Maujor css.mau...@gmail.com According jQuery documentation [1][2] :eq

[jQuery] Re: Need to move selection from one box to another box

2009-06-10 Thread Pierre Bellan
Nowadays, the web is 2.0, so you can use a drag and drop system, which is more ergonomic for your users. Check the jquery-ui project ( http://jqueryui.com/ ), there are some example that correspond exactly to your problem. Pierre 2009/6/10 webspee...@gmail.com webspee...@gmail.com Hey all.

[jQuery] Re: Removing Single Option from Select

2009-03-27 Thread Pierre Bellan
Hi, you select your select : $('#myselect'); then u find the option with the value -1 : $('#myselect').find('option[value=-1]') or $('#myselect option[value=-1]'); finally you removed it $('#myselect option[value=-1]').remove(); Pierre 2009/3/27 iceangel89 iceange...@gmail.com How can i

[jQuery] Re: The last script on ready function

2008-11-25 Thread Pierre Bellan
Hi, Put it at the very bottom of your page. $(document).ready are executed in LILO order. I think that's the only thing it which always works. Pierre Rodney Dangerfield - I looked up my family tree and found out I was the sap. 2008/11/25 MarcelloP [EMAIL PROTECTED] Hi all! Please, I'm in

[jQuery] Re: Doing Ajax call to a page that requires authentication

2008-11-25 Thread Pierre Bellan
Hi, If the authentification is form-based, then the login credentials is passed by GET or POST. So you just have to add it to your ajax request see the data option. $.ajax({ type: POST, url: some.php, data: name=Johnlocation=Boston, success: function(msg){ alert( Data Saved: +

[jQuery] Re: find table rows that contains text

2008-11-25 Thread Pierre Bellan
Hi, I think you must use the filter function. I made this little test : var mySearch = '63'; $('table tr:contains('+mySearch+')').filter(function(){ if ($.trim($(this).text()) == mySearch ) { return true; } else{ return false; } }); The text() method removes all

[jQuery] Re: The last script on ready function

2008-11-25 Thread Pierre Bellan
] You can also run it on page load (as opposed to DOM ready): $(window).load(function(){ // scripts to run after page load here }); - ricardo On Nov 25, 8:08 am, Pierre Bellan [EMAIL PROTECTED] wrote: Hi, Put it at the very bottom of your page. $(document).ready are executed

[jQuery] Re: NEWB ALERT: Why when calling a pre-existing function from .click() is it executed on page load?

2008-11-21 Thread Pierre Bellan
Hi, In your code, i think you call the function. You only need to put the name of the function. The code you wrote execute the function quickSearch then put the result as the name of the function to bind to click Like this : $(#qSearchBut).click(quickSearch); Pierre Lily Tomlin - The trouble

[jQuery] Re: set default action for all links

2008-11-21 Thread Pierre Bellan
Hi, I don't know what lightbox is but it's not important. Like you said, you just need an selector for all links. $('a').click(function(){ myUrl = $(this).attr('href'); openLightbox(myUrl); }); I think this code works, but i have not test it. Pierre Yogi Berra - I never said most of the

[jQuery] Re: newbies question

2008-11-19 Thread Pierre Bellan
Hi, With regular expressions you can simplify it : For example, if ( test1.match(/^[a-z]8$/) ) { } Pierre Lily Tomlin - The trouble with the rat race is that even if you win, you're still a rat. 2008/11/19 Alfredo Alessandrini [EMAIL PROTECTED] Hi, Can I simplify this if statement?

[jQuery] Re: Rounding numbers

2008-11-19 Thread Pierre Bellan
Hi, In javascript, you have the Math object. This is the perfect solution for your problem Bye Pierre Lily Tomlin - The trouble with the rat race is that even if you win, you're still a rat. 2008/11/19 less than zero [EMAIL PROTECTED] Hi, Is there any way to round the value of a

[jQuery] Re: How to add html do a div properly? (html(), val(), or text() ?)

2008-11-19 Thread Pierre Bellan
Hello, val() is for the form element ( input, select ), to get/set the value html() is what i use to add small html inside an element. I use the append method when the html to add is huge. i have never used the text() method. I understand that the text() method is like a php:strip_tags function