You have the problem right.  What do you mean by a "server push"?  Sounds
interesting...

Anyway I have to display something.  Since its a login, the user needs their
interface.  I think I'll have to introduce another page...  I'd love to
avoid that though...

/T


on 6/4/03 18:10, Lars Torben Wilson at [EMAIL PROTECTED] wrote:

> On Wed, 2003-06-04 at 14:43, [EMAIL PROTECTED] wrote:
>> All ye noble Knights of PHP:
>> 
>> Got an interesting problem,
>> 
>> I am creating a login routine for my PHP website.  Each page is an extension
>> of the root page object.  I am creating a loginpage.php which is an object
>> with a constructor:
>> 
>> class Login extends Page
>> {
>> 
>> function Login($file)
>> {
>>     if(isset($file)){
>>         if(!isset($this->content)){
>>         $this->content = $this -> Display($this -> SetContent($file));
>>          print ($this->content);
>>          } else {
>>          $this -> DisplayNothing();
>>          $this->content = $this -> Display($this -> SetContent($file));
>>          print ($this->content);
>>          }
>>     } else {
>>         mysql_error();
>>     }
>> }
>> 
>> Note the DisplayNothing(); function call, I am attempting to remove what is
>> currently displayed on the browser window and replace it with new content.
>> I am trying to do this by invoking the constructor in another script with a
>> different argument.
> 
> To modify the browser window content after you've already sent it,
> you'd need to use one of client-side scripting, server push, or client
> pull. In general, however, once PHP has sent output to the browser,
> it's gone. The browser has it, and that's it. :)
> 
> Perhaps you could defer sending your content to the client until after
> all your tests have passed and the script knows what it needs to
> display?
> 
> Pardon if I've misunderstood the problem.
> 
> 
> Torben
> 
>> It is not working and I am wondering is anyone can give me some insight into
>> morphing an object?
>> 
>> 
>> Thanks!/T


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to