Click here to Skip to main content
12,248,681 members (51,653 online)

JavaScript

 
Questionhow to get default signature in outlook using Javascript Pin
anurag34879-Aug-12 3:20
memberanurag34879-Aug-12 3:20 
AnswerRe: how to get default signature in outlook using Javascript Pin
Pete O'Hanlon9-Aug-12 4:52
protectorPete O'Hanlon9-Aug-12 4:52 
AnswerRe: how to get default signature in outlook using Javascript Pin
BobJanova9-Aug-12 4:56
memberBobJanova9-Aug-12 4:56 
Newsurdu Pin
sania habib8-Aug-12 16:47
membersania habib8-Aug-12 16:47 
GeneralRe: urdu Pin
Richard MacCutchan8-Aug-12 22:28
mvpRichard MacCutchan8-Aug-12 22:28 
AnswerRe: urdu Pin
Rahul Rajat Singh22-Aug-12 2:24
memberRahul Rajat Singh22-Aug-12 2:24 
GeneralRe: urdu Pin
Sandip.Nascar22-Aug-12 12:03
memberSandip.Nascar22-Aug-12 12:03 
QuestionLooping through elements, to find textbox, and get values Pin
jkirkerx8-Aug-12 14:12
memberjkirkerx8-Aug-12 14:12 
This is all Javscript, some Jquery,

I created a blank list with an empty container. you fill out the container, and click to add another. You can make as many as you need, or delete the ones you don't want.

----------------------
name: textbox |
code: textbox |
----------------------

So let's say I have 5 of them

I can get the count which is 5, and make an element array of all the containers

Now I want to loop through each container, and get the name and code.

I thought this would work, but it bombed huge. perhaps I jumped the gun, and should make another array of the textboxes inside the loop, or maybe I'm using the $elements[i] incorrectly.

I'm clueless here, and information on this is slim. This is my first time on this.

var iCount = dynamicCart_Element1.idx;
var jCount = parseInt($("._element1").length);
 
   var $elements = $("._element1");
   for (i = 0; i <= jCount - 1; i++) {
       var name = $elements[i].find("_name_Field").val(); <-Bombs here
       var code = $elements[i].find("_code_Field").val(); <- and here
       alert(name);
 
   }

The dynamicCart_Element1 is a global on the page, I thought I could use it to build an array of all the values, then convert it to JSON for storage, and send it to the server to write out the XML file for it.
AnswerRe: Looping through elements, to find textbox, and get values Pin
jkirkerx8-Aug-12 19:13
memberjkirkerx8-Aug-12 19:13 
GeneralRe: Looping through elements, to find textbox, and get values Pin
Andrei Straut9-Aug-12 5:41
memberAndrei Straut9-Aug-12 5:41 
GeneralRe: Looping through elements, to find textbox, and get values Pin
jkirkerx9-Aug-12 7:27
memberjkirkerx9-Aug-12 7:27 
AnswerRe: Looping through elements, to find textbox, and get values Pin
Andrei Straut9-Aug-12 10:37
memberAndrei Straut9-Aug-12 10:37 
GeneralRe: Looping through elements, to find textbox, and get values Pin
jkirkerx9-Aug-12 11:18
memberjkirkerx9-Aug-12 11:18 
GeneralRe: Looping through elements, to find textbox, and get values Pin
Andrei Straut9-Aug-12 11:35
memberAndrei Straut9-Aug-12 11:35 
AnswerRe: Looping through elements, to find textbox, and get values Pin
Andy Brummer9-Aug-12 11:26
sitebuilderAndy Brummer9-Aug-12 11:26 
GeneralRe: Looping through elements, to find textbox, and get values Pin
jkirkerx9-Aug-12 17:54
memberjkirkerx9-Aug-12 17:54 
GeneralRe: Looping through elements, to find textbox, and get values Pin
Andy Brummer10-Aug-12 5:56
sitebuilderAndy Brummer10-Aug-12 5:56 
GeneralRe: Looping through elements, to find textbox, and get values Pin
jkirkerx10-Aug-12 7:31
memberjkirkerx10-Aug-12 7:31 
QuestionGet value from textbox created with createElement Pin
jkirkerx6-Aug-12 16:48
memberjkirkerx6-Aug-12 16:48 
AnswerRe: Get value from textbox created with createElement Pin
BobJanova7-Aug-12 1:12
memberBobJanova7-Aug-12 1:12 
GeneralRe: Get value from textbox created with createElement Pin
jkirkerx7-Aug-12 7:24
memberjkirkerx7-Aug-12 7:24 
AnswerRe: Get value from textbox created with createElement Pin
twseitex7-Aug-12 9:25
membertwseitex7-Aug-12 9:25 
GeneralRe: Get value from textbox created with createElement Pin
jkirkerx8-Aug-12 11:54
memberjkirkerx8-Aug-12 11:54 
Questionadapt datatable jquery to jee application Pin
ahmadiss5-Aug-12 0:34
memberahmadiss5-Aug-12 0:34 
AnswerRe: adapt datatable jquery to jee application Pin
Richard MacCutchan5-Aug-12 2:24
mvpRichard MacCutchan5-Aug-12 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web01 | 2.8.160426.1 | Last Updated 27 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid