Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-04 Thread Klaus Hartl
Daemach schrieb: Your faith in Microsoft is certainly admirable, but the very fact that we're talking about storing 2 kinds of information in a single attribute is cause for concern isn't it? Thinking about the way parsers work in general, an extra attribute in an element seems less likely to

Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-04 Thread Klaus Hartl
Ⓙⓐⓚⓔ schrieb: have you ever made a dtd that the validator likes? I gave up on that a while back! good luck! Yes, unless you don't use *real* xml/xhtml there's not a real chance to have a validator ever use your specified dtd. so the whole thing is kind of theoretical. -- klaus

[jQuery] IE6 + Form Validator bug object dosent support this property or method

2007-03-04 Thread amircx
no one answered me, guess i wrote the subject worng ... please help ... when i run form validator from http://bassistance.de/jquery-plugins/jquery-plugin-validation/ , after putting the uncompressed version, its working fine in ie 7 but in ie 6 its returns me error: (here is the code:

Re: [jQuery] Re initialise selectables

2007-03-04 Thread Priet
Did you found a solution yet? I've been asking myself the same question and tried to fix it, but I didn't succeed. Anyone who knows how to 'reinitialize' the selectables? I've prepared a showcase: http://www.peterriet.net/temp/selectables/ Any help would be great! Thanks! Peter Riet floepi

[jQuery] onClickOut?

2007-03-04 Thread Philip Pryce
Is there some way of making a bind function so that, one you click away from an element (say drop down menu) it disapears. So say i've clicked a button and a menus poped up, i then taken a look at the menu and i dont need it again, so i click on some other part of the page and the menu hides it

Re: [jQuery] onClickOut?

2007-03-04 Thread Klaus Hartl
Philip Pryce schrieb: Is there some way of making a bind function so that, one you click away from an element (say drop down menu) it disapears. So say i've clicked a button and a menus poped up, i then taken a look at the menu and i dont need it again, so i click on some other part of the

Re: [jQuery] onClickOut?

2007-03-04 Thread Chris Domigan
Hmm.. maybe capture a focus event? Like $(document).not(#menu).bind(focus, function() { .../* menu hide code */...}); Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jqModal r7 release!

2007-03-04 Thread Chris Domigan
Brice, Is there any way I can change the callback functions after the initial .jqm() call? I'm wanting to have a standard widget that performs similar to the prompt() function in javascript. But I want to dynamically add a callback depending on when/where in the site it's being used. Cheers,

[jQuery] Some info on the two Require plugins?

2007-03-04 Thread Su
There are two Require plugins in the wiki: http://dev.jquery.com/wiki/Plugins/require--by Jose Paris http://dev.jquery.com/wiki/Plugins/requirex --by Mohd Khairi Lamsah and I'm trying to figure out which is better, if at all. The only real difference I can detect is that Mohd's explicity

Re: [jQuery] onClickOut?

2007-03-04 Thread Philip Pryce
I've tried that, and jQuery Complains about the function one not existing. Yes, i'm using the latest version of jQuery too. Klaus Hartl wrote: Philip Pryce schrieb: Is there some way of making a bind function so that, one you click away from an element (say drop down menu) it disapears.

Re: [jQuery] onClickOut?

2007-03-04 Thread Philip Pryce
That doesnt seem to work ether. Could you posibly recomend anything else? Chris Domigan wrote: Hmm.. maybe capture a focus event? Like $(document).not(#menu).bind(focus, function() { .../* menu hide code */...}); Chris ___ jQuery mailing

Re: [jQuery] onClickOut?

2007-03-04 Thread Felix Geisendörfer
Try binding the 'blur' event to to the element you are working with. -- Felix -- http://www.thinkingphp.org http://www.fg-webdesign.de Philip Pryce wrote: That doesnt seem to work ether. Could you posibly recomend anything else? Chris Domigan wrote: Hmm.. maybe

Re: [jQuery] onClickOut?

2007-03-04 Thread Philip Pryce
Thanks that works, yet i have to focus the menu for it work, but it gives the menu a dotted border, any way of removing the border, yet the menu still being focused? Felix Geisendörfer wrote: Try binding the 'blur' event to to the element you are working with. -- Felix

Re: [jQuery] onClickOut?

2007-03-04 Thread Felix Geisendörfer
any way of removing the border, yet the menu still being focused? Not sure about IE, but for FF this CSS should work: element:focus{-moz-outline-style: none;} -- http://www.thinkingphp.org http://www.fg-webdesign.de Philip Pryce wrote: Thanks that works, yet i

Re: [jQuery] jqModal r7 release!

2007-03-04 Thread Brice Burgess
Chris Domigan wrote: Is there any way I can change the callback functions after the initial .jqm() call? I'm wanting to have a standard widget that performs similar to the prompt() function in javascript. But I want to dynamically add a callback depending on when/where in the site it's

Re: [jQuery] jqModal r7 release!

2007-03-04 Thread Chris Domigan
Thanks for that Brice. Another thought - is it possible to get the element that triggered the jqmShow)? So if I have n anchor elements with class of jqmShow, the modal object (once triggered) will have a reference to its calling element? Cheers, Chris

[jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-04 Thread amircx
hey, i got the following code (i fixed the ie6 bugs and stuff) now i need to figure out how can i assign the div the shows errors in each input? i saw the demos but the problem is that i want to control on each div position with my css.. .is that possible ? or anyone can shows me how to do it

Re: [jQuery] jqModal r7 release!

2007-03-04 Thread Brice Burgess
Chris Domigan wrote: Another thought - is it possible to get the element that triggered the jqmShow)? So if I have n anchor elements with class of jqmShow, the modal object (once triggered) will have a reference to its calling element? Chris, Sure thing. The last triggering element is

Re: [jQuery] jqModal r7 release!

2007-03-04 Thread Chris Domigan
Excellent - just what I needed! Sterling effort. Cheers ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] $(node).hasClass(...) function

