Re: Which Is The Better Approach To Working With Javascript?
- From: Patient Guy <sevisen.adam@gmailDOTHEREcom>
- Date: Tue, 08 Jul 2008 16:01:46 -0500
Jerry Stuckle <jstucklex@xxxxxxxxxxxxx> wrote in comp.lang.php:
Patient Guy wrote:
Which is the better approach in working with Javascript?
1. Server side processing: Web server gets form input, runs it into
the Javascript module, and PHP collects the output for document prep.
2. Client side processing: Web server gets form input and passes it
to PHP which includes the Javascript written in a way to make the
form input processed on the client side and rendered (probably using
DOM function calls) on that side as well.
I posted this <news:Xns9AD554BCD7E9FUVAA@xxxxxxxxxxxx> in an
apparently less trafficked newsgroup and the post was the TLDR kind,
but it has the background and details of why the code must be in
Javascript and why PHP must work with it somehow. It also gives the
details of the server and how it forks and communicates with
processes to parse/generate output.
3. Try a javascript newsgroup. This one is for PHP.
So, based on your response, you are telling me that a PHP processing
implementation has no interprocess communication capability, or ability to
interface with a (Java)script interpreter.
Hint: javascript does NOT run on the server.
A server, or a server-associated process, can start a script host, passing
some form of input to it, and the script host does the script
interpretation, while the calling process waits for output.
However this is achieved, PHP (by design?) has no script interface, based
on your response.
.
- Follow-Ups:
- Re: Which Is The Better Approach To Working With Javascript?
- From: The Natural Philosopher
- Re: Which Is The Better Approach To Working With Javascript?
- From: sheldonlg
- Re: Which Is The Better Approach To Working With Javascript?
- From: Jerry Stuckle
- Re: Which Is The Better Approach To Working With Javascript?
- References:
- Which Is The Better Approach To Working With Javascript?
- From: Patient Guy
- Re: Which Is The Better Approach To Working With Javascript?
- From: Jerry Stuckle
- Which Is The Better Approach To Working With Javascript?
- Prev by Date: Re: Mail() problem
- Next by Date: Re: Which Is The Better Approach To Working With Javascript?
- Previous by thread: Re: Which Is The Better Approach To Working With Javascript?
- Next by thread: Re: Which Is The Better Approach To Working With Javascript?
- Index(es):
Relevant Pages
|