RE: [PHP] Is this possible? PHP + Javascript

From: Date: Mon, 26 Mar 2001 23:54:57 +0000
Subject: RE: [PHP] Is this possible? PHP + Javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45667@lists.php.net to get a copy of this message
in the onCLick event of the checkbox call a javascript function. In that function use a window.open() method to open aother browser window, using the open() methods various properties to control how that browser window looks and feels. For the URL for that browser window, make it a PHP script passing an ID. That script would run against the server and database, returning the results in whatever HTML format you include in that browser window. Works similiar to a popup but allows you to run a dynamic script instead of loading up on javascript arrays or variables when the page loads. Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com ================================= > -----Original Message----- > From: Reuben D Budiardja [mailto:reubendb@goshen.edu] > Sent: Monday, March 26, 2001 4:29 PM > To: Michael Champagne; PHP General Mailing List > Subject: Re: [PHP] Is this possible? PHP + Javascript > > > At 05:11 PM 3/26/01 -0600, Michael Champagne wrote: > >I have a huge database-driven list of clients with a checkbox > next to each > >one. When I check one of these clients, I'm wanting one of those small > >javascript boxes to pop up and display the contacts for this > client (another > >database lookup) and allow me to select one via a radio button. > I figured I > >could do this via the checkbox's onclick event, but I'm not > completely sure > >how. > > > >How do I bring up the box and display database information > within? Any help > >is GREATLY appreciated. > > What I did for something like this was: I donwloaded all the information > that I'm (probably) going to use and store it in variables/arrays, but I > don't display them. > Only after an event happened, like onClick, I display the relevant > information using javascript, since javascript can access a php variable. > > I don't if this can work for your problem. But the idea basically is > download everything first from server side, and display what is necessary > from client side. That way you minimizing the reload/refresh, which take > painfully long time for some of the clients. > > Hope that helps > Reuben D. Budiardja > > > Reuben D. Budiardja > Web Database Application Programmer / Analyst > Devcorps, ITS > Goshen College, IN 46526 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#45667) next »