Re: Re: PHP output fails from AJAX call
| From: | Ashley Sheridan | Date: | Thu, 30 Jan 2014 21:53:30 +0000 |
| Subject: | Re: Re: PHP output fails from AJAX call | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322783@lists.php.net to get a copy of this message | ||
On Thu, 2014-01-30 at 22:51 +0100, Maciek Sokolewicz wrote:
> On 30-1-2014 15:30, Stuart Dallas wrote:
> > Please familiarise yourself with the console in your browser. If you’re using Safari or
> > Chrome there is a developer console built in, and if using Firefox I recommend installing Firebug.
> > This error, and any others in your Javascript will be displayed in the console and this whole
> > mailing list conversation could have been avoided.
> >
> > -Stuart
> >
> Actually, firefox does have its own (quite good even) developer toolbox
> included by default. Though I still prefer firebug :)
>
> 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.
>
> - Tul
>
+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.
--
Thanks,
Ash
http://www.ashleysheridan.co.uk