[jQuery] treeview - way to ignore a list from treeview

2009-05-29 Thread Mark Steudel
I am displaying some lists, and some of the list li's display user generated content. Some of that conetnt seems to have lists in them. Is there a way to specifically say that treeview should only process certain uls or lis and ignore others? e.g. my user list my user list a paragraph I

[jQuery] Re: iterate through form elements, wait for post to finish and continue

2009-02-19 Thread Mark Steudel
Actually sorry the values should be: 2009-01-04 2009-01-07 2009-01-10

[jQuery] iterate through form elements, wait for post to finish and continue

2009-02-19 Thread Mark Steudel
I have the following inputs The idea is that I have a php script that calculates the date by building upon the values that are passed into it. So in the (a|b|c)_preview span the expected values would be something like: 2009-01-04 2009-01-05 2009-01-06 I then tried to

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-13 Thread Mark Steudel
).appendTo($ > > ('').attr('colspan','7').appendTo($('').prependTo > > ('#recent_activity tbody'))).slideDown('slow').fadeIn('slow'); > > > On Feb 12, 6:51 pm, James wrote: > > > > That's prob

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-13 Thread Mark Steudel
#x27;#recent_activity tbody'))).slideDown('slow').fadeIn('slow'); > > > On Feb 12, 6:51 pm, James wrote: > > > > That's probably because you're using the "first-child" of the , > > > which is just the first . > > > M

[jQuery] Prepended row, slide-in, showing only first cell

2009-02-12 Thread Mark Steudel
I have a table that is setup with a tbody tag. If I run the following: $("#recent_activity tbody").prepend( 'Testing this func' ); I get a new row spanning 7 columns If I prepend this: $("#recent_activity tbody").prepend( 'Testing this func' ); Then try to show it, with something like: $(".aj

[jQuery] Re: Get contents of first child tr, td with class

2009-02-12 Thread Mark Steudel
body tr td.date:first").text(); > > On Feb 12, 9:13 am, Mark Steudel wrote: > > > I have a table like so: > > > > > > > > > t1 > > t2 > > > > > > > > > > value > > 2008-09-01 <--- want this content > &

[jQuery] Get contents of first child tr, td with class

2009-02-12 Thread Mark Steudel
I have a table like so: t1 t2 value 2008-09-01 <--- want this content value 2008-09-01 And I want to try and get the first td with class date, I've tried the following and I get close, but I think I'm just missing something easy: $('#recent_activity tbody:first-child .activity_date'

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-19 Thread Mark Steudel
type=submit]').click(function(event) > { >     var element = event.target; >     alert($(element).attr('id')); >     return false; > > }); > > -Hector > > On Tue, Nov 18, 2008 at 1:05 PM, Mark Steudel <[EMAIL PROTECTED]> wrote: > > > Hey he

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
; var element = event.target; > $(element).attr('id'); // returns the id of the element > element.getAttribute('id'); // also returns the id in native javascript, but > does not work in IE (of course...) > > I hope this helps! :) > > -Hector > > On Tue

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
ds. > var element = event.target; > $(element).attr('id'); // returns the id of the element > element.getAttribute('id'); // also returns the id in native javascript, but > does not work in IE (of course...) > > I hope this helps! :) > > -Hector > > On Tue, N

[jQuery] Re: Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
ent = event.target; > > }); > > For more info check out the Events guide:http://docs.jquery.com/Events_(Guide) > > -Hector > > On Tue, Nov 18, 2008 at 10:47 AM, Mark Steudel <[EMAIL PROTECTED]> wrote: > > > Hi I have a form that has two

[jQuery] Form with two buttons determining which was clicked

2008-11-18 Thread Mark Steudel
Hi I have a form that has two submit buttons I am utilizing the following ajaxSubmit code: $("#form").submit( function() { $(this).ajaxSubmit({ target: '#response' }); return false; } ); Inside the submit function is th

[jQuery] AJAX post, dynamic data field names

2008-10-27 Thread Mark Steudel
Let's say we have the following piece of code: $.post("/scripts/admin.course.php", { elemname: value1, elemname2: value2 } , function(data){} ); Is there a way to dynamically set the field name? e.g. var elemname = 'newname'; $.post("/scripts/admin.course.php", { elemname: value1, elemname2: v

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Thanks guys I'll try that out. Appreciate the help! Mark On Sep 8, 5:52 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Building on what Dave posts: > > $(document).ready(function(){ >         var url = '/scripts/orders.php'; >         var returnUrl = '/admin/dashboard'; >          function finish( me

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Thanks again, tried this out and everything worked great. Amazing what happens when you do things the right way. :) On Sep 8, 5:52 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Building on what Dave posts: > > $(document).ready(function(){ >         var url = '/scripts/orders.php'; >         var retu

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Oh .effect is part of the Jquery ui library. I wanted a field to briefly flash letting the user know something has changed, but then the client wanted the page to redirect, so I can probably take out the effect. On Sep 8, 5:52 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Building on what Dave posts:

[jQuery] Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
I have the below code, and it works, until I put the js redirect in. Why is this happening? I thought the, function gets called after a succesful ajax call ... anyway a bit of help would be greatly appreciated. $(document).ready(function(){ var url = '/scripts/orders.php'; var re