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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHTML popup to populate textfields

Status
Not open for further replies.

canajun

Programmer
Sep 28, 2002
57
CA
I have searched for something as simple as this, but with no luck.

I have a space constrained form, with several textfields that I want to populate with a DHTML popup..

I don't want the popup to open a new window, but show up on the form page..

This is to replace list boxes that take up too much realestate on the page.

Any help would be appreciated!
 
You can try to use Javascript and hide and unhide an absolutely positioned Div that contains whatever you need.

You can even have a list box in that div or make it scrollable if you need more space.


Code:
function myunhide(){
if(document.getElementById("popupdiv").style.display == "none" || document.getElementById("popupdiv").style.display == "" ) {

document.getElementById("popupdiv").style.display = "block";

  }

  else {

    document.getElementById("popupdiv").style.display = "none";

  }

}


and in your HTML you would have a div that contains everything you need
Code:
<div id="popupdiv" style="display:none;">
[green]Insert all your stuff here[/green]
</div>

Of course for more specifics you'll need to ask this in the Js forum here:
forum216

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top