[PHP] Re: JavaScript in PHP or PHP in JavaScript

2004-07-24 Thread Torsten Roehr
"Robb Kerr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Let me preface this by saying that I don't know JavaScript. I've got a page > that is built by a long complicated JavaScript that I was able to hack just > enough to function the way I wanted. There are some lines of code --

Re: [PHP] Re: Javascript in PHP

2003-06-24 Thread [EMAIL PROTECTED]
Yeah, that's a problem! I corrected it and now it comes out like: Independent Fact Finders Inc. function CheckBox1() { var box1 = window.document.ctype.wr; var box2 = window.document.ctype.pfo; var box3 = window.document.ctype.pr; if (box1.checked == true ) { box2.checke

Fwd: Re: [PHP] Re: Javascript in PHP

2003-06-24 Thread Chris Hayes
additionally, you named the fields WR PR and PFO while you refer to them as wr, pr and pfo. Date: Tue, 24 Jun 2003 16:04:17 +0200 To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: Chris Hayes <[EMAIL PROTECTED]> Subject: Re: [PHP] Re: Javascript in PHP I missed the 1st post but could this be r

Re: [PHP] Re: Javascript in PHP

2003-06-24 Thread Chris Hayes
I missed the 1st post but could this be related to form name being 'crimetype' and the javascript tryin to access the form 'ctype' ? At 15:55 24-6-03, you wrote: i think you have to add "\n" after each row of java script code. $js .= "}\n"; afaik the ; handles that but indeed i would let the f

[PHP] Re: Javascript in PHP

2003-06-24 Thread Harry Wiens
i think you have to add "\n" after each row of java script code. $js .= "}\n"; mfg. harry wiens "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] How can I get a script to work on a page that has HTML generated by PHP and a javascript with functions called