Solved

Data entry design question

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Share post from Facebook Tab Application 6 42
Problem to run file 9 126
Web Development Tools for MVC 3 98
Create and populate iFrame onClick of a button? 1 88
Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

838 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