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!

How to pop-up a menu to select ... using PHP & JavaScript!

Status
Not open for further replies.

TerryJones

Programmer
Jul 19, 2000
15
AU
Dear all,<br><br>I have written a PHP & JavaScript script, where the user can enter in some details, and submit.<br><br>One of the details however needs to pop-up a list (open a new browser ... poped up on prefer) of other users, where the user selects the person in the list ...<br><br>Upon selection, the pop-up list will disappear and the person selected will be in the users details (2 aspects of&nbsp;&nbsp;person selected ... like UserID & Username ... will go into 2 textboxes in viewing user's details).<br><br>If anyone could please advice me on how to do this with (prefer) PHP & JavaScript ... please advice (I also know Java, CGI/Perl & some others).<br><br>Thank you.
 
This is entirely theoretical and isn't even vaguely related to PHP, but... Here are the concepts:<br><br>This is all javascript.<br>A simple window.open() call will generate your pop-up window.<br>When you make that call, the pop-up is given a property of window.opener ... That's how you access the main screen.<br>Now with your select field, you can assign an onChange attribute that accesses window.opener.document.formname.elementname.value for the update, and self.close() to eliminate the pop-up window.<br><br>Good luck,<br>sophisticate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top