[jQuery] ThickBox / iframe / form

2009-02-16 Thread Dylan Verheul
We've been using the following setup for a few years now: jquery + thickbox (iframe option) showing a form that can be used to upload a file Note: on the main page (not the ThickBox modal page) there is a Google Map. When first writing this, it was hard to find a selection of tools that made

[jQuery] Re: show/hide/toggle: suggestion to reduce show/hide code

2008-11-18 Thread Dylan Verheul
On Tue, Nov 18, 2008 at 14:56, Karl Swedberg [EMAIL PROTECTED] wrote: It struck me that I often have to write something like this: if (cond) $(this).show() else $(this).hide(); Since jQuery is about reducing and chaining, wouldn't it be nice if I could write it like this:

[jQuery] Re: show/hide/toggle: suggestion to reduce show/hide code

2008-11-18 Thread Dylan Verheul
On Tue, Nov 18, 2008 at 19:58, Karl Swedberg [EMAIL PROTECTED] wrote: On Nov 18, 2008, at 9:02 AM, Dylan Verheul wrote: Hmm, I actually checked the docs for that because that would make .toggle an unsuitable overloader. The docs said toggle doesn't take arguments: Hmmm, indeed. :) Not so

[jQuery] show/hide/toggle: suggestion to reduce show/hide code

2008-11-17 Thread Dylan Verheul
I'm building a new version of an often used data entry form on our site Waarneming.nl (int'l version Observado.org). It struck me that I often have to write something like this: if (cond) $(this).show() else $(this).hide(); Since jQuery is about reducing and chaining, wouldn't it be nice if I

[jQuery] Re: jQuery TShirt

2008-05-09 Thread Dylan Verheul
jQuery: $(this) rocks On Fri, May 9, 2008 at 8:34 PM, Jonathan Sharp [EMAIL PROTECTED] wrote: Isn't it more like? alert( $('people:female').find('girlfriend').length == 0 ? 'l33t' : 'normal' ) -js On Fri, May 9, 2008 at 11:11 AM, Brandon Aaron [EMAIL PROTECTED] wrote: Something

[jQuery] [jquery.form] file upload question

2008-03-10 Thread Dylan Verheul
I'm using the jquery forms plugin. Excellent stuff. One problem. In my PHP-framework, I autodetect ajax/xhr requests and use an appropriate layout. This fails when I build a form with file uploads (the iframe trick doesnt trigger the XHR call). Is there a way to know that the page was requested

[jQuery] cluetip question

2008-03-05 Thread Dylan Verheul
I'd like to set a default style for cluetips in my project. Since I'm abstracting cluetip for my fellow programmers by wrapping it in PHP, I don't like to add cluetipClass: 'jtip' to every call. Can I do something like: $.cluetip.setup({ cluetipClass: 'jtip' }); $(a.cluetip).cluetip();

[jQuery] Re: cluetip question

2008-03-05 Thread Dylan Verheul
On Wed, Mar 5, 2008 at 11:09 AM, Dylan Verheul [EMAIL PROTECTED] wrote: I'd like to set a default style for cluetips in my project. Quick update: I solved it by changing the CSS -- nothing wrong with that since I don't need the other styles. For people that do, my original question may still

[jQuery] Re: cluetip question

2008-03-05 Thread Dylan Verheul
On Wed, Mar 5, 2008 at 3:58 PM, Karl Swedberg [EMAIL PROTECTED] wrote: It looks like you came up with a workaround for your issue, but for future reference, as of version 0.9.5 you can override defaults globally like so: $.fn.cluetip.defaults.cluetipClass = 'jtip'; I found that out

[jQuery] Re: Please help: How to simulate a Tab key press with jQuery

2007-09-16 Thread Dylan Verheul
On 9/15/07, Mark [EMAIL PROTECTED] wrote: I have a very large and complex form, and I am using some autocomplete components, and I need when user selects one item in the autocomplete option list, focus automatically go to the next component, like pressing the tab key. Which autocomplete are

[jQuery] Re: jEditable - Name of class

2007-09-14 Thread Dylan Verheul
You should wrap your editable calls with an each(), ad assign the class names from there. Example code was posted to this list not too long ago, I'll see if I can find it for you. Dylan On 9/14/07, Zerutreck [EMAIL PROTECTED] wrote: I want to catch the name of the classroom that is being

[jQuery] Re: jEditable - Name of class

2007-09-14 Thread Dylan Verheul
, saving: Saving... , extraParams: { pageID: this.id.split(-)[1] } }); }); Using each() to apply editable() to each element in turn. On 9/14/07, Dylan Verheul [EMAIL PROTECTED] wrote: You should wrap your editable calls

[jQuery] New plugin: Listify

2007-09-11 Thread Dylan Verheul
I've just release a little plugin that I wrote for use in a new project. It gracefully upgrades tables that contain rows with a single link to be a little more user friendly (enlarging the click area and applying a hover class). Since I'm using Thickbox, I also made sure it plays nice with

[jQuery] Re: New plugin: Listify

2007-09-11 Thread Dylan Verheul
On 9/11/07, spinnach [EMAIL PROTECTED] wrote: in the plugin settings you define hoverClass and cursorType, and never use it in the plugin later.. Oops. That's fixed now. -Dylan

[jQuery] Re: Listbox values text box

2007-09-11 Thread Dylan Verheul
Try this: $('#theButton2').click(function() { $(#foo2).val($(#foo).val().toString()); }); You catch the click event. You set the value of the text box to the value of the select (converted to a string). -Dylan On 9/10/07, Diddly Doo [EMAIL PROTECTED] wrote: I've some HTML as below. I'm

[jQuery] Re: New plugin: Listify

2007-09-11 Thread Dylan Verheul
On 9/11/07, Joan Piedra [EMAIL PROTECTED] wrote: Shouldn´t this be anchor.trigger('click') ? if (thickbox) { anchor.click(); } It worked for me (pre 1.2) to trigger the thickbox event. Note that this is only to trigger thickbox, any other link is handled by the lines below this part.

[jQuery] Re: Listbox values text box

2007-09-11 Thread Dylan Verheul
On 9/11/07, Joan Piedra [EMAIL PROTECTED] wrote: Dylan, That's a nice workaround, to just pass the selected value. But I think Diddly needs to add all the values in #foo2. Hmm, you could be right, but I wouldn't use JavaScript for that. Since you know all values when you build the page, you

[jQuery] A more forgiving .html()

2007-09-11 Thread Dylan Verheul
While figuring out an answer to a question on this forum, I noticed that .val() returns an array when used on a multiselect. and just the value in all other cases. I didn't know this before, but it makes sense. I came across this because .html() refused to insert the result of the .val(), exiting

[jQuery] Re: test

2007-09-05 Thread Dylan Verheul
Yes they are :-) On 9/5/07, Daniel Rossi [EMAIL PROTECTED] wrote: my emails arent coming through

[jQuery] Re: bassistance: jQuery plugin: Autocomplete

2007-09-05 Thread Dylan Verheul
A little explanation: I wrote the original autocomplete to restrict my users: they were only allowed to pick something out of a (very, very long) list. On 9/6/07, Chris W. Parker [EMAIL PROTECTED] wrote: On Wednesday, September 05, 2007 2:47 PM Jörn Zaefferer said: Thanks Chris for the

[jQuery] Re: Is there an autocomplete plugin that allows for a hidden field that does not show?

2007-08-27 Thread Dylan Verheul
want. :/ On Aug 23, 8:10 pm, Dylan Verheul [EMAIL PROTECTED] wrote: On 8/23/07, inVINCable [EMAIL PROTECTED] wrote: I am new from prototype and scriptaculous and have been puzzled all day by trying to figure out this autocomplete business with jQuery. I have searched all over including

[jQuery] Re: Is there an autocomplete plugin that allows for a hidden field that does not show?

2007-08-23 Thread Dylan Verheul
On 8/23/07, inVINCable [EMAIL PROTECTED] wrote: I am new from prototype and scriptaculous and have been puzzled all day by trying to figure out this autocomplete business with jQuery. I have searched all over including the plugins page on the jquery website and cannot find what I need, an

[jQuery] Re: New Plugin: Live Query (previously called Behavior)

2007-08-19 Thread Dylan Verheul
Brandon, this looks very exciting. It may even solve some issues I'm running into in my current project. Question: Live Query (formally Behavior) -- don't you mean formerly, or is the official name still Behavior? Dylan On 8/20/07, Brandon Aaron [EMAIL PROTECTED] wrote: Some of you may be

[jQuery] Re: Autocomplete

2007-08-10 Thread Dylan Verheul
Kai, autocomplete does not require you to pick an item from the list. It's a suggestion. There is however an option that forces you to pick from the list and disallows non-list choices. I forgot: but this option is not implemented in Jörn's version. Dylan

[jQuery] Re: Autocomplete

2007-08-10 Thread Dylan Verheul
On 8/10/07, Kai Kuehne [EMAIL PROTECTED] wrote: Forgot something: On 8/9/07, Dylan Verheul [EMAIL PROTECTED] wrote: IMHO it shouldn't be a default in local mode, but I don't know if this was deliberate or not. I also disagree here. E.g., if there is one entry in the list, the plugin

[jQuery] Re: Autocomplete

2007-08-09 Thread Dylan Verheul
On 8/9/07, Rey Bango [EMAIL PROTECTED] wrote: Correct on the URL: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ This is the best one, but I only recently found out that it crashes Safari. This is more Safari's fault (crashing should never happen) than Jörn's, but I thought

[jQuery] Re: Autocomplete

2007-08-09 Thread Dylan Verheul
On 8/9/07, Kai Kuehne [EMAIL PROTECTED] wrote: Thanks for poiting it out, its cool. I know that you're not the author (and a bug report would be much better). I don't know if this is wanted behavior or a bug. What do you think? The plugin is selecting the first entry in the dropdown box in

[jQuery] Re: [NEWS] jQuery Team Member Jörn Zaeffere r in Javamagzin

2007-08-09 Thread Dylan Verheul
Nice! Go Jörn! On 8/10/07, Rey Bango [EMAIL PROTECTED] wrote: jQuery Team Member Jörn Zaefferer has had a jQuery article published in Javamagzin (http://javamagazin.de), a German publication focusing on enterprise Java development. The article will be a jQuery introduction aimed at Java

[jQuery] Re: Could use some help trying to get autocomplete / editable to work in Rails

2007-08-05 Thread Dylan Verheul
I'm not a Rails person myself, but there's been plenty of Rails on this list, a little Google search should get you started. If that isn't enough, just look at the Rails docs, and replace the prototype calls with jQuery equivalents. You'll need a basic understanding of how Rails does its

[jQuery] Re: Two comments/questions about Jörn's aut ocomplete plugin.

2007-08-01 Thread Dylan Verheul
Hi Carlos, You're almost there. You need to set cacheLength to a number 1 (say 10), and you need to set matchSubset to true. -Dylan On 8/1/07, chali [EMAIL PROTECTED] wrote: First I've to say that this plugin is a great piece of work and i'm using it in many of my projects. This time I

[jQuery] Re: An autocomplete that is able to insert a hidden id based upon the ID of a returned element?

2007-07-31 Thread Dylan Verheul
Look at http://www.dyve.net/jquery/?autocomplete Type 'vul' into the first search box, and pick a vulture :-) Watch the alert box. Look at the source code to see how it is done. Documentation is linked on the page. -Dylan On 7/31/07, Jim Newfer [EMAIL PROTECTED] wrote: Hello every, I am

[jQuery] Re: autocomplete caches against my will

2007-07-30 Thread Dylan Verheul
On 7/30/07, (null) [EMAIL PROTECTED] wrote: To be honest, I don't see where I used wrong values. cacheLength is a number =1 matchSubset is a 0 or a 1 (in most Mods I've seen, including the one you linked, changed to Boolean) OK, I can only speak for the original -- I haven't looked into the

[jQuery] Re: autocomplete caches against my will

2007-07-27 Thread Dylan Verheul
Use a correct value for cacheLength and matchSubset (see docs for the original at at http://www.dyve.net/jquery/autocomplete.txt) Tip: Use the latest and greatest autocompleter: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ Good luck! -Dylan On 7/27/07, (null) [EMAIL

[jQuery] Re: which autocomplete plugin ...?

2007-07-25 Thread Dylan Verheul
On 7/25/07, vulgarisoverip [EMAIL PROTECTED] wrote: You can also try my custom amalgamation of two popular autocompleters here: http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/ Sorry to hijack the thread, didn't notice this version before.

[jQuery] Re: Autocomplete.js not runs on PHP Version 5.0.2

2007-07-24 Thread Dylan Verheul
On 7/21/07, Stephan Beal [EMAIL PROTECTED] wrote: On Jul 21, 3:26 pm, navi [EMAIL PROTECTED] wrote: I found that autocomplete runs only on PHP 5.2 and higher version, Any solution in this regard. Unfortunately, the author of autocomplete fails to document which PHP version it needs. About

[jQuery] Re: which autocomplete plugin ...?

2007-07-23 Thread Dylan Verheul
Use Jörn's: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ On 7/23/07, mit [EMAIL PROTECTED] wrote: I'm looking for a stable autocomplete plugin. Of the various autocomplete plugins available, which are most commonly used/most stable?

[jQuery] Re: Using AutoCompleter, how do you pass parameters

2007-07-10 Thread Dylan Verheul
by Dylan V and now you and this other guy Joern are working on it? Sorry, just trying to understand who's who. What should I download from that page? Not that the who's who really matters that much, but the story is as follows. Dylan Verheul released the original Autocomplete plug-in. It did

[jQuery] Re: Using AutoCompleter, how do you pass parameters

2007-07-08 Thread Dylan Verheul
You can insert it directly (serverside, so PHP, CF, whatever floats your boat) into the script. Use the extraParams option. On 7/8/07, AtlantaGeek [EMAIL PROTECTED] wrote: $('#CustNo').val() is not working. How can I get the CustNo value set dynamically to the value in a hidden field? On

[jQuery] Re: Thickbox and forms

2007-06-13 Thread Dylan Verheul
You need to load the form into a Thickbox iframe. On 6/13/07, arnaud sellenet [EMAIL PROTECTED] wrote: Hi I'm trying to use thickbox but don't manage to submit a form that was loaded in the thickbox so that the response keeps inside the thickbox. I've tried to add thickbox class to the form

[jQuery] Re: thickbox reloaded?

2007-05-15 Thread Dylan Verheul
On 5/15/07, Klaus Hartl [EMAIL PROTECTED] wrote: Yes. I don't see the need for the usage of an iframe if you're in the same domain. I do. Launch a form in an iframe using thickbox, and allow that form to be submitted into the iframe. You could probably do the same with the forms plugin and

[jQuery] Re: Bootstrapping Jquery, Or: How to Create a 1 line javascript widget for external websites...

2007-05-07 Thread Dylan Verheul
You could make a script that dynamically loads jquery if it isnt loaded yet. You'd probably lose some older browser support, and you'd have to write the loader without jquery. Something like this: if (!jQuery) { var script = document.createElement('script'); script.type = 'text/javascript';

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-18 Thread Dylan Verheul
On 4/18/07, Mika Tuupola [EMAIL PROTECTED] wrote: On Apr 18, 2007, at 2:35 PM, Fil wrote: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ Great work :) Dylan seems to be source of many great plugins ;) I'll take that as a compliment :-)

[jQuery] Re: Release: autocomplete 1.0 alpha

2007-04-17 Thread Dylan Verheul
On 4/18/07, Dylan Verheul [EMAIL PROTECTED] wrote: On 4/17/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: I'm glad to release the first version of the rewritten autocomplete plugin, based on the work by ... There is now a page with a download, link to the demo and documentation: http

[jQuery] Re: Autocomplete plugin status2

2007-04-16 Thread Dylan Verheul
On 4/17/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Another issue is Opera insisting on submitting the form when pressing enter, even with event.preventDefault() called at the right moment, at least it works in IE and Firefox. Anyone got an idea how that can be avoided? I've never been able

[jQuery] Re: Autocomplete plugin status2

2007-04-14 Thread Dylan Verheul
I love the fact that you still use my birds example :-) (I wrote autocomplete for the form on www.waarneming.nl, a Dutch site for nature sightings, and I used a dump of our English and Latin bird names to fill search.php). On 4/15/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi folks, for

[jQuery] Re: Autocomplete plugin

2007-04-08 Thread Dylan Verheul
Hi Jorn, I would very much like to see autocomplete move on, but in my current situation, I can't guarantee any effort of my own. Dan's version fixes some bugs and adds some interesting new stuff. I've got a basic set of documentation for my own initial version here:

[jQuery] Re: Autocomplete Question

2007-04-07 Thread Dylan Verheul
(like my example). On Apr 7, 12:43 pm, Shelane [EMAIL PROTECTED] wrote: I see examples but no actual documentation for this plug-in or the orignial from Dylan Verheul. I would love to get rid of my scriptaculous uses of autocomplete, but I have yet to figure out how to match what I do