[jQuery] Textarea character count

2007-01-22 Thread Daemach
I am working on a form with a large number of text areas. I want to create a counter above each textarea that counts the characters as they type, turning red if they are over the limit or green if they are under. I am new to jquery and this seems like a natural application. For example, I want

Re: [jQuery] Textarea character count

2007-01-23 Thread Daemach
Thanks for the link. Here's what I came up with: $(document).ready(function(){ $('textarea').prepend('Current length:nbsp;span id='+ this.id +'_len'+this.value.length+'/spannbsp;characters').keypress( function() { $('#'+this.id + '_len').css('color',

Re: [jQuery] Textarea character count

2007-01-23 Thread Daemach
Interesting thought - wouldn't that prepend a new span block every time the contents changed though? Matt Grimm-2 wrote: What about this (untested): $('textarea').change( function() { $(this).prepend('Current length:nbsp;span id=' + this.id + '_len' + this.value.length +

[jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
I'm trying to sort out a problem with a selector and I'm not having much luck. I'm using firebug at the moment, but I'm not able to easily see what the selector is picking up, if anything. The first selector is here: $('#test :textarea').before('Current length:nbsp;span id='+ this.id

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
/spanspan class=count0/spanspan chars/' All with no extra IDs! On 1/23/07, Daemach [EMAIL PROTECTED] wrote: I'm trying to sort out a problem with a selector and I'm not having much luck. I'm using firebug at the moment, but I'm not able to easily see what the selector is picking up

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
('span.count').html(this.value.length) // ... }).before('spanCurrent length/spanspan class=count0/spanspan chars/' All with no extra IDs! On 1/23/07, Daemach [EMAIL PROTECTED] wrote: I'm trying to sort out a problem with a selector and I'm not having much luck. I'm using firebug

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
Excellent. And you're right. Straight from DOM :) Thanks very much for taking the time. I see where I was going wrong. Nate Cavanaugh wrote: *EDIT* I have a feeling you're either coming from Prototype, or straight from DOM scripting. I had the same preconceived notions when I first

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
*cheer* Exactly what I was asking for. Thank you very much. Michael Geary wrote: Is there a way to just return the jquery object (so I could see it in firebug's watch section) then pass it to another jquery function then join them all up when I know everything works?

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
Another fantastic tip. Thank you. Klaus Hartl wrote: Daemach wrote: I'm trying to sort out a problem with a selector and I'm not having much luck. I'm using firebug at the moment, but I'm not able to easily see what the selector is picking up, if anything. The first selector is here

Re: [jQuery] What tools should I use to troubleshoot jqueryproblems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
How, though, can you set a breakpoint inside of a function assignment and get anything useful out of it? I wish you could target an element in firebug, find the event that has the function you're working on, see the function in the script pane, set a breakpoint then start clicking so you could

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
! oops... I meant the id of the textarea.. not the form. On 1/23/07, Daemach [EMAIL PROTECTED] wrote: This or that...This or that... http://bboyflexi.imeem.com/music/j-_J-4tV/the_choice_is_yours/ The choice is yours! Is there a list of rules somewhere that define where

Re: [jQuery] What tools should I use to troubleshoot jqueryproblems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
By the way, I meant how would you do interactive debugging (with watches and such) inside something like a .keyup(function(){ buggy code that needs love }); or any other function assigning ...err...function. .each, for example. I tried setting breakpoints in the middle of all that but stepping

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
Please don't forget that a noob started this thread ;) How do I use that code block? Ⓙⓐⓚⓔ wrote: Mike, I don't like breaking the chains... I just insert a debug in the middle of the chain... I use this for my debug: jQuery.fn.debug = function(message) { return this.log('debug:'

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Daemach
(this.id.split(_)[1]))?'red':'green')); } ); } ); and the error I get is: jsO is not defined Ⓙⓐⓚⓔ wrote: you slap it up in any of your scripts... or a special one (just for debugging) then you can insert .debug(any label) anywhere along the chain! On 1/23/07, Daemach [EMAIL PROTECTED] wrote

Re: [jQuery] Dom Updates?

2007-01-24 Thread Daemach
I notice that if I use history to go back to a page with the alert box links prepared you are able to capture that and re-prepare the links. I am trying to solve a window/page focus/loading event issue. Would you mind posting how you're doing the binding that calls that function? tmcw wrote:

