I'm using wiki for make a documentation, but some of it require javascript. I have some code that work well in html but when i'm try running it in .php extension running in apache server, my page doesn't show up with some error said that ---"length" is null or not an object----. This happened in my webserver as well inside wiki. in wiki i put <nowiki><html> javascript </nowiki></html> it work well with other simple code any idea how to fix this? thank you.
The javascript is probably interpreted as php code. See if you can get it out of the <php? .. ?> blocks. If you really need it in a piece of php code use the echo function to show it in the resulting html code. And I don't know what the nowiki tags do with the software you are using, but you have them nested the wrong way, it should be either <html> <nowiki></nowiki></html> or <nowiki><html></html></nowiki>.