[jQuery] jQuery Accoridion - Dynamically Adding Content to it

2009-08-31 Thread #micah
Lets say you have the standard jQuery UI Accordion markup-- such as div id=wrapper h3a href=#Header Text/a/h3 div pLorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ligula risus, imperdiet ac malesuada at, vestibulum in felis. Ut ornare ullamcorper mattis. In eu enim at urna

[jQuery] Re: Validation question

2009-08-31 Thread #micah
only perform the post if the error message div isnt there, or has no text in it if( !($('#divSteps3')==undefined) $('div.error-message').text ().length0) ) something like that On Aug 31, 1:53 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I have this script

[jQuery] Re: Validation question

2009-08-31 Thread #micah
whoops! instead of '#divSteps3' i meant 'div.error-message' next time i should proofread On Aug 31, 3:34 pm, #micah micah.a.sm...@gmail.com wrote: only perform the post if the error message div isnt there, or has no text in it if( !($('#divSteps3')==undefined) $('div.error-message

[jQuery] Re: Find reverse? Parent?

2009-08-31 Thread #micah
maybe $(this).prev(.picture).append( On Aug 31, 2:36 pm, Jottae smallj...@gmail.com wrote: Hi guys. I am wanting to click the link with the class test the function append href taking the (already up and running) appears in the picture div, but only in the same div lol where there is

[jQuery] Re: JQuery Unable to Read Margins When Set to Auto?

2009-08-31 Thread #micah
when i have something's css set to auto, and try to get its value from within FF3.5, mine returns nothing-- not even 0px. On Aug 31, 3:33 pm, phpn1b alv...@gmail.com wrote: anyone? On Aug 25, 4:46 pm, phpn1b alv...@gmail.com wrote: I have a simple test page with a div where the left and

[jQuery] jQuery and the 'this' keyword

2009-07-30 Thread #micah
I've created a javascript object like so: var myObj={ //internally used OtherFunction: function(){ alert('hi');}, //externally used EditInfo: function(){ this.OtherFunction(); } }; if i bind EditInfo to a button, like so:

[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread #micah
in rebirth or not, there isn't anyone who doesn't appreciate kindness and compassion..'   From:       #micah micah.a.sm...@gmail.com                                                                                 To:         jQuery (English) jquery-en@googlegroups.com

[jQuery] Re: No event on node after add node.

2009-05-19 Thread #micah
Is the extra '-' in span id=item-2-1 the issue? Should it be span id=item 2-1? How do you say maybe in french? :) On May 19, 9:00 am, mrkeyser mathieu.develo...@gmail.com wrote: Hello, I'm french, sorry for my English, thank you google translation! ;) I'd like to make ajax calls to load

[jQuery] Re: dot separated id

2008-10-16 Thread micah
double backslashes are the short term fix, but remember for the long term that dots are illegal in ID's and will cause your page to not validate. see http://www.w3.org/TR/html401/types.html#type-name for reference. -micah On Oct 16, 11:02 am, andrazk [EMAIL PROTECTED] wrote: Hi! We're

[jQuery] Re: Help please on Using ajax url as ID

2008-09-08 Thread micah
URLs contain characters that aren't allowed in IDs. the spec (http:// www.w3.org/TR/html401/types.html#type-name) says that IDs must use only a-Z, 0-9, _, : and . -micah On Sep 8, 9:11 am, jeremyBass [EMAIL PROTECTED] wrote: Caught a few errors... current code... $(#replaceME).append('div

[jQuery] Re: jQuery selector works with FF and not on IE

2008-08-29 Thread micah
you can do $(':input:visible') instead. i've found that :not can be picky at times. could be totally imagined on my part, but i usually use $.not() instead, despite the extra traversal of the nodeset involved. -micah On Aug 29, 10:19 am, anuradha k [EMAIL PROTECTED] wrote: Hi All I am

[jQuery] Re: Multiple AJAX calls problem

2008-08-29 Thread micah
a common trick i use to get around situations where an event may be bound twice is to add an unbind into the chain. like so: var kd = function(event) { alert(event.keyCode); } $().unbind('keydown', kd).keydown(kd); it's a bit quick and dirty, but it works. -micah On Aug 29, 9:12 am, me

[jQuery] Re: Repeating a function call on hover/mouseover/etc

2008-08-29 Thread micah
times as you can, as fast as you can possibly call it, which isn't really cpu-friendly ;) try this instead: var int = null; $('#element').hover(function() { int = setInterval(someFunc, 100); }, function() { clearInterval(int); }); -micah On Aug 29, 2:00 pm, Leanan [EMAIL PROTECTED] wrote

[jQuery] jQuery.Post behavior for JSON

2008-05-20 Thread Micah Sutton
I've been playing with JSON a while, and noticed something odd. when you make a $.getJSON call, you get a nice happy object returned. However, when calling $.post, the returned data is never evaluated. While it is a simple task to make this into a happy little object, it seems to me that the