Hi All,
Can some one please explain what exactly is the below line in bold means ,
My Requirement is , port column in catalog table is just accepting numbers and numbers with - .
Now we need to have the below , please let me know how to get this done.
- An open-ended range of ports with Less Than or Greater than: >1023
- A combination of the above formats separated by commas: 21, 80-81, >1023
- Negate a single number: !80
Can some one please explain what exactly is the below line in bold means ,
Code:
var i = ctl.id; var j =g_form.getValue(i); var port = j; if (/^\d+$/.test(port)){ ----- Please explain what is this var k =parseInt(g_form.getValue(i)); if (k<1 || k>65000){ alert('Invalid Port Number: Value must be <= 65000'); g_form.clearValue(i); } } else{ var ports = port.split("-"); if ((/^\d+$/.test(ports[0])) && (/^\d+$/.test(ports[1])) && (ports[0] < ports[1]) && ports[0] <=65000 && ports[1] <=65000 ){} else{ alert("Invalid Port Range: Please enter numeric value") ; g_form.clearValue(i); } }
Now we need to have the below , please let me know how to get this done.
- An open-ended range of ports with Less Than or Greater than: >1023
- A combination of the above formats separated by commas: 21, 80-81, >1023
- Negate a single number: !80
Comment