Note that there are some explanatory texts on larger screens.

plurals
  1. POjavascript multidimensional array?
    primarykey
    data
    text
    <p>I hope I can make myself clear in English and in what I want to create. I first start with what I want.</p> <p>I want to make a IBANcalculator that can generate 1-n IBANnumbers and also validate a given IBANnumber. IBANnumbers are used in many countries for payment and the tool I want to make can be used to generate the numbers for testing purpose.</p> <p>On <a href="http://nl.wikipedia.org/wiki/International_Bank_Account_Number" rel="nofollow noreferrer">wikipedia</a> (Dutch site) I found a list with countries and their way of defining the IBANnumber. What I want to do it to make a kind of an array that holds all the countries with their name, the code, there IBANlength, the bankingformat and the account format.</p> <p>The array needs to be used to:</p> <ol> <li>Generate a select list (for selecting a country)</li> <li>used to check part for generating numbers</li> <li>used to check part for validating number</li> </ol> <p>I don't know if an array is the best way, but that's so far the most knowledge I have.</p> <p>I allready made a table like this that holds the info (this table isn't used anyware, but it was a good way for me to show you what I have in mind about how the structure is):</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;countryname&lt;/td&gt; &lt;td&gt;country code&lt;/td&gt; &lt;td&gt;valid IBAN length&lt;/td&gt; &lt;td&gt;Bank/Branch Code (check1, bank, branch)&lt;/td&gt; &lt;td&gt;Account Number (check2, number, check3)&lt;/td&gt; &lt;tr&gt; &lt;tr&gt; &lt;td&gt;Andorra&lt;/td&gt; &lt;td&gt;AD&lt;/td&gt; &lt;td&gt;24&lt;/td&gt; &lt;td&gt;0 4n 4n&lt;/td&gt; &lt;td&gt;0 12 0 &lt;/td&gt; &lt;tr&gt; &lt;tr&gt; &lt;td&gt;België&lt;/td&gt; &lt;td&gt;BE&lt;/td&gt; &lt;td&gt;16&lt;/td&gt; &lt;td&gt;0 3n 0 &lt;/td&gt; &lt;td&gt;0 7n 2n&lt;/td&gt; &lt;tr&gt; &lt;tr&gt; &lt;td&gt;Bosnië-Herzegovina&lt;/td&gt; &lt;td&gt;BA&lt;/td&gt; &lt;td&gt;20&lt;/td&gt; &lt;td&gt;0 3n 3n&lt;/td&gt; &lt;td&gt;0 8n 2n&lt;/td&gt; &lt;tr&gt; &lt;/table&gt; </code></pre> <p>and many more.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload