[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. ul class=filetree li !-- begin user content --

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

2009-02-19 Thread Mark Steudel
I have the following inputs input type=text id=start_date value=2009-01-01 /br/ input type=text name=a id=a value=3 days class=interval rel=a_preview/span id=a_preview/spanbr / input type=text name=b id=b value=3 days class=interval rel=b_preview/span id=b_preview/spanbr / input

[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] Re: Prepended row, slide-in, showing only first cell

2009-02-13 Thread Mark Steudel
not sure of its effects for a tr though compared to a div. On Feb 12, 4:43 pm, Mark Steudel msteu...@gmail.com wrote: I have a table that is setup with a tbody tag. If I run the following: $(#recent_activity tbody).prepend( 'tr class=ajaxtd colspan=7Testing this func/td/tr

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

2009-02-13 Thread Mark Steudel
the first-child of the tr, which is just the first td. Maybe you intended to do: $(.ajax).slideDown('slow') ? I'm not sure of its effects for a tr though compared to a div. On Feb 12, 4:43 pm, Mark Steudel msteu...@gmail.com wrote: I have a table that is setup with a tbody tag

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

2009-02-12 Thread Mark Steudel
I have a table like so: table id=recent_activity thead tr tht1/th tht2/th /tr /thead tbody tr tdvalue/td td class=date2008-09-01/td --- want this content /tr tr tdvalue/td td class=date2008-09-01/td /tr /tbody /table And I want to try and get the first td with class date, I've tried the

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

2009-02-12 Thread Mark Steudel
td.date:first).text(); On Feb 12, 9:13 am, Mark Steudel msteu...@gmail.com wrote: I have a table like so: table id=recent_activity thead tr tht1/th tht2/th /tr /thead tbody tr tdvalue/td td class=date2008-09-01/td --- want this content /tr tr tdvalue/td td class

[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( 'tr class=ajaxtd colspan=7Testing this func/td/tr' ); I get a new row spanning 7 columns If I prepend this: $(#recent_activity tbody).prepend( 'tr style=display:none class=ajaxtd

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

2008-11-19 Thread Mark Steudel
18, 2008 at 1:05 PM, Mark Steudel [EMAIL PROTECTED] wrote: Hey hector, first off thanks for all your help. So I have the following: $(#form).submit( function(event) {                var element = event.target;                alert(  $(element).attr(id) );                return

[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

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

2008-11-18 Thread Mark Steudel
://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 submit buttons I am utilizing the following ajaxSubmit code: $(#form).submit( function() {                $(this).ajaxSubmit

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

2008-11-18 Thread Mark Steudel
('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, Nov 18, 2008 at 11:51 AM, Mark Steudel [EMAIL PROTECTED] wrote: Thanks that worked great. I don't

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

2008-11-18 Thread Mark Steudel
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, Nov 18, 2008 at 11:51 AM, Mark Steudel [EMAIL PROTECTED] wrote: Thanks that worked great. I don't have much experience working

[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:

[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

[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] 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 returnUrl

[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( message )