[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=blalimit=10 it can call /search? query=blamax=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
! 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 these elements. What I did was : $('.container').each(function(){ $(this).prepend('a class=dosomething href

[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('a class=dosomething href=...'Do something/ a') .find(.dosomething).click(function(){return doSomething(this);}); ... It

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

2007-09-05 Thread xavier
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 PROTECTED] wrote: xavier wrote

[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: 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

[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

[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:

[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 tall

[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 script src ... for all the plugins I use (rating+dimension+meta +tablesorter...) in the head, I only kept the jquery in the head and loaded the others like that (exemple for tablesorter): script type=text/javascript function

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

2007-08-15 Thread xavier
On 8/14/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Xavier, For question #1: if(typeof $.fn.tableSorter == 'function') question #2: yes, you just need to know the path to the file and do a document.write('script... On 8/14/07, xavier [EMAIL PROTECTED] wrote: Hello, I'd

[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

[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

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

2007-08-11 Thread xavier
for different objects (or is this a limitation of the plugin) ? Thanks in advance, Xavier

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

2007-04-30 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-29 Thread xavier
: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 / contentonly into #content jQuery([EMAIL PROTECTED]/]).bind(click,function

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

2007-04-28 Thread xavier
? 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; if (this.$events this.$events['click

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

2007-04-27 Thread xavier
? 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: This is not a terribly

[jQuery] history in ajax and setting the ajax url

2007-04-27 Thread xavier
? 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] clone does copy the accesskey attribute

2007-04-13 Thread xavier
in advance, Xavier

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

2007-04-12 Thread xavier
welcome! Xavier

[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 have a two level list : [ ... ] I want