I have a form which has a disabled field for company name. It has a button, on clicking it, a search window opens up and there we can search the company name and then submit. On Submit,the disabled field is filled in the parent window. But I am not happy with the pop-up window. I need other option using where we can search in the same window. Any suggestions?

Here one of the main conern is security so robots cannot search all my data, that is why I have included a captcha.

Also I need something that can be done on one page instead of going to a pop-up window.

Thanks in advance.

First page

Search box in pop up window

Search result

Copy search result to parent window

  • A screenshot would help here.
    – kBisla
    Jan 14, 2014 at 7:16
  • Just added image so that it is more explainable Jan 14, 2014 at 8:06
  • Why do you think robots/scripts will be able to grab any of your data[except states/countries etc.]? If they can, your form is vulnerable to SQL injections and/or other security risks. Captcha can be real annoying at times for some people like me, I am almost never able to read the code in these captcha images .
    – Fr0zenFyr
    Jan 15, 2014 at 4:24
  • I don't want any one taking out the all the companies information whom I am dealing with. Jan 15, 2014 at 10:11

1 Answer 1


A jQuery based select list should be a good choice. For example, check this page. Here you will not even need to make the field read-only, any unmatched values entered in the field will be cleared when the focus of cursor shifts from the field.

Another option would be to make this an input box, and fetch matching results when the users starts typing. This idea similar to how Facebook people search works or even Google search does. Clear any unmatched strings from the field on focus out.

Edit: OK just noticed the tag jQuerymobile. Select2 plugin may not be the best choice for mobile applications, but you can find similar plugins or very easily make one yourself. An ajax based search[2nd option] which uses internet may not be the best choice altogether[if not on 3G].

  • Thanks.. I have uploaded some images.. do you still have any suggestions Jan 14, 2014 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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