Click here to Skip to main content
       

JavaScript

 
AnswerRe: either my css or Javscript is in error, another set of eyes Pinmemberjkirkerx15-Aug-12 16:32 
AnswerRe: either my css or Javscript is in error, another set of eyes PinmemberBobJanova15-Aug-12 23:36 
QuestionDisplay Values Pinmemberlakshmiblp15-Aug-12 10:29 
Questionhow to get default signature in outlook using Javascript Pinmemberanurag34879-Aug-12 2:20 
AnswerRe: how to get default signature in outlook using Javascript PinprotectorPete O'Hanlon9-Aug-12 3:52 
AnswerRe: how to get default signature in outlook using Javascript PinmemberBobJanova9-Aug-12 3:56 
Newsurdu Pinmembersania habib8-Aug-12 15:47 
GeneralRe: urdu PinmvpRichard MacCutchan8-Aug-12 21:28 
AnswerRe: urdu PinmemberRahul Rajat Singh22-Aug-12 1:24 
GeneralRe: urdu PinmemberSandip.Nascar22-Aug-12 11:03 
QuestionLooping through elements, to find textbox, and get values Pinmemberjkirkerx8-Aug-12 13:12 
AnswerRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx8-Aug-12 18:13 
GeneralRe: Looping through elements, to find textbox, and get values PinmemberAndrei Straut9-Aug-12 4:41 
GeneralRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx9-Aug-12 6:27 
Yeah that was a mind bender. I wanted to use ID, but it was hard to compose in jquery, and then I wanted to use my original array, and tossed that out the window as well.
 
Finding help on the subject only led to simple basic information.
 
Ended up with this, including the new array, so I can package the data to send to a web service, and create the xml for it on the server. Can't give myself a 5, but thanks for verifying my code. I appreciate you critiquing my save function.
 
var elements = [];
 
var nameCount = parseInt($("._name_Field").length);
var codeCount = parseInt($("._code_Field").length);
 
// Create Arrays to hold the values
var nameArray = [];
$("._name_Field").each(function () { nameArray.push($(this).val()) });
 
var codeArray = [];
$("._code_Field").each(function () { codeArray.push($(this).val()) });
 
// Gather the Data from the Element Containers from valid elements
var jdx = 0
for (i = 0; i <= nameCount - 1; i++) {
  if ((nameArray[i] != "") && (codeArray[i] != "")) {
     elements[jdx] = [];
     elements[jdx]["name"] = nameArray[i];
     elements[jdx]["code"] = codeArray[i].toUpperCase();
     
     jdx++;
  }
}

AnswerRe: Looping through elements, to find textbox, and get values PinmemberAndrei Straut9-Aug-12 9:37 
GeneralRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx9-Aug-12 10:18 
GeneralRe: Looping through elements, to find textbox, and get values PinmemberAndrei Straut9-Aug-12 10:35 
AnswerRe: Looping through elements, to find textbox, and get values PinsitebuilderAndy Brummer9-Aug-12 10:26 
GeneralRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx9-Aug-12 16:54 
GeneralRe: Looping through elements, to find textbox, and get values PinsitebuilderAndy Brummer10-Aug-12 4:56 
GeneralRe: Looping through elements, to find textbox, and get values Pinmemberjkirkerx10-Aug-12 6:31 
QuestionGet value from textbox created with createElement Pinmemberjkirkerx6-Aug-12 15:48 
AnswerRe: Get value from textbox created with createElement PinmemberBobJanova7-Aug-12 0:12 
GeneralRe: Get value from textbox created with createElement Pinmemberjkirkerx7-Aug-12 6:24 
AnswerRe: Get value from textbox created with createElement Pinmembertwseitex7-Aug-12 8:25 
GeneralRe: Get value from textbox created with createElement Pinmemberjkirkerx8-Aug-12 10:54 
Questionadapt datatable jquery to jee application Pinmemberahmadiss4-Aug-12 23:34 
AnswerRe: adapt datatable jquery to jee application PinmvpRichard MacCutchan5-Aug-12 1:24 
Questionshowmodaldialog return value undefined across domain PinmemberAmr M. K.4-Aug-12 23:24 
AnswerRe: showmodaldialog return value undefined across domain Pinmemberjkirkerx5-Aug-12 11:05 
GeneralRe: showmodaldialog return value undefined across domain PinmemberAmr M. K.6-Aug-12 22:05 
AnswerRe: showmodaldialog return value undefined across domain PinmemberBobJanova5-Aug-12 23:43 
GeneralRe: showmodaldialog return value undefined across domain PinmemberAmr M. K.6-Aug-12 21:26 
QuestionEvalulating and passing RGB values from keydown Pinmemberjkirkerx2-Aug-12 8:12 
AnswerRe: Evalulating and passing RGB values from keydown Pinmemberenhzflep2-Aug-12 9:58 
GeneralRe: Evalulating and passing RGB values from keydown Pinmemberjkirkerx2-Aug-12 11:54 
AnswerRe: Evalulating and passing RGB values from keydown PinmemberBobJanova5-Aug-12 23:31 
GeneralRe: Evalulating and passing RGB values from keydown Pinmemberjkirkerx6-Aug-12 7:22 
GeneralRe: Evalulating and passing RGB values from keydown PinmemberBobJanova7-Aug-12 0:11 
GeneralInstalling Pygame [modified] Pinmemberjohtnkucz30-Jul-12 4:36 
GeneralRe: Installing Pygame Pinmemberjohtnkucz30-Jul-12 4:45 
QuestionRe: Installing Pygame PinmvpRichard MacCutchan30-Jul-12 6:14 
AnswerRe: Installing Pygame PinmvpSandeep Mewara31-Jul-12 8:56 
GeneralRe: Installing Pygame PinmvpRichard MacCutchan31-Jul-12 22:32 
QuestionAnalysing an obfuscated malware script PinmemberBernhard Hiller29-Jul-12 21:48 
AnswerRe: Analysing an obfuscated malware script PinmvpRichard MacCutchan29-Jul-12 22:00 
GeneralRe: Analysing an obfuscated malware script [modified] Pinmemberenhzflep30-Jul-12 1:43 
GeneralRe: Analysing an obfuscated malware script PinmemberBernhard Hiller30-Jul-12 4:48 
GeneralRe: Analysing an obfuscated malware script Pinmemberenhzflep30-Jul-12 23:41 
GeneralRe: Analysing an obfuscated malware script PinmemberBernhard Hiller31-Jul-12 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 22 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid