|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
populate ColdFusion variable using javascript array
Hello,Charles Heizer 03/11/10 04:01 P Hey Charlie,William Seiter 03/11/10 04:08 P Here is with JQuery:Tony Bentley 03/11/10 07:35 P Hello, I would like to know if it's possible to set a coldfusion variable from a javascript array? If so how? What I really want to do is populate a cfinput with the values from the javascript array. Thanks, Charlie Hey Charlie, Once the 'cfinput' is viewed in the browser, it is translated into a regular <input statement (view source to see) Javascript only runs after the page is translated to the regular <input statement, so you should be able to interact with that <input with javascript directly (no need to translate the javascript array into a coldfusion array) If you give more details of what you want to do, we can probably help. William ---------- William E. Seiter Hello, I would like to know if it's possible to set a coldfusion variable from a javascript array? If so how? What I really want to do is populate a cfinput with the values from the javascript array. Thanks, Charlie Here is with JQuery: rry = []; $("input :checkbox :checked").each(function({ rry.push($(this).val(); }); $("input[name=textinput]").val(rry); Sorry, I'm not a big native javascript guy. Much easier with JQuery.
|
July 31, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||