RE: [PHP] SOLVED: why this doesn't work as an external file but does internally?
| From: | Aaron Wolski | Date: | Wed, 06 Oct 2004 20:01:32 +0000 |
| Subject: | RE: [PHP] SOLVED: why this doesn't work as an external file but does internally? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198775@lists.php.net to get a copy of this message | ||
Hi All,
Just wanted to thank everyone for their advice and help.
What I ended up doing is simply doing an include() of the JS code
instead of externally linking to the file.
This works perfectly.
Thanks again everyone! I appreciate it.
Regards,
Aaron
> -----Original Message-----
> From: Aaron Wolski [mailto:aaronjw@martekbiz.com]
> Sent: October 5, 2004 4:51 PM
> To: 'John Nichel'; 'PHP Mailing Lists'
> Subject: RE: [PHP] why this doesn't work as an external file but does
> internally?
>
>
>
> > -----Original Message-----
> > From: John Nichel [mailto:john@kegworks.com]
> > 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 individual person.
> >
> > No. I turn my radio on, but it doesn't work, what's the problem?
See
> > what I mean? The question doesn't supply enough information to make
> an
> > educated guess as to what the problem may be.
> >
> > 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 that "doesn't work", where the JS is
> > supposed to be, and chances are, you'll see the problem.
>
> 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 = "<?php echo $base_url;
> ?>Graphics/home_on.gif";
>
> https://celestica.tristarpromotions.com/NEW/index.php
>
> This link... you'll see that the rollover effects on the top menu DO
NOT
> work. The external JS file (called: jsstuff.php) has code that looks
> like:
>
> img1on = new Image(); img1on.src = "<?php echo $base_url;
> ?>Graphics/<?php echo $img_home_on; ?>";
>
> As you can see, the difference between the two is the fact that the
> image FILE NAME is hard coded into the file as opposed to calling.
>
>
> https://celestica.tristarpromotions.com/NEW/index3.php
>
> This link... you'll see that the rollover effects work as well.
Instead
> of having an external file I have embedded the JS code directly into
the
> page.
>
> Additionally, I have use code that looks like:
>
> img1on = new Image(); img1on.src = "<?php echo $base_url;
> ?>Graphics/<?php echo $img_home_on; ?>";
>
>
> Having visuals... does that help communicate what the problem is?
>
> In terms of what errors I am seeing, etc... I cannot tell you that
> because NO errors come up at all, even with the external pages.
>
> Thanks John. Hope I explained it a bit better this time around.
>
> Regards,
>
> Aaron
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>