You are here: Re: PHP and Javascript « PHP Programming Language « IT news, forums, messages
Re: PHP and Javascript

Posted by Eric Farraro on 07/26/06 21:37

This should work fine. View the source of the page after it has
loaded, and see if you can see the script tags that should be present.

french_roast@sbcglobal.net wrote:
> fsidler@nospam.gmail wrote:
> > french_roast@sbcglobal.net wrote:
> > > I have PHP 5 installed on my windows machine. I have a drop down menu
> > > that requires javascript. When I call <?php include "filename.php" ?>
> > > and rename my html file to .php, the Javascript doesn't run on the
> > > client. Is there some sort of setting required? Maybe a bug in php?
> > > Any information would be helpful.
> > To be hones, i don't exactly know what you mean, but let me tell you:
> > PHP and JS are two very different things. PHP gets executed after the
> > server recieved the request. It then sends you a plain HTML document.
> > In that HTML document, the browser looks for initiation of JavaScripts.
> > So, if a javascript is not executed, this means you have something
> > wrong in your HTML or JavaScript code. It has nothing to do with PHP.
> > Try pasting your scripts.
>
> Pasting the scripts worked. It's strange that SCRIPT html tag didn't
> work with a PHP file under windows.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация