Re: newbie - function is undefined
| From: | Stuart Dallas | Date: | Fri, 01 Apr 2011 21:56:02 +0000 |
| Subject: | Re: newbie - function is undefined | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312211@lists.php.net to get a copy of this message | ||
On Friday, 1 April 2011 at 22:43, Alex Nikitin wrote:
JavaScript is a browser-side language, browsers have cache, cache sticks
> around, meaning that you can tell the browser to cache the JS file and not
> download it from the server (every time) if its being included on the
> browser end (which js is). All means faster page load times post initial
> load, and less bandwidth. If you include the JS file with php, every time
> you request the page the javascript will be pulled from your hard drive by
> php and sent back as a part of the server response (your end web page).
I think given the nature and level of the original question, talking about the browser cache is only
likely to confuse the poor chap.
Jim: Ignore the browser cache for now and focus on learning the difference between javascript and
PHP and which one should be used in what situations.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
> On Fri, Apr 1, 2011 at 5:32 PM, Jim Giner <jim.giner@albanyhandball.com>wrote:
>
> >
> > function. Try something like:
> > ...
> > echo 'heaading contains: <script>getText("h2")</script>';
> > ...
> >
> > I tried it - no better.
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>