Solved

Data entry design question

Posted on 2004-04-21
8
206 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now