2007-03-04 Thread Sébastien Pierre
Hi, This is not very obvious, and I guess some people won't notice that is offers the same functionalities as a potential hasClass... from a developer friendly point of view, I think it would be better to have addClass/toggleClass/hasClass rather than addClass/ toggleClass/is. Just my 2c

[jQuery] Packing script

2007-03-04 Thread Ámon Tamás
Hello, Maybe off, sorry. I made a little script, and I like to pack it. I try to use the js.jar what is in the svn version of jquery. I try with the next command: java -jar ./build/js.jar ./build/build/pack.js szamolo.js ./szamolo.pack.js But, when I like to use the szamolo.pack.js instead

Re: [jQuery] jQuery + ColdFusion - auto complete examples?

2007-03-04 Thread Andy Matthews
Here's a quick example: http://www.co-opcookbook.com/test.cfm It's not working 100% right now, I think due to the way mySQL stores the data (extra carriage returns at the end maybe). But here's the code for it (note, this uses an older version of jQuery). I haven't take the time to update this

[jQuery] New Plugin: clickMenu

2007-03-04 Thread Roman Weich
Hey there, I've created a plugin to make a clickable, application-like dropdown menu out of an unordered list. Information about it can be found at: http://p.sohei.org There is still some work to do, to make it really usable (I'm new to this) but nonetheless please let me know what you think

Re: [jQuery] Packing script

2007-03-04 Thread Joan Piedra
http://dean.edwards.name/packer/ On 2/26/07, Ámon Tamás [EMAIL PROTECTED] wrote: Hello, Maybe off, sorry. I made a little script, and I like to pack it. I try to use the js.jar what is in the svn version of jquery. I try with the next command: java -jar ./build/js.jar ./build/build/pack.js

Re: [jQuery] $(node).hasClass(...) function

2007-03-04 Thread Paul Bakaus
Hi guys, I think it's absolutely worth thinking about adding a hasClass shortcut to the core, since I also missed the shortcut many times. the is() function is pretty nice, but people would really guess there is a hasClass. -Paul 2007/3/4, Sébastien Pierre [EMAIL PROTECTED]: Hi, This is not

Re: [jQuery] onClickOut?

2007-03-04 Thread Karl Swedberg
Hey Yehuda, .one('event',fn) has not been deprecated, as far as I know. Only the individual .oneEvent(fn) methods have. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 4, 2007, at 8:21 AM, Yehuda Katz wrote: one has been deprecated since 1.1.

[jQuery] got troubled returning combined data: html+javascript

2007-03-04 Thread Марат
Hi, guys! I've got in 1.html something about $(document).ready(function() { var h = $.ajax({url: test.html,async: false,dataType:'html'}).responseText; $('body').append(h); }); test.html contains smth about that pTest data/p script type=text/javascript /*![CDATA[*/ alert('test');

Re: [jQuery] $(node).hasClass(...) function

2007-03-04 Thread Karl Swedberg
Maybe .hasClass() would be helpful, but keep in mind that .is() offers /more/ functionalities than .hasClass() would. For example ... $('.class').is('#my-id') $('p').is(':visible') $('div').is('[a]') I'm not necessarily opposed to having .hasClass(), but I really love the flexibility of

Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-04 Thread Daemach
My main issue, I think, is that I don't like the idea of mixing 2 different types of data in one attribute. I like keeping everything separated, but that's just me ;) Klaus Hartl wrote: Ⓙⓐⓚⓔ schrieb: I think there is no risk! classes are ours to use (or abuse)... no sane (not even IE)

