PHP attaching css and JS files to current page
- From: raf.news@xxxxxxxxx ("Alain Roger")
- Date: Sun, 30 Nov 2008 14:23:15 +0100
Hi,
is there a way how a PHP class can attach JS (javascript) and CSS documents
to current web page in which the class is instanced ?
till now i used an "echo" which "write" a <script></script> code into
current document.
in this javascript, i used to have a createElement function to attache
C\other CSS or JS file.
it's not so clean and maybe a better possibility exists. Thanks to let me
know.
--
Alain
-----------------------------------------------------------
Windows XP x64 SP2
PostgreSQL 8.3.5 / MS SQL server 2005
Apache 2.2.10
PHP 5.2.6
C# 2005-2008
- Follow-Ups:
- Re: [PHP] PHP attaching css and JS files to current page
- From: "Eric Butera"
- Re: [PHP] PHP attaching css and JS files to current page
- From: Ashley Sheridan
- Re: [PHP] PHP attaching css and JS files to current page
- Prev by Date: Re: [PHP] Text To Speech Update
- Next by Date: Re: [PHP] PHP attaching css and JS files to current page
- Previous by thread: Text To Speech Update
- Next by thread: Re: [PHP] PHP attaching css and JS files to current page
- Index(es):
Relevant Pages
|