Thank you so much for all your help :) Your valuable inputs helped me solved it at last.
Faced issue with declaring the array as global. The function wasn't recognizing the global array. I was thinking there was something wrong but eventually cleared the cache and it worked. I have no idea why...
Above post continued...
So in the next iteration, the array a[] will have new values rather that the one that was defined at the start. Hope its clear now.
Thanks,
-SK
Thank you for your reply. The thing is push adds elements to the end. What I actually want to do is, if the the value fetched in fn xxxx( ) is, say value=3, then I need to update Array a[3] to 1 if its 0, or a[3] to 0 if its 1.
And the next time if value=7, then I need to update a[7] = 1 if its...
Hi,
I have small problem and I am stuck with it for days without any solution.
So I have a function that has an array,
function arrjoin( )
{
var a = new Array (1,1,1,1,1,1,0,0,0,0);
var c = a.join("~");
return (c);
}
I have another function that call the arrjoin(). But before doing so, I...
Hi,
I am using a javascript called sorttable.js available at http://kryogenix.org/code/browser/sorttable/ for sorting a table.
The issue is the table is generate via an AJAX script. When I generate the table via ajax script, the sort feature seems to be not present. I found some comment...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.