[jQuery] Best practices for reattaching behaviours to dynamically loaded content?

2007-03-04 Thread Nedjo Rogers
As site developers using jQuery, we often attach jQuery behaviours through an attach function that's registered with $(document).ready();. Typically, behaviours attach to content identified by jQuery selectors, e.g., id or class values. This works great for the initial DOM ready state. But how

Re: [jQuery] Best practices for reattaching behaviours to dynamically loaded content?

2007-03-04 Thread Felix Geisendörfer
I found that the simplest way to handle all of this is to make use of the context parameter of jQuery. Basically write your attachBehaviors function like this: var attachBehaviors = function(context) { context = context || document; $('a', context).bind('click', ...); $('#product',

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Erik Beeson
Use Thickbox in iframe mode and bounce the content off your server. Otherwise, manually get the values from the form and generate a div with the preview content in it (all from javascript). Submit form data to an iframe is a flawed idea. --Erik On 3/4/07, Seb Duggan [EMAIL PROTECTED] wrote:

Re: [jQuery] Best practices for reattaching behaviours to dynamically loaded content?

2007-03-04 Thread Chris Domigan
I keep all my behaviours in separate functions. For instance if I had a fancy table widget I'd have a function called initTable() that contained the behaviour code. I'd call it initially upon page load, then call it again when necessary if content has been updated via ajax. Eg.

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Seb Duggan
I see how to do this with a normal HTML page, but how do I submit the data via POST and get the resulting page into a Thickbox iframe? Seb On 4 Mar 2007, at 19:16, Erik Beeson wrote: Use Thickbox in iframe mode and bounce the content off your server. On 3/4/07, Seb Duggan [EMAIL

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Erik Beeson
I see. I don't think that functionality is built in to Thickbox. It probably wouldn't be too hard to hack it to do that. Google 'iframe post' for info on the HTML necessary to make it happen. Or just use GET. Good luck. --Erik On 3/4/07, Seb Duggan [EMAIL PROTECTED] wrote: I see how to do this

[jQuery] jquery flash sIFR fla file

2007-03-04 Thread Sam Sherlock
I am playing around with the flash plugin for jquery trying to get the sIFR woking within a site. I have downloaded the fla file but it does not open in my flash 7 http://jquery.lukelutman.com/plugins/flash/jfr.fla I was hoping that either Luke or someone might be able either send me a fla

Re: [jQuery] $(node).hasClass(...) function

2007-03-04 Thread Paul Bakaus
Absolutely Karl - the is() method is wonderful, I use it quite often. But there are often more ways to achieve the same things, sometimes it's just a matter of taste. Anyway - a hasClass method would probably even save a few ms compared to is() in my opinion, because you don't need to parse

Re: [jQuery] jqUploader updated

2007-03-04 Thread Chris Domigan
Alexandre, Is there any way to debug this plugin? For instance jqUploader has just stopped posting to my server side script for some reason, and it would be handy to see what sort of error it is throwing. Cheers, Chris ___ jQuery mailing list

Re: [jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-04 Thread Jörn Zaefferer
amircx schrieb: hey, i got the following code (i fixed the ie6 bugs and stuff) now i need to figure out how can i assign the div the shows errors in each input? i saw the demos but the problem is that i want to control on each div position with my css.. .is that possible ? or anyone can

[jQuery] jQuery Tags Autocomplete

2007-03-04 Thread johnny
I have a table with tags. Now I downloaded the autocomplete from jQuery plugin Modified Auto-complete by Anjesh Tuladhar, http://just-tech.blogspot.com/2006/12/jquery-tweaking-auto-complete-plugin.html. But I don't understand how to connect these two. First, I have retrieved tags from the table

[jQuery] How to find some consequent elements

2007-03-04 Thread Dmitry Rudakov
I need to find some consequent elements of one type from some point in DOM For example, I have: div id=start.../divinput id=id1/input id=id2/input id=idN/div/divinput id=out/ I need to find all inputs (from 1 to N) and not to find input with id=out if I use $(#start).siblings(input) I

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Kristinn Sigmundsson
U could generate a div with the info from the form and use thickbox internal function TB_show, like this: $(preview).click( function () { //generate a div with the contents of the form and then call thickbox with: TB_show(Post preview, #TB_inline?height=300width=300inlineId=divId, false); }); I

Re: [jQuery] How to find some consequent elements

2007-03-04 Thread Brice Burgess
Dmitry Rudakov wrote: For example, I have: div id=start.../divinput id=id1/input id=id2/input id=idN/div/divinput id=out/ I need to find all inputs (from 1 to N) and not to find input with id=out if I use $(#start).siblings(input) I will find all inputs including input with id=out

Re: [jQuery] Packing script

2007-03-04 Thread Jörn Zaefferer
Ámon Tamás schrieb: Hello, Maybe off, sorry. I made a little script, and I like to pack it. I try to use the js.jar what is in the svn version of jquery. I try with the next command: java -jar ./build/js.jar ./build/build/pack.js szamolo.js ./szamolo.pack.js But, when I like to use the

[jQuery] ISO docs for $.fn ?

2007-03-04 Thread Kynn Jones
Hi. I'm just learning about jQuery and finding my way around its documentation. I have not been able to find any documentation on $.fn. In fact in some of the rest of the documentation (e.g. the example code for $.extend given at http://visualjquery.com/1.1.1.html, $.fn (or rather jQuery.fn )

Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-04 Thread Jörn Zaefferer
Daemach schrieb: Actually I think I may just modify the validator code to read out of a custom expando. It would be nice to be able to pass the attribute name to the validator engine directly though... Jorn? ==(sorry - I don't know how to do the fancy o ;) Heh, . Just copypaste the

Re: [jQuery] How to find some consequent elements

2007-03-04 Thread Dmitry Rudakov
Brice Burgess wrote: Dmitry, As an example, you can use var elements = $('input',$('#start')).not('#out'); I am sure others will have other suggestions. Bruce, I do not know ID or something else about these wrong inputs ... #out was just for example I should break this

[jQuery] A newbie question abotu jCarousel+jQuery

2007-03-04 Thread SaVaTaGe®
Hi; I am new in jQuery and also not well in JavaScript enough... I have been developing a modified version of jCarousel plugin of jQuery... I try to tell the problem with code: function loadItemHandler(carousel, start, last, available) { if (available) { // Trigger loaded

Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-04 Thread Daemach
Thanks for the info on the metadata plugin. Make sure to avoid any spaces... is exactly the kind of gotcha that makes using classes as a data repository so troublesome. While it is technically possible, mixing data types inside an attribute just feels like a bad practice to me. Jörn

[jQuery] Charting or plotting coming?

2007-03-04 Thread Bernardo Telles
Hello everyone, First off, great job so far on jQuery! I'm absolutely in love with it! Second, is there any chance a graphing, charting or plotting plugin is somewhere on the horizon? Something like PlotKit (http://www.liquidx.net/plotkit/) or Solutoire (http://solutoire.com/plotr/barexample/)

Re: [jQuery] Need some guidance...

2007-03-04 Thread Rick Faircloth
Alright... now I've got this working very well. The only problem I have now is validation. I normally submit a page back to itself, run some checks on the form values and throw up any errors messages before the form processes. However, with the function CalculateMortgage below, I can't do that.

Re: [jQuery] $(node).hasClass(...) function

2007-03-04 Thread John Resig
.hasClass() would just use .is() (or jQuery.filter) internally. Right now we're quickly gaining filesize without even adding new features (only dealing with bug fixes). For now, .is() will have to suit. Another option would be to add an entry for .hasClass() in the documentation, but in its

Re: [jQuery] Best practices for reattaching behaviours to dynamically loaded content?

2007-03-04 Thread Joan Piedra
I believe this is the easiest and simplest way to do it. On 3/4/07, Chris Domigan [EMAIL PROTECTED] wrote: I keep all my behaviours in separate functions. For instance if I had a fancy table widget I'd have a function called initTable() that contained the behaviour code. I'd call it initially

Re: [jQuery] ISO docs for $.fn ?

2007-03-04 Thread John Resig
Hi Kynn - Documentation on $.extend can be found here: http://docs.jquery.com/JavaScript and information on using $.fn.extend can be found here: http://docs.jquery.com/Plugins/Authoring In jQuery $.fn.extend is used in plugin authoring, adding new methods to jQuery. The relationship in jQuery

Re: [jQuery] Need some guidance...

2007-03-04 Thread Daemach
http://bassistance.de/jquery-plugins/jquery-plugin-validation/ :) Rick Faircloth wrote: Alright... now I've got this working very well. The only problem I have now is validation. I normally submit a page back to itself, run some checks on the form values and throw up any errors

Re: [jQuery] ISO docs for $.fn ?

2007-03-04 Thread John Resig
All of that being said, if you're just getting started with jQuery, you're probably not going to have to worry about any of this. I should say, though, that if you're already digging into Plugin development, then scratch my statement! --John ___

Re: [jQuery] ISO docs for $.fn ?

2007-03-04 Thread Kenneth
This info couldn't have been more timely for me, as soon as I started playing with jQuery my first reaction was to mix in my homebrew code. It was very easy, although now I'm trying to extend it and the distinctions you gave were great. One question though: is there a proper way to check for a