1

I have a configuration page where in there is a field for associating the IP address. IP address will be in huge number. Can some one suggest me what is the best practices to get this done? A dropdown? or some thing else?

6
  • 1
    You have a dropdown that has a lot of values (IP addresses) or do you want more than one value to be selected at once. Commented Sep 16, 2015 at 10:57
  • It is single selection. Only thing is there are multiple values in in the dropdown. User might find difficult to select the value if it is in 60th one. Commented Sep 16, 2015 at 11:07
  • IPs are generally not user friendly. A good approach would be showing server names (which are more remember-able) instead or along with. Commented Sep 16, 2015 at 11:09
  • I strongly agree.. But value (IP Address) which i am getting it from some other source which cannot be changed. Commented Sep 16, 2015 at 11:18
  • Is each IP address listed separately? Is there any way to group associated IP addresses together?
    – Mayo
    Commented Sep 16, 2015 at 13:01

1 Answer 1

2

Consider using datalist on an input, checkout on w3c

In a project i am working on we use a smart dropdown field (like google actualty) when you type it reads throug an an array in the background and shows only the maching ip adresses.

We use a joker (*) to start at the end of an ip.

0025 wil show all ip's starting with 0025,

*0025 the one's ending with 0025

The control is fairly easy to develop yourself, and there are already enough examples to find

3
  • That a good one. But unfortunately there is a limitation in our application by using ajax dropdown:( People say for every input there will be a hit to database... Commented Sep 16, 2015 at 11:13
  • Thats a fact, but i would suggest to download all the ip's and store it in a local array once, and then you have to do only one database call
    – Yakke
    Commented Sep 16, 2015 at 11:17
  • Thanks for the quick reply:) Values which i am getting through an API. So it should be dynamic. IP's will be created in other place and it will be displayed in our application through an API. Downloading and keeping it will not help:( Commented Sep 16, 2015 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.