Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to implement popup windows or dialog boxes ??

Status
Not open for further replies.

sumpun

MIS
Feb 20, 2002
21
HK
Why aern't there any articles on handling popup dialogs ??

What I want is to prompt the user for a selection and use his/her selection to change the data source of a dropdownbox

For instance :

Select choice :
1. Fruit
2. Vegetable

If the user selcts fruit, my dropdownbox will show

pear
apple
plum and so on

I can do this by using panels.

But is there any way I can do this using popup asp pages or javascript popup windows ??

Need your help !!!

CHEERS GUYS
 
Well if you want to pop up window for choosing choice between Fruit or vegetable, It will be a child window of the main parent.So on selecting a choice,you may not be able to refresh a parent window.

But if you leave your insistence for pop up,there are multiple ways to achieve dynamic drip down.

One way could be already have options in javascript array(I can give you code) and on onchange event set the options.

The other could be reload the page by submitting it and get fresh results from database.

Rushi Shroff Rushi@emqube.com
"Life is beautiful."
 
Cheers Rushi !!!!

I know that it would be much easier using ASP panels, but not as fancy ... !!! Everything will be targetted to the same page.

Actually, is there a way to do this using ASP pages and sessions ?? (However, I understand that sessions take up memory space, if N users open this selection window and don't close it.)

I prefer that the page not reload, as that means I will have to reload records from SQL server.
What I have is a page containing different panels (one containing datagrids and controls for searching and another for adding/editing records and so on) Therefore, as you can see, if I reloaded the page, I would have to reload records of the datagrid. This would take time even though I use custom datagrid paging and only load records for individual pages.

Hope you can help ???

P.S. For this kind of thing, do people tend to use javascript or ASP.
 
As I said
..
One way could be already have options in javascript array(I can give you code) and on onchange event set the options

Rushi Shroff
"Life is beautiful."
 
Hi Rushi !!!

THANKS FOR YOUR HELP !!!

Can you send me the code to try out ????

Will inform you if I get things working ....

CHEERS !!!
 
Hi Rushi

Received your example !!

This doesn't seem to implement it as a popup window ...

How can you implement it as a popup version ??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top