Solved

Data entry design question

Posted on 2004-04-21
8
220 Views
Last Modified: 2010-04-06
I have a web page where various fields are filled in.  To populate one of these fields I need to go back to the server to get a list of vendors.  The page where I am entering the data from will not be submited to the server when the user is tyring to go get the list of vendors so I can't navigate away from the page and loose all their data entry.  My thought is to have a pop-up window which would go get the list of vendors and have the pop-up return what vendor was selected.  
If I go the pop-up route I would like the window under the pop-up to be covered in gray.  I have seen something like this before but can't remember where I saw it or how to do it.

Any other suggestions?
0
Comment
Question by:cotaej
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Expert Comment

by:imhauser
ID: 10883003
You can use a ModalDialog using window.showModalDialog(sUrl)
You can pass the selected vendor to the opener window.

Eric
0
 
LVL 2

Expert Comment

by:itwerx
ID: 10883973
Why not load the vendor list into an array when the form is loaded. That way the data can be accessed without having to go back to the server.
0
 
LVL 1

Expert Comment

by:joesp
ID: 10885986
you can't do what you think you saw.  One limitation of using a browser as a front-end GUI is that you can't have windows talk to each other.  All communication must go through the server.  What you may have seen, was a pop-up which submitted all info to server, then select from popup, store popup info along with previous form's submission in same database row, and then retrieval of that row in old form, with net result that new form = old form + popup selection.
0
 

Author Comment

by:cotaej
ID: 10888092
I was considering the Modal popup but have 2 issues with that.
1) As I said I want the main window behind it greyed out
2) I would like to have Box come up with no title bar/buttons, I want to create my own

As for the array option I am considering that, however I want to keep the page size low and might have more vendors then I want to come down with the main page.  Also I don't have a place to display the info so I need to do some sort of pop-up.  

I am thinking the modal popup will most likely be my best option if I can get past the two issues listed above.

Thanks
0
 
LVL 1

Accepted Solution

by:
dcrysler earned 250 total points
ID: 10940369
that's one of the cool features of asp.net, it allows you to post back to the server and it automatically maintains the state of the form so you don't loose any previously typed-in data.

we use cold fusion here and we end up doing the same thing manually by having a form post to itself.  the first time you request a form you get blank values, but subsequent requests populate the input fields with the received form variables.

to avoid the post you could try using a hidden frame or a hidden iframe to make the query.  You can reference data in these frames using client side javascript. I've never used this approach, but it should be possible.  You could return a combo box in the hidden frame, then loop through it's item list and copy the values to your visible control.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question