[jQuery] Re: Strip element from inside object

2008-11-21 Thread briandichiara
Ok, I think I got it: var the_val = ob.clone().find("span").remove(); alert(the_val.html()); On Nov 22, 12:12 am, briandichiara <[EMAIL PROTECTED]> wrote: > I'm returning a jQuery object that has class="type"> inside as .html(). > > So how do i get r

[jQuery] Strip element from inside object

2008-11-21 Thread briandichiara
I'm returning a jQuery object that has inside as .html(). So how do i get rid of the span class="type" from the object and then place the rest of the HTML into another element? Example: function otherFunction(){ doFunction($(myObj)); } function doFunction(ob){ alert(ob.html()); //

[jQuery] Re: Which Event to use with Sortables and connectWith?

2008-11-10 Thread briandichiara
This is what I have right now, which has been revised a bit, but i'm sure there's a smarter way: function sortAction(e,ui,a){ var proceed = true; var el_id = $(ui.item).attr('id'); id = el_id.replace("ele-",""); var params = "action=update_menu_item&jsa="+a+"&item_

[jQuery] Re: Trouble with "this"

2008-11-10 Thread briandichiara
In the case you are trying to use it, the first instance of "this" is referring to the root function object. this.hello is an item inside that object. when you create the other 2 functions, "this" no longer means what it did originally. If you want to pass the information of "this", you need to re

[jQuery] Which Event to use with Sortables and connectWith?

2008-11-10 Thread briandichiara
I am having trouble figuring out the difference between all of these events and need to know the best one to use. I'm using 2 lists and the ability to drag back and forth between them using connectWith. When an item goes from the left list to the right list, I have a receive function that simply m

[jQuery] Nested Sortables with 2 Lists

2008-11-10 Thread briandichiara
I'm trying to make a Menu builder and having trouble finding a plugin to do what I need. On the left is the current menu. It's a nested list. On the right is a list of pages not appearing in the menu. I need 1. The ability to sort the menu on the left in a nested manner, so items can contain sub-

[jQuery] Sliding effect not working

2008-11-10 Thread briandichiara
What could be the problem here? I am using the easing plugin to have a panel slide up out of sight, or down into sight and it was working before, but now it's not. The panel just quickly goes to the desired position with no effects. Would other elements on the page affect this? I am using the late

[jQuery] Re: Executing Scripts returned by AJAX Request

2008-11-06 Thread briandichiara
Well, I was actually looking for a more specific answer, however I did find out through trial and error that it works sort of like this: $.ajax({ success: function(response){ if(response.indexOf('

[jQuery] Executing Scripts returned by AJAX Request

2008-11-06 Thread briandichiara
Hi, I would like my AJAX Request to function like this: if empty, all good, proceed. if scripts, not good, execute the script. if no scripts, but something in response, alert the text (some kind of error). Reason I want this is when the user tries to execute an action that requires them to be l

[jQuery] Re: Highlight Table Row with Animate

2008-06-27 Thread briandichiara
e.js > > Here's the documentation: > > http://docs.jquery.com/UI/Effects/ColorAnimations > > - Richard > > Richard D. Worthhttp://rdworth.org/ > > On Fri, Jun 20, 2008 at 11:18 AM, briandichiara <[EMAIL PROTECTED]> > wrote: > > > > > At the end of my

[jQuery] Highlight Table Row with Animate

2008-06-20 Thread briandichiara
At the end of my Ajax request, I'd like to highlight a table row, so to speak. Why doesn't this work: id = 5 success: function(e){ $("#address"+id).css("background-color","#F9FFCF"); $("#address"+id).animate({backgroundColor:'#FFF'}, 800); } The first line will work, but the 2nd

[jQuery] Re: Getting Parent Element using "this"

2008-05-09 Thread briandichiara
. > > > -- Josh > > > - Original Message - > > From: "briandichiara" <[EMAIL PROTECTED]> > > To: "jQuery (English)" > > Sent: Thursday, May 08, 2008 1:58 PM > > Subject: [jQuery] Re: Getting Parent Element using "

[jQuery] Re: Getting Parent Element using "this"

2008-05-08 Thread briandichiara
ok, i'm not sure if this is the easiest way, however, this is how I got the form action in the following HTML:

[jQuery] Re: Getting Parent Element using "this"

2008-05-08 Thread briandichiara
= $(this).parent().attr("action"); > > }); > > This binds the anonymous function to set the variable formAction, to the > change event of the select. > > -- Josh > > - Original Message - > From: "briandichiara" <[EMAIL PROTECTED]> &

[jQuery] Re: Getting Parent Element using "this"

2008-05-08 Thread briandichiara
= $(this).parent().attr("action"); > > }); > > This binds the anonymous function to set the variable formAction, to the > change event of the select. > > -- Josh > > - Original Message - > From: "briandichiara" <[EMAIL PROTECTED]> &

[jQuery] Re: Getting Parent Element using "this"

2008-05-08 Thread briandichiara
gt; onchange inline like so: > > var formAction = null; > > $("select[name=some_name]").change(function() { > formAction = $(this).parent().attr("action"); > > }); > > This binds the anonymous function to set the variable formAction, to the >

[jQuery] Re: Getting Parent Element using "this"

2008-05-08 Thread briandichiara
elect[name=some_name]").change(function() { > formAction = $(this).parent().attr("action"); > > }); > > This binds the anonymous function to set the variable formAction, to the > change event of the select. > > -- Josh > > - Original Message - &g

[jQuery] Getting Parent Element using "this"

2008-05-08 Thread briandichiara
I have a page where I need to get a parent forms action after firing the onchange event on a select, like so: I can't figure out how to use "this" + a selector with jQuery, I've tried function changeAction(elm){ var formAction = elm.$(":parent form").attr("action"); } I really have n