On Sun, Nov 30, 2008 at 8:23 AM, Alain Roger <[EMAIL PROTECTED]> wrote:
> 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 code into
> current document.
> in this
Have you considered using some type of templating system, which can use
class_exists??
Alex
No virus found in this outgoing message. Scanned by AVG Free 8.0
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.11/1820 - Release Date: 29/11/2008
18:52
--
PHP General Mai
you're right if you want to write them directly in the index.php.
but in my case i want the class to do it by itself.
On Sun, Nov 30, 2008 at 3:49 PM, Ashley Sheridan
<[EMAIL PROTECTED]>wrote:
> On Sun, 2008-11-30 at 15:08 +0100, Alain Roger wrote:
> > >
> > > >
> > > > Can you not just w
On Sun, 2008-11-30 at 15:08 +0100, Alain Roger wrote:
> >
> > >
> > > Can you not just write all of the CSS/Javascript that you need
> > > right
> > > from the get-go in the same place you're writing out your
> > > Javascript
> > > now?
> > >
> > >
> > I'm no
>
> >
> > Can you not just write all of the CSS/Javascript that you need
> > right
> > from the get-go in the same place you're writing out your
> > Javascript
> > now?
> >
> >
> I'm not sure I follow you then. You say you want your class to be able
> to incl
On Sun, 2008-11-30 at 14:55 +0100, Alain Roger wrote:
> In fact my class has for purpose to be used in several projects and
> therefore, to write the css/js files from the web page using the class
> would be a mistake in the way that could not be redistributed without
> missing those files.
>
> On
In fact my class has for purpose to be used in several projects and
therefore, to write the css/js files from the web page using the class would
be a mistake in the way that could not be redistributed without missing
those files.
On Sun, Nov 30, 2008 at 2:55 PM, Ashley Sheridan
<[EMAIL PROTECTED]>
On Sun, 2008-11-30 at 14:23 +0100, Alain Roger wrote:
> 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 code into
> current document.
> in this javascript, i use
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 code into
current document.
in this javascript, i used to have a createElement function to attache
C\other CSS or JS file
9 matches
Mail list logo