[jQuery] force an error

2008-03-08 Thread Jean-Sébastien
how can i'd like to force an error after an ajax call, and work with json array returned. how do i do this?

[jQuery] Re: optimization in jquery

2008-03-06 Thread Jean-Sébastien
hi, in my case the element is selected with an i id, so i guess it's found relatively quickly. but this div is about 800 html lines (doesn't mean anything but i can't count tags). In fact i just made some ajax pagination inside the div. On Mar 6, 3:00 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:

[jQuery] optimization in jquery

2008-03-05 Thread Jean-Sébastien
hi, when i work on a big div tag (containing lots of others elements) browser freeze, during few seconds. is there a way to optimize this. and more generally what are the best practices to optimize jquery functions.

[jQuery] selectors: selecting every element that is not children of another div

2008-02-25 Thread Jean-Sébastien
hi, i try to select every element that is not children of another div. i tried different ways but didn't find a solution. regards

[jQuery] blur FireFox/IE

2008-01-19 Thread Jean-Sébastien
Hi, i'm trying to do a function on blur event, it works on Firefox but not on IE. what's the reason? I just do this: $('.down_menu.show').livequery('blur', function(){ $(this).removeClass('show'); }); Maybe i should precise i'm using jquery 1.2.1

[jQuery] Re: dataType & POST

2007-12-04 Thread Jean-Sébastien
please i really need help, i can't tottally remove prototype.js from my rails app if i can't send ajax request with datatype: 'script' and type POST. i just want to know if it's possible or not. On Dec 3, 4:00 pm, "Jean-Sébastien" <[EMAIL PROTECTED]>

[jQuery] dataType & POST

2007-12-03 Thread Jean-Sébastien
(i post this message again i've posted it 2 hours ago but it didn't appear yet.) in jquery doc is written : warning "script" will turn posts into gets so, is there a way to send POST or DELETE or PUT ajax query with datatype: 'script'? regards

[jQuery] dataType & POST

2007-12-03 Thread Jean-Sébastien
on jquery, is sayed (about dataType='script'): # warning "script" will turn posts into gets . Is there another to have a dataType='script' and force POST, or PUT or DELETE ? regards

[jQuery] Re: selector to string

2007-11-27 Thread Jean-Sébastien
i want to send an ajax query in which i pass the element to update: $.ajax({url: _href,data: "rel=" + escape("#myId a.myClass")}) On Nov 27, 8:58 am, Suni <[EMAIL PROTECTED]> wrote: > I dont think there is any easy way to do that. > > A single DOM element could have 10 different selectors that m

[jQuery] Re: selector to string

2007-11-27 Thread Jean-Sébastien
hi suni, want to send an ajax query, in which i tell the dom element to update. On Nov 27, 8:58 am, Suni <[EMAIL PROTECTED]> wrote: > I dont think there is any easy way to do that. > > A single DOM element could have 10 different selectors that match it > (or others with it). Such a function cou

[jQuery] selector to string

2007-11-26 Thread Jean-Sébastien
I'm sure it's a simple question, but i'm looking in the api but don't find it. How do i convert my selected element to a string? something like : "#myId a.myClass"

[jQuery] Re: passing this

2007-11-01 Thread Jean-Sébastien
> > }); > > And if you do > $('div').func(); // alerts 'plugin' -- no namespace > But > $('div').mynamespace().func(); // alerts 'namespaced plugin' > And > $('div').mynamespace().func().$().func(); // alerts 'namespaced >

[jQuery] Re: passing this

2007-10-28 Thread Jean-Sébastien
tion() { >// do something with elements > }); > } > > }); > > would do something with all the selected elements via test. $ > ('div').test() > > /James > > On Oct 27, 8:49 pm, Jean-Sébastien <[EMAIL PROTECTED]> > wrote:

[jQuery] passing this

2007-10-27 Thread Jean-Sébastien
Hello, i want to call a function $('#selection').parent.child() with the following code : jQuery.fn.extend({ parent: { child: function(o){ doSomethingWith(selectedElement) } } }); but i dont know how to pass the selected element through parent (#selection) to child function. regards.