"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
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
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:
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
"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
--
@ 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 '';
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
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
8 matches
Mail list logo