[jQuery] Autocomplete, can we change the "q" and "limit" parameters name ?

2009-01-14 Thread xavier
Hi, Is there a way to modify the default names of the two parameters, so instead of calling /search?q=&limit=10 it can call /search? query=&max=10 I was hoping for something along that way: $("#searchfield").autocomplete( "/search", { q: "query",

[jQuery] Re: How to create dom element with a defined behaviour ?

2007-09-24 Thread xavier
plugin. sounds like a really smart addition to jquery ! Thanks for the info X+ > -- > Brandon Aaron > > On 9/23/07, xavier <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I found myself adding elements to a page, and then adding behaviour to > >

[jQuery] How to create dom element with a defined behaviour ?

2007-09-23 Thread xavier
Hello, I found myself adding elements to a page, and then adding behaviour to these elements. What I did was : $('.container').each(function(){ $(this).prepend('Do something') .find(".dosomething").click(function(){return doSomething(this);}); ... It works, but I don't find very elegan

[jQuery] Re: history_remote: how to use it with JSON ?

2007-09-05 Thread xavier
v I don't understand how to plug that with my json-on-a-different-url case. Does it clarify ? Has someone an idea ? X+ P.S. I'm fully aware than my exemple is dummy, but I tried to set up something simple that doesn't involve my bulky CMS On Sep 4, 11:00 am, Klaus Hartl <[EMAIL PROTE

[jQuery] Re: loading remote script

2007-09-04 Thread xavier
HI, Not sure about the question. Could you clarify ? You're loading external html that contains html with onclick functions ? you're trying to load a javascript file ? for the second getScript will do it: jQuery.getScript('whatever.js',function(){alert('things to do once the script is loaded');

[jQuery] history_remote: how to use it with JSON ?

2007-09-04 Thread xavier
Hi, I'm using json to update a list and it works fine, but the goodies (back button, bookmarks...) are obviously not working. My goal is to keep a version that generates the html lists (for the ones without js enabled), keep the json update features, and add the history working. I'm struggling

[jQuery] Re: jQuery Babelfish Plugin

2007-08-22 Thread xavier
This isn't done as a plugin, but that's a similar idea: (buttons automatic translation) http://www.gmworkersblog.com/languages/english/union_says_avtovaz_fired_staff_the_moscow_times On Aug 21, 2:33 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > Hey folks, > > Time for another plugin > -http://di

[jQuery] Re: Templater

2007-08-19 Thread xavier
Have you seen this post ? Thats going in the same direction I think, and I like the idea of being able to use the template for an array. http://www.dennydotnet.com/post/JavaScript-Model-Objects-JMO---An-Idea.aspx Otherwise, a more complete, non jquery based one: http://code.google.com/p/trimpath

[jQuery] Re: columnize large text ...

2007-08-17 Thread xavier
Looks promising... > Other feature ideas I find interesting are: > - Allowing users to specify the height of their element, or the columns, and > then paginate the text (I'd include links/buttons that allow you to page > through the text). This would be good so that your columns don't get so >

[jQuery] Trick to speed the display of a jquery enhanced page ?!

2007-08-16 Thread xavier
Hello, I've modified a page so instead of putting all the

[jQuery] Re: synchronous getScript ?

2007-08-15 Thread xavier
t; (e.g. this is set to true by default). If you need synchronous > requests, set this option to false. Note that synchronous requests may > temporarily lock the browser, disabling any actions while the request > is active." > > Please pay tight heed to the Note. > > On

[jQuery] synchronous getScript ?

2007-08-15 Thread xavier
{ if(!$.isFunction($.fn['tablesorter'])) { $.getScript('/path/...', function() { init (); }); } else { init (); } Xavier

[jQuery] Re: stupid dev tricks: gzipping jQuery without mod_deflate

2007-08-15 Thread xavier
This means that : 1) you assume all clients are able to deal with compressed pages 2) your server is going to compress it for each visitor. 3) the headers might or might not be properly dealing with its type. With mod_rewrite, they are nice tricks to have a compressed file and serve it instead of

[jQuery] Re: How to test if plugin X is loaded ?

2007-08-15 Thread xavier
javascript'; > script.src = '/path/to/plugin'; > $('head')[0].appendChild(script); > > But then you don't get the nice callback stuff to ensure that it's loaded. > > --Erik > > On 8/14/07, Benjamin Sterling <[EMAIL PROTECTED]> wrot

[jQuery] How to test if plugin X is loaded ?

2007-08-14 Thread xavier
Hello, I'd like to be able to test if a specific plug in is loaded before calling some of its properties (to avoid throwing an error). Second question, is it possible to load it if missing ? Use case: I have a bit of template that have a sortable table of users, and another one that list group

[jQuery] rating plugin: how to pass an extra parameter

2007-08-11 Thread xavier
re an option to do something like that ? What's the proper way of using several ratings on the same page for different objects (or is this a limitation of the plugin) ? Thanks in advance, Xavier

[jQuery] Re: jCarouselLite - my first plugin - anxiously awaiting comments

2007-06-25 Thread xavier
Hi, Like it as well. Would it be possible to add an option to auto scroll (ie change image every X second, as if you press the next button) ? Thanks for sharing ! Xavier On Jun 25, 12:42 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > Hi there, > > I have been usi

[jQuery] Re: How to test if an event is already bound to an object ?

2007-04-29 Thread xavier
Thanks, very interesting and clarifying. Actually, I suspect that the loop (or selector) didn't find any element because the event handler I was looking for seems to be plug on a parent element. Anyway, I did it by filtering on the class attribute, that was a cleaner option. Thanks to all. X+

[jQuery] Re: history in ajax and setting the ajax url

2007-04-28 Thread xavier
bookmark is called ? On Apr 28, 5:10 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > xavier schrieb: > > > > > Hello, > > > I want to have an application that works both with and without ajax. > > Eg: without ajax, I get /contentWithMenu and with ajax I .load /

[jQuery] Re: How to test if an event is already bound to an object ?

2007-04-28 Thread xavier
Any idea? Xavier On Apr 27, 8:16 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > This is not a terribly elegant way to do it, but it does work. > > $('whatever_elements').each(function(i) > { > var hasclick = false; > >

[jQuery] history in ajax and setting the ajax url

2007-04-27 Thread xavier
k that I can customise so I can load whatever needed based on the hash. Does it make sense ? Is there a doc on the history plugin I missed or another plugin that I missed ? On the other history solutions I found (outside of jquery), you needed to install an empty html that would be used with a iframe.Is it the same here ? Thanks in advance, Xavier

[jQuery] Re: How to test if an event is already bound to an object ?

2007-04-27 Thread xavier
Well my question was rather looking for a dirty hack anyway... I will use your way and then move to something cleaner, either using a class or a rel attibute to define what can't be altered. Thanks, Xavier On Apr 27, 8:16 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: >

[jQuery] How to test if an event is already bound to an object ?

2007-04-27 Thread xavier
a javascript event to it. Is it possible to select only the links that don't have any event bound to the click event ? Thanks in advance, Xavier

[jQuery] Re: clone does copy the accesskey attribute

2007-04-13 Thread xavier
Thanks, elegant solution ! X+ On Apr 13, 11:58 am, Klaus Hartl <[EMAIL PROTECTED]> wrote: > xavier schrieb: > > > Hi, > > > When I clone an element that has an accesskey, it's copied to the > > cloned element as well. > > > Then you end up with t

[jQuery] clone does copy the accesskey attribute

2007-04-13 Thread xavier
ay ? Thanks in advance, Xavier

[jQuery] Re: Ajax based Accordion

2007-04-13 Thread xavier
Have you tried to create the accordion on a static html file with the same structure ? Does it work ? If not, that's probably you have to give some parameters to the accordion call to make it work. X+ On Apr 13, 10:59 am, "WebolizeR" <[EMAIL PROTECTED]> wrote: > On 13 Nisan, 01:06, "WebolizeR"

[jQuery] Re: How to clone an element to a sub element within itself ?

2007-04-12 Thread xavier
Thanks Scott and Karl ! Now I got it, I was missing the $(this) trick to get a jquery object from a dom one. I've added it to the wiki (on each and on get sections). Xavier On Apr 12, 4:28 pm, Scott Sauyet <[EMAIL PROTECTED]> wrote: > xavier wrote: > > I h

[jQuery] How to clone an element to a sub element within itself ?

2007-04-12 Thread xavier
m stuck and I fell like I'm missing something obvious. Any idea or link to the doc I missed more than welcome! Xavier