• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

popup

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I have got to work and AJAX popup window and I need to select and put MORE THAN ONE VALUE from the popup into fields on my main page.


I get lookup data this way and currently it has full fields in a table and I want to populate the text box that I am calling the focus function on and another text box on the main page from my AJAX popup on select.


Best wishes

Yours

David
 
David Lawunmi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I had trouble including the code associated with the original question in my first message.

I have included a link to the code for the original question.

You can find it here:


[URL=[/URL]]web page


Best wishes

Yours

David
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure what you are after, but if you are calling it for another field, don't you just send it different information? You question is not clear to me exactly.

Eric
 
David Lawunmi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Thanks for the reply.

I am interested in finding a systematic way of getting data that is visible in an AJAX popup window to appropriate text boxes in the parent page of the popup.

For example:

A user starts typing a hospital name, and gets a dynamic drop down that uses AJAX, that shows matching hospital names and the hospital code associated with a particular hospital. On selecting a particular hospital name both the hospital code and the hospital name will be written into appropriate text boxes on the parent page.


The intention is to use this information to query a database.

This essentially boils down to imitating database lookup functionality.

I hope that this is clearer


Best wishes

Yours

David
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you want a typeahead suggest. There are a bunch of examples online (already coded in frameworks) or there is one in my book (always need to plug it!) Do a search on Google for type ahead suggest and it should give you some help.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic