Posted by php_dev on 10/12/06 22:32
Phrogz wrote:
> mantrid wrote:
> > I suspect it could be due to using a javascript function in php function.
> > I'm not sure if this is allowed.
>
> JavaScript and PHP have *nothing* to do with one another.
> (Read this http://xkr.us/js/clientserver three times so that you
> understand it.)
>
> PHP produces X/HTML. The web browser sees that code. Now JavaScript
> comes into play.
>
> View Source on your web page to see what code is actually coming out,
> and then you will see why your HTML may or may not be broken. That's
> all the browser cares about.
You may also want to use Mozilla's Web Developer Toolbar, it's very
helpful in debuging JavaScript code.
Hope this helps.
Navigation:
[Reply to this message]
|