User Profile

Collapse

Profile Sidebar

Collapse
ravigpalli
ravigpalli
Last Activity: Oct 3 '17, 02:49 PM
Joined: May 29 '17
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Actually we need to have > and < sysmbols included. ANy idea.
    See more | Go to post

    Leave a comment:


  • 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 help
    See more | Go to post

    Leave 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.
    See more | Go to post

    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: !80
    See more | Go to post

    Leave 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...
    See more | Go to post

    Leave a comment:


  • ravigpalli
    started a topic /^\d+$/ - please explain what does it mean

    /^\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);
      }
    }
    ...
    See more | Go to post
    Last edited by Dormilich; May 29 '17, 02:16 PM. Reason: please use code tags.
No activity results to display
Show More
Working...