Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread John Nichel
Aaron Wolski wrote: Ok.. here are 3 links: https://celestica.tristarpromotions.com/NEW/index2.php This link... you'll see that the rollover effects on the top menu work. The external JS file (called: jsstuffnew.php) has code that looks like: img1on = new Image(); img1on.src = "Graphics/home_on.gi

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Curt Zirzow
* Thus wrote Aaron Wolski: > > > > > > What error messages are produced? > > What does the remotely included file output? > > Does the second variable have value? > > Can you provide a link to where we can see the issue at play? > > So on, and so forth. > > > > Look at the source of your page t

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Aaron Wolski
> -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > Sent: October 5, 2004 4:06 PM > To: PHP Mailing Lists > Subject: Re: [PHP] why this doesn't work as an external file but does > internally? > > Please reply to the list, and not just an i

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Aaron Wolski
olski [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 05, 2004 1:01 PM > To: 'Jay Blanchard'; [EMAIL PROTECTED] > Subject: RE: [PHP] why this doesn't work as an external file but does > internally? > > > > > > -Original Message- > > Fro

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Matthew Sims
> Hi guys, > > I have this code Javascript code: > > if (document.images) { > > img1on = new Image(); img1on.src = " ?>Graphics/"; > img2on = new Image(); img2on.src = " ?>Graphics/"; > > Regards, > > Aaron > When you mix PHP and javascript together in an external file, the file needs

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread John Nichel
Please reply to the list, and not just an individual person. Aaron Wolski wrote: -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: October 5, 2004 3:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] why this doesn't work as an external file but does internally? Wh

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Jay Blanchard
[snip] If that was true then why does this work: img1off = new Image(); img1off.src = "Graphics/home_off.gif"; I certainly didn't generate it with PHP and it was included as an external file. [/snip] If this is true then your problem is solved. if not echo "img1off = new Image(); img1of

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Aaron Wolski
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: October 5, 2004 3:52 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] why this doesn't work as an external file but does > internally? > [snip] > And the web has these JavaScript l

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Jay Blanchard
[snip] I have this code Javascript code: [/snip] And the web has these JavaScript lists! Quaint, no? Anyhow, to make this work you will need to generate your JavaScript code with PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread John Nichel
Aaron Wolski wrote: Hi guys, I have this code Javascript code: When I include it in the main page it works without any problems. When I link it as an external file it doesn't work. As a side note, the following code example works in an external JS file: img1off = new Image(); img1off.src = " ?>G