Re: Communication between PHP Server code and HTML/JavaScript client without refreshing the page
| From: | Konstantin S. Kurilov | Date: | Fri, 04 Jul 2003 13:29:48 +0000 |
| Subject: | Re: Communication between PHP Server code and HTML/JavaScript client without refreshing the page | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153989@lists.php.net to get a copy of this message | ||
Hi,
Excuse, skip one file.
It is full set of RPC files.
- Konstantin.
"Konstantin S. Kurilov" wrote:
>
> Hi,
>
> It is RPC software.
>
> I have used it. It work for me.
>
> - Konstantin
>
> ===============================
> FrЕn: Jon Smirl [SMTP:jonsmirl@mediaone.net]
> Skickat: den 12 mars 1999 05:21
> Till: php3@lists.php.net
> AngЕende: [PHP3] RPC for PHP from the browser
>
> This is a port of Microsoft's remote scripting that supports PHP as
> the
> processing system instead of ASP. The Script directory is an exact
> copy of
> the download available from http://www.microsoft.com/scripting
> but is
> has
> been extracted out of the windows exe to allow access from Unix.
>
> Remote scripting allows RPC calls to PHP objects located at the
> server.
> These calls can be synchronous or asynchronous. You can build some
> really
> cool pages by combining DHTML and RPC. In the simple case this lets
> you
> change part of a page without causing a reload. Remote scripting is
> supposed
> to work in MSIE and Netscape, but I haven't checked it in Netscape.
>
> The MS client components are unchanged, you use RSPROXY.CLASS and
> RS.HTM
> exactly as you would for the ASP engine. The only thing to watch for
> is that
> PHP method names are not case sensitive and Javascript names are. The
> result
> is that you need to always use lower case method names from your HTML
> file.
>
> RS.INC replaces RS.ASP on the server. They should function exactly the
> same,
> if they don't let me know.
>
> RSPROXY.JAVA source code is available by buying MS Visual Interdev.
> They
> distribute the compiled class for free. RSPROXY uses http GET to call
> remote
> methods which limits the amount of parameters that can be passed. At
> some
> point I'll recode it to use PUT and allow unlimited parameters.
>
> Simphp.htm -- client test program
>
> Simple.php3 -- server object being remoted
>
> rs.inc -- server support for remote scripting in php3
>
> Jon Smirl
> jonsmirl@mediaone.net
>
> ===============================
> Jon Haworth wrote:
> >
> > Hi Sharat,
> >
> > > How do I communicate betwen an HTML page
> > > having JavaScript and a PHP server code without
> > > having to refresh the HTML page.
> >
> > I don't think this is possible: once PHP has run (and sent your Javascript
> > to the browser), it's finished - you can't use it again until the next time
> > the page loads.
> >
> > If you want to do this sort of thing you're looking at a Java applet or
> > something along those lines.
> >
> > Cheers
> > Jon
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> ------------------------------------------------------------------------
> Name: simple.php3
> simple.php3 Type: PHP3 (application/x-unknown-content-type-php3_auto_file)
> Encoding: base64
>
> Name: simphp.phtml
> simphp.phtml Type: PHTML (application/x-unknown-content-type-phtml_auto_file)
> Encoding: base64
>
> Name: RSProxy.class
> RSProxy.class Type: Java Class File (application/x-unknown-content-type-javaclassfile)
> Encoding: base64
>
> Name: rs.js
> rs.js Type: JavaScript Program (application/x-javascript)
> Encoding: 7bit