--- Pete <[EMAIL PROTECTED]> wrote:

> hmmm... interesting....  
> 
> How about
> 
> $scripton=1;
> 
> <noscript>
> $scripton=0;
> </noscript>
> 
> if ($scripton)...
> 
> 
> -- 
> Pete Clark

That won't get you too far since the PHP script is processed completely before
any browser sees it.  The <script> and <noscript> tags are processed by the
browser (ie client side).

Normally, a Flash or Javascript detection is performed in the landing page and
the user is taken to a secondary page which uses the technology.

Tools like XmlHttpRequest can serve a purpose.  However, the same problem
remains -- a significant number of browsers have JS turned off so those
functions won't work.  Some browser apps let you turn JS off for most sites and
allow it on certain ones (ie your bank and webmail sites).

The use of AJAX (with or without XmlHttpRequest) seems to be popular because it
is "new" and "trendy" rather than to solve a problem which cannot be solved in
other ways.

One of the things I like about PHP is that it can bring advanced content to the
simplest browsers, including text-only, cel phones, and browsers for the
disabled.  Many of these can't deal with any type of JS, let alone the
specialty items like XmlHttpRequest.

I notice that some of the uses of AJAX focus on sending a request to a server
without a page reload.  Sometimes this is essential (like a Google Maps
application which relies heavily on JS) but other times it seems like someone
has seen too many desktop apps and is trying to get a client-server web app to
behave in exactly the same manner.

There are several tricks which can achieve this no-reload type of application. 
AJAX is one of them.  Some people also use hidden iframes or special image
calls for one-way communication (just a DB insert for example).

AJAX systems tend to be much more complex and tougher to debug than other
methods.  For this reason, the no-reload has to be really worthwhile.

James
_____


James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Fall Semester Begins Sep 7 -- New Classes Start Every Few Weeks.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to