Language and development rules: Difference between revisions

Jump to navigation Jump to search
m
Updated javascript conf name
m (Updated javascript conf name)
Line 241: Line 241:
Otherwise, we must avoid forcing the column width. Reason is that, in most cases, the browser make a better works to define column width automatically than forced values, and it works whatever is the resolution.
Otherwise, we must avoid forcing the column width. Reason is that, in most cases, the browser make a better works to define column width automatically than forced values, and it works whatever is the resolution.


* javascript code and call to javascripts file into php pages must be avoid. However, if you need to include javascript code, you must add a condition on "$conf->use_javascript"
* Javascript/ajax code and call to javascript files into php pages must be avoided. However, if you need to include javascript code, you must add a condition on "$conf->use_javascript_ajax"
<source lang="php">
<source lang="php">
if ($conf->use_javascript)
if ($conf->use_javascript_ajax) {
{
...  // php code generating javascript here
...  // generated php code with javascript here
}
}
</source>
</source>
Bureaucrats, emailconfirmed, Administrators
149

edits

Navigation menu