[jQuery] Using addClass to Highlight Errors

2009-09-24 Thread s.ross
I have what I'm certain amounts to a CSS misunderstanding on my part. Here's the reduced problem: CSS input[type='text'], textarea { background-color: #2c2c2c; color: white; } .warning { background-color: #851728; } .error { background-color: #8D580F; } HTML body input

[jQuery] Re: Using addClass to Highlight Errors

2009-09-24 Thread s.ross
On Sep 24, 12:26 pm, Bertilo Wennergren berti...@gmail.com wrote: s.ross wrote: I have what I'm certain amounts to a CSS misunderstanding on my part. Here's the reduced problem: CSS input[type='text'], textarea {   background-color: #2c2c2c;   color: white; } .warning

[jQuery] :visible change

2009-03-18 Thread s.ross
I'm stumped on a 1.3.2 change. Here is the scenario: // Node tree: // - div.groupItem // - div.itemHeader // - a.closeEl // - div.itemContent // - All the enclosed html // // When the closeEl node is clicked, act on its parent .groupItem's //

[jQuery] jQ Validate Remote on blur()?

2009-03-01 Thread s.ross
I'm very happy with jQuery Validate, but am having difficulty with the following scenario: rules: user[email]: { required: true, email: true, remote: '/signups/unique_email?lf=' + $ ('.radios[checked]').attr('id') }, As you can see, this

[jQuery] Re: jQ Validate Remote on blur()?

2009-03-01 Thread s.ross
(element) { if ( (element.name in this.submitted || element == this.lastElement) element.name != user[email] ) { this.element(element); } } Let me know if that works for you. Jörn On Sun, Mar 1, 2009 at 10:58 PM, s.ross cwdi...@gmail.com wrote: I'm very happy

[jQuery] Using trigger for click event doesn't call click functions

2009-02-28 Thread s.ross
are appreciated. http://pastie.org/402954 Thanks, s.ross

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-20 Thread s.ross
); } and check if you have the responseXML property (you can try to use it's documentElement directly also). - ricardo On Feb 20, 3:59 am, s.ross cwdi...@gmail.com wrote: Thanks for the reply. Here are  a few results from the callback function: data = [object Document] data.find('category

[jQuery] Using jQuery to Parse XML in AIR

2009-02-19 Thread s.ross
I'm trying to get Adobe(TM)(R) AIR to work with jQuery kinda friendly- like. I'm sending off an xml-rpc request as follows: this.packageRequest = function(method, secure, params, callback) { var msg = new

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-19 Thread s.ross
yields an unrecognized expression syntax exception. How did you come to use $($(data).text()); and what happens if you use the other method? On Feb 19, 8:29 pm, s.ross cwdi...@gmail.com wrote: I'm trying to get Adobe(TM)(R) AIR to work with jQuery kinda friendly- like. I'm sending off an xml-rpc

[jQuery] jquery.ufo.js: Really Puzzling IE Issue -- Help

2008-10-14 Thread s.ross
Shame on me, developing on a Mac and ignoring IE. Now I have to go back and figure out all the IE issues. But here's one where Google has been zero help to me, so I'm appealing to the jQuery community. I'm using jquery.ufo.js to unobtrusively embed Flash objects. Works great on all

[jQuery] Ajax and Rails

2008-08-26 Thread s.ross
I'm totally sure this has been asked and answered 1_000_000 times, but Google has let me down on this one. I'm using a link to trigger an ajax call that create a row in the database. On successful completion, a row in the DOM is appended. Getting around to the question (you knew there

[jQuery] Replacing html in ajax success callback?

2008-07-14 Thread s.ross
Hello-- I have what seems a simple problem, but it's somehow not working out. Here's the problem: $(.pastebinLink a).livequery(function(){ $(this).bind('click', function(el){ $.ajax({ url: this.href, type: 'post', success: function(results, status)

[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins

2008-04-28 Thread s.ross
On Apr 28, 2008, at 10:47 AM, Jörn Zaefferer wrote: s.ross schrieb: The files are available -- without git -- on github. If you don't want to clone them, just browse to them and download what you want. http://github.com/sxross/jquery_plugins/tree/master Does that work ok? That works

[jQuery] [ANN] Simple focusFirst and ajaxLinkBind Plugins

2008-04-27 Thread s.ross
I just posted a couple of plugins in a git repo at: git://github.com/sxross/jquery_plugins.git To grab them, just: git-clone git://github.com/sxross/jquery_plugins.git They are focusFirstInput and ajaxLinkBind. You can read about the at: http://calicowebdev/blog/show/20 In a nutshell, they

[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins

2008-04-27 Thread s.ross
The files are available -- without git -- on github. If you don't want to clone them, just browse to them and download what you want. http://github.com/sxross/jquery_plugins/tree/master Does that work ok? On Apr 27, 2008, at 3:56 PM, Jörn Zaefferer wrote: s.ross schrieb: Comments

[jQuery] Re: [ANN] Simple focusFirst and ajaxLinkBind Plugins

2008-04-27 Thread s.ross
Righto. Also, there might be some benefit in wrapping w/ (function($) { // stuff })(jQuery); Yes? I have a couple of extend's to do that will make things work much more nicely. Thx for the comments. On Apr 27, 2008, at 5:23 PM, Scott Trudeau wrote: To be a little more specific, for

[jQuery] Re: Acessing Json Data

2008-04-24 Thread s.ross
Try: alert(data['a']); On Apr 24, 2008, at 9:32 AM, Ygor wrote: Hi, I'm sending an array encoded with Json in my PHP code server-side, but when I try to fetch it in JQuery, I don't know what is the type of the object I'm dealing with, and I can't get any information of it. I tried to

[jQuery] Re: Ajax Replacing HTML Using JSON

2008-04-23 Thread s.ross
it matched the same selector, was not hooked up to the event handler. The solution was to bind the event handler to the span only, then drill down for the 'a' element in the ajaxBind function. In case anyone else is hunting down a similar odd case. :) On Apr 22, 3:51 pm, s.ross [EMAIL

[jQuery] Ajax Replacing HTML Using JSON

2008-04-22 Thread s.ross
I'm having a strange problem using $.ajax. Better to illustrate with the code: function ajaxBind(trigger) { trigger.click(function(){ $.ajax({ type: POST, url: $(this).attr('href'), data: { 'authenticity_token': $ ('input[name=authenticity_token]').val() },

[jQuery] Updating a Textarea

2008-04-15 Thread s.ross
I'm a tentative switcher from Prototype. Not sure yet... I'm porting one app to see how it suits me. One of the frequent things this app does is work with text in a textarea. Let's say the id of the textarea is inputbox ... I find myself writing code like: $('#inputbox')[0].value =

[jQuery] n00b q

2008-01-10 Thread s.ross
This is probably one of those asked-and-answered questions, but I didn't turn it up in a Google search, doc search, or search of this group. Here it is: I want to click a link to slide a div down and the next click slide it back up. Toggle with an effect. Because I am not triggering the effect

[jQuery] Re: n00b q

2008-01-10 Thread s.ross
On Jan 10, 2008, at 6:28 AM, Karl Swedberg wrote: On Jan 10, 2008, at 1:03 AM, s.ross wrote: This is probably one of those asked-and-answered questions, but I didn't turn it up in a Google search, doc search, or search of this group. Here it is: I want to click a link to slide a div down

[jQuery] Re: n00b q

2008-01-10 Thread s.ross
: You want to use the toggle method, which takes two functions as arguments. Example: $(#link).toggle( function() { $(#div).css(color,red); }, function() { $(#div).css(color,blue); } ); -- Josh - Original Message - From: s.ross [EMAIL PROTECTED] To: jquery-en@googlegroups.com