Re: [PHP] Calling PHP functions from within javascript

From: Kim Steinhaug (kim_at_steinhaug.com)
Date: 11/13/03


To: php-general@lists.php.net
Date: Thu, 13 Nov 2003 22:32:33 +0100


"scripting techniques and a hidden iframe"

Ahh... Nice one! This accually didnt come to mind at all for me,
probably because this sort of scripting soon gets very complicated
given that such applications are supposed to work flawlessy for the
end user. And to many loading windows (hidden frames), and scripts
waiting for pages to load is - atleast in my experience - not the way of
doing
things, as there has to be alot of "what if the data doesnt arrive..."
scenarios.

But hey, the author didt accually say what he was supposed to use this
for, so I should be thinking to much application here..

But nice, we now have 3 ways of "doing" this.
1. Javascript, and loading external files. Bad sollution.
2. XML, loading the data. My favourite as you nicely pass GET variables
    into the URL you get,
3. And last, Javascript and iFrame/frames based loading. Again, bad move
    in my opinion, as in the end there is alot op PHP work here - and alot
of
    javascript work here, and you could just do all with a little PHP.

developer.irt.org has some nice articles for those of you who are interested
in
dwelling down into the javascript file method :
http://developer.irt.org/script/file.htm
also an article (havnt read it) about Javascript and DB, through data
binding :
http://tech.irt.org/articles/js060/index.htm

Okidoki.

Kist
---------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.



Relevant Pages

  • Re: AJAX.NET and prototype.js
    ... Javascript is an ideal language for client-side scripting ... (particularly browser scripting) ...
    (comp.lang.javascript)
  • Re: java script issue
    ... You already have the answer to your question "enable Javascript" on your PC. ... should see radio buttons marked as Scripting-Active Scripting and the enable ... 'Enable Java Script'. ... legal dispute directed at Microsoft. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: FYI WatchGuard Security Alert
    ... >> JavaScript, so have all your IE users disable JavaScript in IE. ... some legitimate sites use Java scripting and Active ... this attack was targeting "popular destinations such as ...
    (comp.security.firewalls)