|
Posted by emc2mmd2 on 08/11/07 09:00
On Jul 5, 7:52 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Kent wrote:
> > Hi:
>
> > I am hoping someone can help me out. I am trying to runjavascript
> > within aPHPfile. Thejavascriptworks fine within a html file but
> > when I move it over to aPHPfile it longer works.
>
> > Any ideas? Is there specific order?
>
> > Thanks in advance!
>
> Javascriptruns on the client;PHPruns on the server.
>
> As long as you either output thejavascriptas you would if it were in
> an HTML file or echo/print it to the browser, it should work fine. The
> client won't care.
>
> But you didn't give us any code, and my crystal ball is broken, so it's
> hard telling what your problem might be.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
Eureka!!!
Thank God for friends like you Jerry.
I'm new at PHP also and got stuck on this, and duh... there it was.
I echoed "<script type="text/javascript">document.write("Hello
World")</script>"
and Bingo!
Thanks again pal.
tony from ecommerceorlando.com
[Back to original message]
|