Re: [jQuery] Dom Updates?

2007-01-24 Thread Daemach
Nuts - I just saw the link to your source file. Oddly, the document.ready function isn't firing an alert on my page if I submit a form then hit the back button to get to my original page tmcw wrote: Thanks, I've got it fixed now, for the most part. Ha, except I think it's encountering

Re: [jQuery] Dom Updates?

2007-01-25 Thread Daemach
Must be, and I hear you :) tmcw wrote: Arg. Could it be a conflict of some kind? The callback problem is killing me. Daemach wrote: Nuts - I just saw the link to your source file. Oddly, the document.ready function isn't firing an alert on my page if I submit a form then hit

[jQuery] Best way to reload a table after an AJAX call? Guru's weigh in...

2007-02-09 Thread Daemach
I'm doing an ajax call and returning a recordset - think of it as a 2D Array. Given this 2D array, what do you think the fastest jQuery code might be to clear and reload the table? The recordset can be very large - 500 records for example. -- View this message in context:

[jQuery] selector gurus: how can I create list of all selected elements values.

2007-02-12 Thread Daemach
I know I can loop over all the options in a select object, checking to see if they are selected and add their values to an array if so. I would love to see how JQuery could tackle this though. In other words, I want to end up with an array of all of the selected object's values in one line of

Re: [jQuery] Best way to reload a table after an AJAX call? Guru's weigh in...

2007-02-12 Thread Daemach
Wow - not a single post? $(#tbodyID).empty(); handles the clearing quite nicely. Is $(#tbodyID).append('tr class=datatd align=left' the best way to reload it? -- View this message in context:

Re: [jQuery] selector gurus: how can I create list of all selected elements values.

2007-02-12 Thread Daemach
could use the form plugin if you wanted to do something more: http://www.malsup.com/jquery/form/ Karl Rudd On 2/13/07, Daemach [EMAIL PROTECTED] wrote: I know I can loop over all the options in a select object, checking to see if they are selected and add their values to an array if so

Re: [jQuery] selector gurus: how can I create list of all selected elements values.

2007-02-12 Thread Daemach
) } ); Note that each option should have a value attribute for this to work. Karl Rudd On 2/13/07, Daemach [EMAIL PROTECTED] wrote: I'm actually after an array of the values of those selected options. Like a coalesce over the values. I can do it with a loop, but I'm hoping there is a more

Re: [jQuery] selector gurus: how can I create list of all selected elements values.

2007-02-12 Thread Daemach
() { list.push( this.value ) } ); // do something with 'list' here }); Karl Rudd On 2/13/07, Daemach [EMAIL PROTECTED] wrote: OK that makes sense. Now how do I bind that function to the onChange event of the select list? Thanks btw - I am just trying to learn :) Karl Rudd wrote

Re: [jQuery] selector gurus: how can I create list of all selected elements values.

2007-02-13 Thread Daemach
info I suggest: http://docs.jquery.com/Core Or Visual jQuery: http://www.visualjquery.com/ Karl Rudd On 2/13/07, Daemach [EMAIL PROTECTED] wrote: Hmm - I haven't seen a selector used like that before - where do I find more information on how that works? Thanks again - I figured

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-13 Thread Daemach
Very cool idea. I can see this being used in several areas I'm working on though in some cases, because of size, JSON manipulation might work better. I noticed that Taconite intercepts ALL server calls at the moment - I'm using an outstanding ajax plugin for Cold Fusion called ajaxCFC and I'm

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-13 Thread Daemach
Perfect! malsup wrote: I noticed that Taconite intercepts ALL server calls at the moment - I'm using an outstanding ajax plugin for Cold Fusion called ajaxCFC and I'm wondering how they will play together. Is there a way to bypass Taconite on certain calls? Hi Daemach, Taconite

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-13 Thread Daemach
Sure - understood. I just like doing my processing in components in most cases because it feels a lot cleaner. Rey Bango-2 wrote: Hi Daemach, Welcome to the jQuery list. I haven't tried the Taconite plugin with AjaxCFC but keep in mind that AjaxCFC is just a wrapper for jQuery's Ajax

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
they will play together. Is there a way to bypass Taconite on certain calls? Hi Daemach, Taconite intercepts every call only so that it can peak at the response. If the response is an XML document and the root node is named 'taconite' then Taconite will process it as a command doc

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
Makes sense. Thanks much! Rey Bango-2 wrote: Daemach, I spoke to Rob last night and he said he was going to work on allowing you to return XML from AjaxCFC. If this resolves your issue, then I think it'd be a better solution than patching the taconite plugin. This really seems

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
Thanks much Mike :) If I know that I'm going to have to pass the XML to taconite does it make sense to keep intercepting the ajax calls? Or is the performance hit so negligible (even on large documents) so as not to be noticible? malsup wrote: Well, after working with this I've found that

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
things. Mike's quick turnaround will just let me start testing more quickly until Rob has a chance to work through the changes. Rey Bango-2 wrote: Daemach, I spoke to Rob last night and he said he was going to work on allowing you to return XML from AjaxCFC. If this resolves your issue

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
You rock ;) Thank you very much for your excellent work and fast service! malsup wrote: Mike's quick turnaround will just let me start testing more quickly until Rob has a chance to work through the changes. Daemach, I've uploaded a new version to: http://www.malsup.com/jquery

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
No problem at all. It did process the xml successfully, though I'm getting the following error in firebug: $.taconte has no properties [Break on this error] $.httpData = b ? $.taconite.detect : $.taconte._httpData; jquery.taconite.j... (line 76) [taconite] [AJAX response] content-type:

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
Spoiled I Am! And hey, you're just as good Rey ;) Rey Bango-2 wrote: Damn Mike, you're gonna spoil Daemach!! ;) How come *I* don't get that level of service from ya?!!? ;) Rey... Mike Alsup wrote: You rock ;) Thank you very much for your excellent work and fast service! Just

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-14 Thread Daemach
It's working great Mike, thank you. For my testing I'm using it to load a (very large) table. Now, what is the best way to run a command after taconite has finished its work? I'm using the tablesorter plugin and it needs to do it's work once the table has completed rebuilding. malsup

[jQuery] Gmail-style updates

2007-02-21 Thread Daemach
I have a form with which I want to do ajax updates as they type. If they stop typing for more than 2 seconds it should update the field. If the field blurs before the 2 seconds are up it should update the field. I have the ajax side of it worked out, and currently the updates work properly

Re: [jQuery] Gmail-style updates

2007-02-21 Thread Daemach
).css(backgroundColor,#ddFFdd);}}); $(this).css(backgroundColor,#FF); }); }); }); Jörn Zaefferer wrote: Daemach schrieb: I have a form with which I want to do ajax updates as they type. If they stop typing for more than 2 seconds

Re: [jQuery] Gmail-style updates

2007-02-21 Thread Daemach
== 'blur') $(this).stop(); // Do stuff } $(whatever).blur(fn).keyup(function() { $(this).once(2000,fn); }).keydown(function() { $(this).stop(); }); Hope that helps. -blair Daemach wrote: I have a form with which I want to do ajax updates as they type. If they stop typing

Re: [jQuery] using end(), or storing queries as variables

2007-02-21 Thread Daemach
This is untested, but maybe it will get you on the right path. $('div.A//input:checkbox').each(function(){} $(this).click(function(){ $(this).siblings(input:text).attr(value,function() {return (this.checked) ? message1 : message2 } ); }); ); bdanchilla wrote:

Re: [jQuery] using end(), or storing queries as variables

2007-02-21 Thread Daemach
OK I rewrote and tested it with your pseudocode. This is kind of loose, but it does work. $('div.A/input:checkbox').each(function(){ $(this).click(function(){ $(this).siblings(input:text).attr(value,function() {return

Re: [jQuery] Gmail-style updates

2007-02-21 Thread Daemach
! Cheers 2007/2/21, Daemach [EMAIL PROTECTED]: In what context does the timer run? Each field will have its own timer/ajax function. If I have multiple text fields, and people are typing and tabbing through them quickly the updates still need to happen reliably. Currently it works like

Re: [jQuery] Gmail-style updates

2007-02-21 Thread Daemach
later on by that function. It's one of the coolest and most powerful features of JavaScript. Hope all that helped. -blair Daemach wrote: Would you mind posting a link to your timer plugin? If I'm going to use an external function I will need to pass additional parameters. How do you force

Re: [jQuery] Gmail-style updates

2007-02-22 Thread Daemach
it inside the fn function I created. Any variables in scope when you define your function can be accessed later on by that function. It's one of the coolest and most powerful features of JavaScript. Hope all that helped. -blair Daemach wrote: Would you mind posting a link to your timer plugin

Re: [jQuery] Gmail-style updates

2007-02-22 Thread Daemach
Grrr Nabble is tricky ;) Try this thread: http://www.nabble.com/forum/ViewPost.jtp?post=9089663framed=y Blair Mitchelmore-2 wrote: Could I maybe see the code? It's hard to customize something to a situation I nothing about. -blair Daemach wrote: OK I played around

Re: [jQuery] Gmail-style updates

2007-02-22 Thread Daemach
); } }); $(this).css(backgroundColor,#FF); } $(whatever).blur(fn).keyup(function() { $(this).once(2000,fn); }).keydown(function() { $(this).stop(); }); Let me know if that works. -blair Daemach wrote: Grrr Nabble is tricky ;) Try this thread

Re: [jQuery] Gmail-style updates

2007-02-22 Thread Daemach
to the DOM element in question. -blair Daemach wrote: I appreciate you taking the time to lay this out. I'm really just trying to understand more than anything. Obviously this isn't the right forum to be asking questions about closures specifically, but if I can just get a grip

[jQuery] How can I create a (style) .class dynamically?

2007-02-22 Thread Daemach
I'm working on a plugin that allows a user to specify style classes to be applied to an element before and after an action is complete. I need to set defaults, though. How can I create these classes dynamically without assuming there is an existing stylesheet or style block in the document?

Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-22 Thread Daemach
The best way to do ajax with Cold Fusion is ajaxCFC which encapsulates all the magic into simple calls, including serialization/deserialization. This means you can send form data directly to a CFC method and return a recordset/array/structure/(soon xml) in JSON or WDDX formatted and it will be

Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-22 Thread Daemach
By the way, Mike Alsup just released a new plugin for jQuery called taconite that blends some of the best of CF and jQuery. Traditional ajax programming, for more complex operations such as building tables, interacting with DOM elements, etc. requires quite a bit of work and occasionally multiple

Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-22 Thread Daemach
whip something up - let me know. Rey Bango-2 wrote: Daemach, I'd be interested in seeing a sample of AjaxCFC for jQuery using taconite. Its something that I'm sure Rob Gonda would love to include in his sample apps for AjaxCFC. Can you email me a sample? Rey Daemach wrote

Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-22 Thread Daemach
You have corrected agruments[0] to read arguments[0] right? Rick Faircloth wrote: Duh. should have realized that. No errors now, but still no Hello World.. ??? Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Thursday, February

Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-22 Thread Daemach
a little) over my head... Once I get the simple stuff down, I'm sure it'll be good. Thanks for the tip! Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daemach Sent: Thursday, February 22, 2007 11:25 PM To: discuss@jquery.com Subject: Re

Re: [jQuery] How can I create a (style) .class dynamically?

2007-02-23 Thread Daemach
This worked forff2 - I was using #head when I tried this earlier ;) bmsterling wrote: well, you can append to the head, example: http://ov-staging.informationexperts.com/e.htm script type=text/javascript $(document).ready(function(){

Re: [jQuery] How can I create a (style) .class dynamically?

2007-02-23 Thread Daemach
Thanks Karl - Karl Rudd wrote: Under IE you can use createStyleSheet() and cssText: var s = document.createStyleSheet().cssText = '.something { color: red }'; More info can be found here: http://www.quirksmode.org/dom/changess.html Karl On 2/23/07, Benjamin Sterling

Re: [jQuery] How can I create a (style) .class dynamically?

2007-02-23 Thread Daemach
Thanks! Sam Collett wrote: On 23/02/07, Benjamin Sterling [EMAIL PROTECTED] wrote: well, you can append to the head, example: http://ov-staging.informationexperts.com/e.htm script type=text/javascript $(document).ready(function(){ $('head').append('stylebody{background:#000;}/style');

Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Daemach
always been able to do everything I've needed. However, now I'm finding myself so far behind functionally that I can't discuss programming solutions with other programmers. Yes, Daemach has been helping me, and so has Michael Carluen. He sent detailed code, but I haven't been able to get

Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Daemach
also mixed dumping straight JS and using the eval function to run some jQuery to show the flexibility. Rey Bango-2 wrote: Daemach, I'd be interested in seeing a sample of AjaxCFC for jQuery using taconite. Its something that I'm sure Rob Gonda would love to include in his sample apps

[jQuery] How do I grab just the selected objects out of the jquery object?

2007-02-23 Thread Daemach
I got burned by a debug plugin last night so I'm modifying a great object dumper to run as a jquery plugin. Dumping the entire jquery object is too much and not useful for this application - I only want the objects in the current selection set. If I do: var tmp = $(p); and there are 2 p

[jQuery] How do I check for the existence of an object?

2007-02-23 Thread Daemach
I want to create a global object to store some settings in, but only if it doesn't exist already. If it doesn't exist and I try to use something like if (myObj == 'undefined') myObj = new Object(); I get an error saying the object is not defined. Yeah I should know stuff like this ;) -- View

Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach
it can be referenced elsewhere: hence self = this followed by (inside the anonymous function) fn.apply(self). -blair Daemach wrote: Yeah that worked. I'm not certain I understand why though :) It does make sense that the closure would actually have to be created inside the event handler

Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach
'this' is likely to be the window object. So you have to save a reference to the 'this' you want to use as a separate variable so it can be referenced elsewhere: hence self = this followed by (inside the anonymous function) fn.apply(self). -blair Daemach wrote: Yeah that worked. I'm not certain I

Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach
){} }); }); Daemach wrote: This last example helped. I think I have it now :) jQuery.fn.autoSave = function(fcn,settings) { settings = jQuery.extend({ delay: 600, beforeClass: asBefore, afterClass: asAfter }, settings

Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach
to the 'this' you want to use as a separate variable so it can be referenced elsewhere: hence self = this followed by (inside the anonymous function) fn.apply(self). -blair Daemach wrote: Yeah that worked. I'm not certain I understand why though :) It does make sense that the closure

Re: [jQuery] How do I check for the existence of an object?

2007-02-23 Thread Daemach
Thanks all! Daemach wrote: I want to create a global object to store some settings in, but only if it doesn't exist already. If it doesn't exist and I try to use something like if (myObj == 'undefined') myObj = new Object(); I get an error saying the object is not defined. Yeah I

Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach
Daemach wrote: Bleh. When I pass a function in via the plugin's method with the below code, it doesn't recognize the this scope anymore. Am I not passing the function in correctly? $('input:[EMAIL PROTECTED]').each( function() { $(this).autoSave(function(){ $.AjaxCFC

[jQuery] Capturing an event when an input value is changed programmatically

2007-02-28 Thread Daemach
I'm using the Xin calendar in one of my forms. It's a great little DHTML calendar, but I need to capture an event when the value is changed programmatically so I can do something with the value. I've tried firing the event manually using element.onchange(); but that doesn't seem to work - at

Re: [jQuery] Need some guidance...

2007-02-28 Thread Daemach
Hi Rick - This is one of those things I would use ajaxCFC for since it handles serialization automatically. The idea here is that you need to serialize the values of your form fields, send them to the server, deserialize, calculate and put the results into some kind of structure which gets

Re: [jQuery] Need some guidance...

2007-02-28 Thread Daemach
: Daemach, did you figure out the config information for AjaxCFC yourself, or is it documented somewhere? I looked in the docs that download with AjaxCFC but I couldn't find any config information. There are so many js files in there, I didn't know which ones to include. -- Josh

Re: [jQuery] Need some guidance...

2007-02-28 Thread Daemach
wrote: Daemach, I suppose it's just for the sake of education or something, but putting the return value in a structure and passing it back seems like overkill to me. Since there can be only one result from the calculation, just pass it back as a string or numeric... no need

Re: [jQuery] Need some guidance...

2007-02-28 Thread Daemach
BTW, since you don't need a deep copy of the arguments structure in the cfc you can just do cfset my = arguments to simplify. Christopher Jordan wrote: Rick, First will you be using Rob Gonda's AjaxCFC for jQuery? I'd recommend it, even though it's still in alpha3. I'm using it on a

Re: [jQuery] Need some guidance...

2007-02-28 Thread Daemach
I'm sorry, I just noticed that you're using serialization = string. I am used to using json or wddx to pass complex objects back and forth so they arrive as native objects. Christopher Jordan wrote: Rick, First will you be using Rob Gonda's AjaxCFC for jQuery? I'd recommend it, even

Re: [jQuery] Need some guidance...

2007-02-28 Thread Daemach
/table /form Page from which you are getting the data: cfsetting showdebugoutput=nocfset calc = form.Principal * form.InterestRate * form.Duration cfcontent reset=yescfoutput#DollarFormat(calc)#/cfoutput Rick Faircloth wrote: Hi, Daemach... Thanks for the guidance

Re: [jQuery] Need some guidance...

2007-03-01 Thread Daemach
? Chris Daemach wrote: BTW, since you don't need a deep copy of the arguments structure in the cfc you can just do cfset my = arguments to simplify. Christopher Jordan wrote: Rick, First will you be using Rob Gonda's AjaxCFC for jQuery? I'd recommend it, even though it's still

Re: [jQuery] jQuery toXML

2007-03-01 Thread Daemach
Another option for xml-compliant interlanguage data exchange is WDDX, which can be found at http://www.openwddx.org. Just download the SDK which contains prebuilt objects/code/functions in addition to substantial documentation for serializing and deserializing to and from most languages that are

[jQuery] slideUp not collapsing tbody?

2007-03-02 Thread Daemach
I'm trying to build a form that needs to show or hide a portion depending on the user's previous input. I'm trying to use slideUp/slideDown to make the transition but it's not working - are there any gotchas in trying to interact with tbody vs div? Is it not possible to use these effects with

[jQuery] Can multiple functions be attached to the same event?

2007-03-02 Thread Daemach
Or does using .click() twice on the same element overwrite the first binding? -- View this message in context: http://www.nabble.com/Can-multiple-functions-be-attached-to-the-same-event--tf3336878.html#a9280393 Sent from the JQuery mailing list archive at Nabble.com.

Re: [jQuery] Bind event to radio button group

2007-03-02 Thread Daemach
You can do this with the taconite plugin, which allows you to pass HTML back from the server and insert it into another element on the page. After you've done all your updates, if you include an eval block at the end you can put your script there rebind everything.

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

2007-03-02 Thread Daemach
This is more philosophical than anything, but I was just looking over the metadata, metaobjects and validation plugin and I keep coming back to a question of what is the least of all the evils. -- If I add metadata to a class attribute, I risk messing with CSS - classes are for styles. -- If I

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

2007-03-03 Thread Daemach
in an attribute it normally uses for styles or data in extra attributes that it doesn't know or care about? Klaus Hartl wrote: Daemach schrieb: -- If I add metadata to a class attribute, I risk messing with CSS - classes are for styles. That is a common misunderstanding. Consider the HTML spec

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

2007-03-03 Thread Daemach
with it then! the validators don't care what you do with the dom, just the html! On 3/3/07, Daemach [EMAIL PROTECTED] wrote: I'm assuming you mean that you're comfortable adding an extra attribute to an element - is that correct? Glen Lipka wrote: I'm quoting Mike Alsup from the jQuery

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)

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

2007-03-04 Thread Daemach
Zaefferer wrote: 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

Re: [jQuery] Need some guidance...

2007-03-04 Thread Daemach
are getting the data: cfsetting showdebugoutput=nocfset calc = form.Principal * form.InterestRate * form.Duration cfcontent reset=yescfoutput#DollarFormat(calc)#/cfoutput Rick Faircloth wrote: Hi, Daemach... Thanks for the guidance, but unfortunately, I'm still using CF 4.5, so

[jQuery] Conditional validation - validator plugin.

2007-03-05 Thread Daemach
I need a way to make a field required based on some other condition. Consider the case of a multi-select for Job Type: Baker Janitor Fisherman ... Other (please describe) If someone selects other the description field should be required, otherwise it's hidden. {required:function(){return

[jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
I, like probably everyone else on this list, is anxiously awaiting the port of EXT to jQuery. Is there a timeline for this? I am about ready to rebuild one of my clients sites and would very much like to use the ext components as a base. -- View this message in context:

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
On 3/5/07, Daemach [EMAIL PROTECTED] wrote: I, like probably everyone else on this list, is anxiously awaiting the port of EXT to jQuery. Is there a timeline for this? I am about ready to rebuild one of my clients sites and would very much like to use the ext components as a base. -- View

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
handle the demanding animations that Ext requires. But yeah, you can begin using it now! We were waiting for Jack to make an official announcement, but it doesn't seem to have come out yet - so we may just announce this officially, anyway. --John On 3/5/07, Daemach [EMAIL PROTECTED] wrote: I

Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach
On 3/5/07, Daemach [EMAIL PROTECTED] wrote: I, like probably everyone else on this list, is anxiously awaiting the port of EXT to jQuery. Is there a timeline for this? I am about ready to rebuild one of my clients sites and would very much like to use the ext components as a base

Re: [jQuery] How to access contents of frames/iframes with jQuery?

2007-03-05 Thread Daemach
I'm somewhat noobish, but perhaps you could use a selector with a context? $(#some div, #frameID)... Kynn Jones wrote: Hi again! (Second question in as many days... I guess I'm the overeager noob. :) ) Last night I watched John Resig's screencast Hacking Digg with Firebug and

Re: [jQuery] Help with .each

2007-03-05 Thread Daemach
You might try: $(a).not($([EMAIL PROTECTED])).each(function() {$(this).after(divpLorem Ipsum/p/div);}); Yansky wrote: I'm trying to insert a div after all a elements that don't link to my site. My script is currently working like this: var getLinks = $(a).not($([EMAIL PROTECTED]));

Re: [jQuery] Help with .each

2007-03-05 Thread Daemach
wrote: Thanks Daemach John. Both examples work fine. :) Just one last thing, I'm still a bit fuzzy on the difference between .after() and insertAfter(). I've gone through the documentation a number of times, but they still seem to do the same thing (albeit the latter in reverse

Re: [jQuery] Iterating over Arrays and $(this)

2007-03-05 Thread Daemach
Use the each function to apply the click handler to each element in the selector's array. $(p).each(function(){ click function goes here }); diddymao wrote: Hi all. I'm just starting out on JQuery and I've it hit a minor confusion. I have the following HTML: p id=one/p p id=two/p

[jQuery] What is the difference in functionality between bind() and click/blur/keyup/etc()?

2007-03-05 Thread Daemach
-- View this message in context: http://www.nabble.com/What-is-the-difference-in-functionality-between-bind%28%29-and-click-blur-keyup-etc%28%29--tf3352982.html#a9324408 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing

Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?

2007-03-07 Thread Daemach
Have you tried setting breakpoints and viewing your error container in the dom to see if anything is happening? Rick Faircloth wrote: Hi, all. I've been trying to get Jorn's (bassistance.de) Validation plugin working correctly for 3 days now. Firebug doesn't complain of any errors.

Re: [jQuery] Anybody able to successfully run Validation plugin on IE 7?

2007-03-07 Thread Daemach
To test selectors you can also drop $(input.myclass) into the firebug console and it will show you what it found. console.log($(input.myclass)); inside your code does the same thing - great for complex anonymous functions. Josh Nathanson-2 wrote: Anybody able to successfully run Validation

Re: [jQuery] How to document a plugin

2007-03-07 Thread Daemach
A standard for listing dependencies would be handy too... Beren wrote: Hi all, I'm about to finish the plugin I've been working for lately and can't wait to release, but this time I would like to document it properly to ease it's use and upgrading. I'm quite anal about this subject yet

Re: [jQuery] NEWS: John Resig Discusses Future Proofing JavaScript Libraries

2007-03-08 Thread Daemach
Good read. A bit further down in the blog he mentioned a push to add browser-level JSON parsing for speed and security. If you are going to Max2007 or cf.objective() perhaps you and Rob could bend Adobe's ear to implement a cfjson tag that emulates cfwddx, including cf2js where it would dump a

[jQuery] Matt Krause - table plugins

2007-03-08 Thread Daemach
Matt, are you reading this list? I am anxiously awaiting the jQuery port of your table filtering/sorting functionality. Is this coming soon? The demos on your site are very very fast and would fit perfectly into a project I'm about to start. -- View this message in context:

[jQuery] Matt Krause

2007-03-08 Thread Daemach
-- View this message in context: http://www.nabble.com/Matt-Krause-tf3373126.html#a9386627 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Matt Krause

2007-03-08 Thread Daemach
Disregard this please - time to get a new keyboard ;) -- View this message in context: http://www.nabble.com/Matt-Krause-tf3373126.html#a9386736 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com

  1   2   >