Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread @ Edwin
"Aaron Merrick" <[EMAIL PROTECTED]> wrote: > You are right, there is a reason I am echoing it in php, it is one result of > an if statement. Well, I thought so :) ...[snip]... > I tried echoing with single quotes - no change. So I compared the view > source of the double quoted php generated p

Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread Aaron Merrick
I'm not constructing it with, it is just included in the file. Does that clarify? Or did I misunderstand your point? On 11/13/02 1:47 AM, "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote: > You didn't show how you construct the JavaScript string in PHP - I'm sure > the problem is with quoting in

Re: [PHP] Works in html, not when echoed in PHP

2002-11-13 Thread Aaron Merrick
You are right, there is a reason I am echoing it in php, it is one result of an if statement. "; } else { echo ""; } ?> I tried echoing with single quotes - no change. So I compared the view source of the double quoted php generated page and of the html generated page - they are identical:

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread Ernest E Vogelsinger
You didn't show how you construct the JavaScript string in PHP - I'm sure the problem is with quoting in there. Have a look at your output in the browser (do a "View Source" or whatever your Browser calls it), and check the JS your PHP application constructed. You'll spot the error... At 05:28 13

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread @ Edwin
"Chris Shiflett" <[EMAIL PROTECTED]> wrote: ...[snip]... > Yes, this is the same code that "works fine in plain html". Why echo it in PHP if it is static? Good question ;) But I'm sure there's a good a answer :) Besides, why would anybody want to do that if there's no good reason? - E --

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread Chris Shiflett
@ Edwin wrote: "Aaron Merrick" <[EMAIL PROTECTED]> wrote: This works fine in plain html: When I put it in PHP thus: echo ""; When the page loads, I get an "Error: 'menuObj' is null or not an object" I think php is parsing your js code. Have you tried echoing with single quotes? echo '';

Re: [PHP] Works in html, not when echoed in PHP

2002-11-12 Thread @ Edwin
Hello, "Aaron Merrick" <[EMAIL PROTECTED]> wrote: > Folks, > > Can't see an answer anywhere in the archives, so here goes. > > This works fine in plain html: > > onresize="window.location.reload(false)" topmargin="1" bottommargin="0" > leftmargin="0" rightmargin="0"> > > When I put it in PHP thu

[PHP] Works in html, not when echoed in PHP

2002-11-12 Thread Aaron Merrick
Folks, Can't see an answer anywhere in the archives, so here goes. This works fine in plain html: When I put it in PHP thus: echo ""; When the page loads, I get an "Error: 'menuObj' is null or not an object" The onoff() function is what contains the menuObj, so I suspect the single quotes a