[jQuery] cant pass value to ajax call.

2009-10-07 Thread shaded
here is my code. $("#ddl_customer").change(function(){ cuslist = $("#ddl_customer").val().join(", "); alert(cuslist); }); $("#ddl_customer").selectChain({

[jQuery] Re: saving values from a multi select list.

2009-09-15 Thread shaded
With Pleasure. === first post Im using a plugin called selectchain by Remy Sharp and modified it a bit. Right now im trying to pass only selected values of a multi select list through ajax. The fo

[jQuery] Re: saving values from a multi select list.

2009-09-15 Thread shaded
Still stuck on this.no one has even a suggestion as to what maybe wrong?

[jQuery] Re: saving values from a multi select list.

2009-09-14 Thread shaded
Ok so i thought that maybe the problem had something to do with the ajax request so i tried adding the ajaxStart function. See below. $("#ddl_customer").change(function(){ $("#ddl_customer").ajaxStart(function() { cuslist = $(this).val().join(", "); }); alert(cuslist); }); $("#ddl_c

[jQuery] Re: saving values from a multi select list.

2009-09-10 Thread shaded
Thanks for the reply. I'm not really too concerned about html and how its displayed right now. I'm just concerned that its not passing the right data to the ajax call. It's also part of a much larger mvc type program so its hard to show html. this is what the html for the drop down list looks lik

[jQuery] saving values from a multi select list.

2009-09-10 Thread shaded
Im using a plugin called select chain and modified it a bit. Right now im trying to pass only selected values of a multi select list through ajax. The following function does a bit more but im concerned with the part that says cust_val: customer.val().join(",") This should return only selected v

[jQuery] Re: set certain items in a select list to selected.

2009-08-03 Thread shaded
Not exactly. I guess looping through my string would work. but its a multiple select list so .addclass wont work i tried using $("#mylist option:contains(3)").attr("selected", "selected"); this compares against the list value, not the id. Is there a way to compare against the id? Better yet,

[jQuery] set certain items in a select list to selected.

2009-08-03 Thread shaded
Ok lets say i have a multiple select list first second third fourth fifth then i have a string of id's that i want to set to selected like so. var selectedIds = '1,3,5'; is it possible to use jquery (preferably in a one liner) to set first, third and fifth to selected.?

[jQuery] Re: Filtering a select list

2009-06-30 Thread shaded
@mkmanning many thanks!! All i needed to do is add a text box with a keyup event and change the regular expression to match everything and not just the first beginning of the last name. Here is the solution in case anyone else is searching. Thanks again. http://code.jquery.com/jquery-latest

[jQuery] Filtering a select list

2009-06-26 Thread shaded
here is a non jquery solution to what i'm looking for. http://www.barelyfitz.com/projects/filterlist/index.php/1 Does anyone know of jquery plugin to do the same or maybe if its easy, some quick source code? thanks

[jQuery] Re: how to ask questions

2009-06-26 Thread shaded
its not always practical to post a link. The stuff im working on is offline for now. including database and php files. but thanks for all the tips.

[jQuery] filtering a multiple select box

2009-06-24 Thread shaded
i would like to filter out option on an select box as i type my value in a textbox. I would work sorf of like autocomplete without the autocompleting part. Its implemented here but the code seems is very complex as there are many other things going on. http://www.headcircus.com/uiguy/selectboxfa

[jQuery] Re: how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread shaded
ravi, matthew, thanks for the responses, and i totally agree that this group is huge. Google could have added a few more features to their groips app. this is very barebones:( here is what im doing, i've been using this (http://remysharp.com/2007/09/18/auto-populate- multiple-select-boxes/) plu

[jQuery] Re: select all values of a multiple select list

2009-06-24 Thread shaded
thanks, charlie, jquery feels like such a puzzle, and i get bits and pieces from everywhere. Can we take this to another level? what if i want to have a first element in the list, example --select all--, how do i set it so when this is selected, all values get selected. On Jun 23, 11:55 am,

[jQuery] Re: how to ask questions

2009-06-24 Thread shaded
thanks for the replies, @cesar, i'm not mad or anything, i just figure i was asking in the wrong way and wanted to find out what im doing wrong. @michael, thanks for pointing out that 2 questions were answered. This is my first google group and i figured that replies to my post would be emailed

[jQuery] how to ask questions

2009-06-24 Thread shaded
ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question

[jQuery] Re: how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread shaded
ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question

[jQuery] how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread shaded
how can i set the attribute of an item in a select box to selected?

[jQuery] Re: Problem with loading SELECT on change of other select

2009-06-24 Thread shaded
here i've been working with this for the past few days. it should do the trick http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/ On Jun 23, 2:44 pm, Paul wrote: > Hi there, > > This is what I'm trying to do: > > When a user selects a group in the first SELECT box,

[jQuery] select all values of a multiple select list

2009-06-23 Thread shaded
is there a way to select all values of a multiple select list by default?

[jQuery] triggering multiple events

2009-06-18 Thread shaded
is is possible to trigger mutiple events in sucession? each depending on the previous?

[jQuery] using multiple triggers with ajax

2009-06-18 Thread shaded
i have 5 multiple select boxes each of which get populated when the previous box is clicked on. ex. i select a value from box 1 that populates box 2 then i select box 2 that populates box 3 etc. is it possible to have them all populate with out the clicking. ex. i click in box 1 and box 2, gets p

[jQuery] fun with check boxes.

2009-06-16 Thread shaded
I'm tasked with created a series of filters with checkboxes. for example lets say i have 3 categories, customers, groups, acccount customers contains groups and groups contain accounts. i want to be able all records as checkboxes in 3 different sliding panels on the same page. Then as any chec

[jQuery] Re: Obtaining the *key* on selecting rather than the *display name*

2009-06-16 Thread shaded
I suppose you can switch key and value On Jun 16, 8:02 am, Sanjay Khandkar wrote: > Hi, > > I was able to obtain the key or display name from autocomplete list > using your example of "email". > > The problem is this > > a. Search should take place on the "display" field (in the name field > - r

[jQuery] [autocomplete]

2009-06-12 Thread shaded
im a newbie trying to use the autocomplete plugin. I have a php array returning a name and an id. the autocomplete drop down displays only the first value before the | in name|id This is fine but how do i get the 'id' part to be stored in a hidden field. I've looked at the examples herehttp:/