Click here to Skip to main content
16,011,993 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut13-Apr-13 3:57
Hakan Bulut13-Apr-13 3:57 
GeneralRe: Question of a dusy_dex Pin
dusty_dex13-Apr-13 4:30
dusty_dex13-Apr-13 4:30 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut13-Apr-13 23:38
Hakan Bulut13-Apr-13 23:38 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut13-Apr-13 23:43
Hakan Bulut13-Apr-13 23:43 
GeneralRe: Question of a dusy_dex Pin
dusty_dex14-Apr-13 0:11
dusty_dex14-Apr-13 0:11 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut15-Apr-13 4:18
Hakan Bulut15-Apr-13 4:18 
GeneralRe: Question of a dusy_dex Pin
dusty_dex15-Apr-13 7:09
dusty_dex15-Apr-13 7:09 
GeneralRe: Question of a dusy_dex Pin
dusty_dex14-Apr-13 23:54
dusty_dex14-Apr-13 23:54 
Are you trying to copy the numbers so that you start another week's draw?

You can't use delete that way for arrays elements.

But your code still doesn't make any sense. There are no shortcuts to comparing *all* elements of one array using one command.

You need to compare each element of arrIns one by one, with oel[i] then copy *that element* to arr
var arr = []; // You do *not* need to use new Array
var c = 0;

for (var i=0; i < oel.length; i++) {
  var e = 0;
  while (e < arrIns.length) {
    if (oel[i] != arrIns[e]) {
       arr[c] = oel[i];
       c++;
    }
    e++;
  } // while-loop

} // for-loop
oel.length = 0; // reset oel array length to zero, so that you can use the array again

"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan

That's what machines are for.

Got a problem?
Sleep on it.


modified 15-Apr-13 6:07am.

GeneralRe: Question of a dusy_dex Pin
Hakan Bulut15-Apr-13 21:23
Hakan Bulut15-Apr-13 21:23 
GeneralRe: Question of a dusy_dex Pin
dusty_dex15-Apr-13 23:16
dusty_dex15-Apr-13 23:16 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut16-Apr-13 2:42
Hakan Bulut16-Apr-13 2:42 
GeneralRe: Question of a dusy_dex Pin
dusty_dex16-Apr-13 6:35
dusty_dex16-Apr-13 6:35 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut17-Apr-13 1:57
Hakan Bulut17-Apr-13 1:57 
GeneralRe: Question of a dusy_dex Pin
dusty_dex17-Apr-13 4:56
dusty_dex17-Apr-13 4:56 
GeneralRe: Question of a dusy_dex Pin
dusty_dex15-Apr-13 23:41
dusty_dex15-Apr-13 23:41 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut16-Apr-13 2:05
Hakan Bulut16-Apr-13 2:05 
GeneralRe: Question of a dusy_dex Pin
dusty_dex16-Apr-13 2:15
dusty_dex16-Apr-13 2:15 
GeneralRe: Question of a dusy_dex Pin
dusty_dex16-Apr-13 9:37
dusty_dex16-Apr-13 9:37 
GeneralRe: Question of a dusy_dex Pin
dusty_dex16-Apr-13 10:53
dusty_dex16-Apr-13 10:53 
GeneralRe: Question of a dusy_dex Pin
Hakan Bulut16-Apr-13 21:18
Hakan Bulut16-Apr-13 21:18 
QuestionJavaScript controls with date and time (format: dd / mm / yyyy hh: mm: ss) Thank you, and provide the connection site Pin
Jandren10-Apr-13 16:59
Jandren10-Apr-13 16:59 
AnswerRe: JavaScript controls with date and time (format: dd / mm / yyyy hh: mm: ss) Thank you, and provide the connection site Pin
enhzflep10-Apr-13 18:36
enhzflep10-Apr-13 18:36 
QuestionHow can I submit form without the querystring Pin
jsampathkumar10-Apr-13 7:22
professionaljsampathkumar10-Apr-13 7:22 
AnswerRe: How can I submit form without the querystring Pin
Graham Breach10-Apr-13 7:55
Graham Breach10-Apr-13 7:55 
AnswerRe: How can I submit form without the querystring Pin
Sandeep Mewara10-Apr-13 8:16
mveSandeep Mewara10-Apr-13 8:16 

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.