Re: Re: PHP output fails from AJAX call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ashley Sheridan wrote:

> On Thu, 2014-01-30 at 22:51 +0100, Maciek Sokolewicz wrote:
>
>> On a sidenote: I would suggest installing and using JQuery for all this 
>> kind of work. It makes making an ajax request and binding it to various 
>> places in your code / design a LOT easier.
> 
> +1 for jQuery, as it gets around the problem I highlighted earlier where
> different browsers implement ajax in different ways. jQuery unifies
> those methods into one call.

Um, the XMLHttpRequest object is rather ubiquitous nowadays, so there's
no need to fall back to ActiveX objects, unless support for IE 6 is
absolutely needed -- however, there are users who have JavaScript
disabled, so a pure HTML fallback is reasonable anyway.  IMO, jQuery
doesn't really simplify Ajax requests, and particularly $.get() is
deceptive, because it doesn't offer an error parameter, so error
handling is easily overlooked.

-- 
Christoph M. Becker

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux