Subscribe: Comments on: AJAX Hello World with HTML_AJAX
Added By: Feedage Forager Feedage Grade A rated
Language: English
ajax  dispatcher options  doesn  eichorn  function logic  function  joshua eichorn  joshua  loading  message  page  pear  proxy  request  work 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Comments on: AJAX Hello World with HTML_AJAX

Comments on: AJAX Hello World with HTML_AJAX

The weblog of Joshua Eichorn, PHP, AJAX and Open Source

Last Build Date: Fri, 20 Sep 2013 16:21:22 +0000


By: Joshua Eichorn

Wed, 16 Jul 2008 07:29:39 +0000

James: You have a couple different options, but in every case it amounts to creating custom Open/Load functions. The second parameter to each of the global methods (default: should be a Request object and you could use that for custom loading messages. But if you want loading at the spot of the call i think i would create custom methods for handling the message on the proxy object (or if your not using a proxy on the Request object) proxy.dispatcher.options['Open'] = function() { logic to show message here } proxy.dispatcher.options['Load'] = function() { logic to hide here }

By: James

Wed, 16 Jul 2008 06:19:52 +0000

Hi there, In my web page I have 2 different sections of the page that use AJAX to load information. The trouble i'm having is to work out how to have more than one loading message ('HTML_AJAX_LOADING') in the page. The reason I want this is to have the loading message next to the part that is loading so it doesn;t pop up at the wrong part of the screen. I've done many a web search and poked around but can';t work out how to do it - is there a way round this you'd advise me to follow? thanks

By: PEAR Tutorials | PHP kitchen

Wed, 14 May 2008 20:00:48 +0000

[...] [...]

By: Joshua Eichorn

Tue, 15 Jan 2008 22:58:39 +0000

Oren: HTML_AJAX doesn't support this and you really wouldn't want to do that anyway since making an http request to set a single variable would be horrible slow and inefficient

By: Oren

Tue, 15 Jan 2008 22:57:05 +0000

Is it possible to set php class members without accessing a method. For example: changing the variable $d from the javascript remoteClass.d=4

By: Joshua Eichorn

Mon, 27 Aug 2007 16:03:04 +0000

pfarthing6: The sessions are there because you want to store data in the session. AJAX doesn't get rid of the need of sessions. Things were broken because of PHP5/PHP4 case differences

By: pfarthing6

Sun, 26 Aug 2007 01:20:07 +0000

the working example is broken. Javascript error: remoteHW has no properties. Using FF- Also this seems like way too much work and code to just do a simple xmlHTTP request to get some data off of a server and place it somewhere in a document and just shouldn't even need any session vars to do it.

By: Leo

Thu, 19 Jul 2007 09:09:07 +0000

Hi! I found the solution :D Sorry about my stupid question :D To make PEAR work on Windows, you simple need to add the PEAR installation dir (e.g. c:\php\pear) to the include_path directive in your php.ini. Note: There are some classes (like Schedule/At.php), that do not work on Windows, because they use *nix specific commands.

By: Leo

Thu, 19 Jul 2007 07:13:52 +0000

Do I need copy also the directory HTML/AJAX to the same directory I put the webpage? This is the first time I using PEAR. Therefore, I don't know how it works. require_once ‘HTML/AJAX/Server.php’; Will PHP automatically find the place of the request page in PEAR (in this case, the page is Sever.php), or we have to indicate where it is? When I try the example, It doesn't work unless I copy the directory HTML_AJAX to same place will example.

By: Joshua Eichorn

Fri, 08 Jun 2007 16:48:00 +0000

If your using ie6 then the provided line # means nothing. If you use ie7 or firefox you'll get a more reasonable error message. Using .html instead of .php for the helloworld file shouldn't matter since there is no php in that file.