Basic format of PHP and Javascript methods

I do know that there are differences in how the code is entered for PHP and Javascript methods in the Programming section. I can create a method in each, but is this the name of the function being called or just a name to hold several functions?

For PHP Methods I believe I do not include the starting or ending PHP tags, but do include everything else? Is this a correct assumption? If so could you show an example in the Scriptcase documentation.

For Javascript methods what is the syntax in the method code. I’ve seen some code, bot not an example of a method in Scriptcase. I have seen the calls to the function. Agais with PHP above could you include the basic setup in the documentation. This would be most helpful.

Thank you.

I’m not sure if I understood what your doubts are…

For PHP Methods you can have a look on this documentation:
http://www.scriptcase.net/docs/en_us…ndex.html#id-3

But the documentation for JavaScript Methods, right below the documentation for PHP Methods, is not right because it’s just a copy/paste from documentation for PHP Methods so it doesn’t work.

Here are two examples, a PHP Method and a JavaScript Method:

[PHP Method] [ATTACH=CONFIG]n79912[/ATTACH]

[JavaScript Method] [ATTACH=CONFIG]n79913[/ATTACH]

php_method.png

javascript_method.png

Thank you for the clarification. I was using the wrong formatting for Javascript methods. It looks like they are almost identical.