Re: Some kind of Popup

From: Date: Sat, 22 Nov 2008 16:41:45 +0000
Subject: Re: Some kind of Popup
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-283672@lists.php.net to get a copy of this message
Patrick Moloney wrote: > I have web pages that display multiple physical products. I'd like to be > able to include a button near each one to display certain > characteristics (eg: height, length, depth, weight etc). > These characteristics will be in a single table record in Mysql for each > product, so I can retrieve the record for that product. The question is, > how to display them. I'd like a small display window to appear in front > of the web page. > If possible, I'd like the user to be able to move it or request the > specs for another product, and then have both displayed. > I realize that can get messy, and is not absolutely necessary. > I have considered locating an invisible display box near each product, > but I think some kind of floating window would be better. > The web page uses CSS. > Any ideas on how to proceed? Two options that come to mind: 1. Have a little link to details.php?product_id=X with target=_blank, then in details.php query for the details using the product_id and display. 2. Same as 1 except use a javascript popup via onclick() so that you can control the look of the window (no toolbars, menu, etc...) -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#283672) next »