* Thus wrote Scott Fletcher:
> When an include file contain plain JavaScript codes, with the echo command
> before and after the include file. I get the javascript error saying
> "undefined jsTest"... Anyone know why is that?
With the information you've provided, jsTest is never accessed. So
its
Oh never mind... I looked up at
http://us3.php.net/manual/en/function.include.php and saw this...
--snip--
When a file is included, parsing drops out of PHP mode and into HTML mode at
the beginning of the target file, and resumes again at the end. For this
reason, any code inside the target file
Okay, I still get this same error when I move the jsTest to before the
function
FletchSOD
"Neal Owen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You defined jsTest after the include where it should be before.
>
>
> On Thu, 2004-07-15 at 16:24, Scott Fletcher wrote:
> > When
It doesn't matter where because the webpage is loading, the JavaScript is
not running while loading. It only run when the user click on the pop-up
window. It worked fine if I use HTML/JavaScript only. Just that it doesn't
work when I use PHP.
FletchSOD
"Neal Owen" <[EMAIL PROTECTED]> wrote in m
You defined jsTest after the include where it should be before.
On Thu, 2004-07-15 at 16:24, Scott Fletcher wrote:
> When an include file contain plain JavaScript codes, with the echo command
> before and after the include file. I get the javascript error saying
> "undefined jsTest"... Anyone k
5 matches
Mail list logo