User Profile
Collapse
-
Actually we need to have > and < sysmbols included. ANy idea. -
Hi,
Please let me know how to achieve this
An open-ended range of ports with Less Than or Greater than: >1023.
Also , I am new to java script , can you please helpLeave a comment:
-
Sorry ,
I did not understand what you are trying to say .
An open-ended range of ports with Less Than or Greater than: >1023
Negate a single number: !80
make a separate test for that - How to test this.
A combination of the above formats separated by commas: 21, 80-81, >1023
explode by ,, trim, and do validation for each item. - Please explain how to do this.Leave a comment:
-
Ok , Please let me know what I need to do for including below .
- 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: !80Leave a comment:
-
Hi ,
Please see the lines below , what I was referring to .
if (/^\d+$/.test(port))
and
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.clearVal ue(i);
}
}
Please let me know...Leave a comment:
-
/^\d+$/ - please explain what does it mean
Hi All,
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); } }
No activity results to display
Show More
Leave a comment: