Re: newbie - function is undefined

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

 



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).


~ Alex



On Fri, Apr 1, 2011 at 5:32 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx>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
>
>

[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