Re: [PHP] Saving css state in javascript and passing to php via form submit



On 3/31/07, Tijnema ! <tijnema@xxxxxxxxx> wrote:
On 3/31/07, Jochem Maas <jochem@xxxxxxxxxxxxx> wrote:
> Tijnema ! wrote:
> > On 3/30/07, Jochem Maas <jochem@xxxxxxxxxxxxx> wrote:
> >> Tim wrote:
> >> > > > > > >
>
> ...
>
> >> personally I prefer JSON formatted data, for which there are even a
> >> couple of
> >> functions available in newer versions of php (otherwise you can find
> >> code on the net
> >> easily enough to handle JSON data creation/parsing):
> >>
> >> http://php.net/json
> >
> > I prefer not to do a lot of processing in Javascript, what i usually
> > do is send plain HTML and directly output it inside a <div>
>
> 'processing' JSON formatted data is a matter of running a single eval()
> line in javascript!?!
>
> just outputting HTML directly into a div is useful in many simple
> situations but it doesn't leave a whole lot of room for any real client
> sided application logic ...

All that "client side application logic" can also be done in PHP.
Where's the sense in learning to work with JSON, if it can be done in
PHP too? PHP is a lot faster then javascript right?

Tijnema

I've did a few test on this PC(AMD64 3200+), it's running EasyPHP
(Apache+PHP+MySQL), and it shows me that PHP is about twice as fast
then Javascript.(Tested using IE6, FF wasn't working because script
took too long to execute, which generates messages on firefox, and
which didn't let me finish the script)

Tijnema
.



Relevant Pages

  • Re: [PHP] Script feedback: insert string into another string
    ... Tijnema! ... Woot! ... I moved the script to a new location with a more fitting name: ...
    (php.general)
  • Re: [PHP] logging erros and user access to logs
    ... Tijnema! ... You can simply put the phpinfo() at the end of your script. ... Sent from the PHP - General mailing list archive at Nabble.com. ...
    (php.general)
  • Re: [PHP] phpinfo displays blank page
    ... On 6/20/07, Tijnema wrote: ... So why doesn't my script work? ... you execute the PHP CLI with? ... >> you may have php setup to log elsewhere than the apache error log - if so ...
    (php.general)
  • Re: [PHP] dst and strtotime
    ... On 3/13/07, Tijnema! ... >>> Rob. ... It is not a PHP problem, i just checked it on a server running ... scalable system for accessing system services | ...
    (php.general)
  • Re: [PHP] Dreamhost! PHP as CGI!???
    ... Hi Tijnema! ... "DreamHost currently allows several PHP configurations. ... While it's no longer officially supported you currently still have the possibility to have PHP running as an Apache module. ...
    (php.general)