You are right, there is a reason I am echoing it in php, it is one result of
an if statement.
?php if (basename($PHP_SELF) == index.php) {
echo body onload=\start();initialize();onoff('mainmenu',section,'on')\
onresize=\window.location.reload(false)\ topmargin=\1\
bottommargin=\0\
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
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 page and
Folks,
Can't see an answer anywhere in the archives, so here goes.
This works fine in plain html:
body onload=start();initialize();onoff('mainmenu',section,'on')
onresize=window.location.reload(false) topmargin=1 bottommargin=0
leftmargin=0 rightmargin=0
When I put it in PHP thus:
echo body
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:
body onload=start();initialize();onoff('mainmenu',section,'on')
onresize=window.location.reload(false) topmargin=1 bottommargin=0
leftmargin=0
@ Edwin wrote:
Aaron Merrick [EMAIL PROTECTED] wrote:
This works fine in plain html:
body onload=start();initialize();onoff('mainmenu',section,'on')
onresize=window.location.reload(false) topmargin=1 bottommargin=0
leftmargin=0 rightmargin=0
When I put it in PHP thus:
echo body
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
--
PHP
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
8 matches
Mail list logo