[geeklog-devel] Add a new feature handle the Ajax request

Kenji ITO geeklog at mystral-kk.net
Sun Jan 5 03:14:00 EST 2014


Yoshinori wrote:

> Actually, I suggest modification of COM_startBlock function in relation to
> this discussion.
> Currently, a JavaScript code is embedded in the COM_startBlock function.
> The reason is because to be embedded the values of $LANG32[60] and
> $_CONF['theme'] in the JavaScript code.
> Since this function embeds div elements in a head element of a HTML
> document, it can not pass the W3C HTML validation.
> And it is not elegant for me.
>
> I want to move JavaScript code to an external file (e.g. ajax_parts.js).
> Using Ajax, the values of $LANG32[60] and $_CONF['theme'] can be obtained
> dynamically.

It is too much to get language variables via Ajax.  Please have a look at
the getHeader method of scripts class (system/classes/scripts.class.php)
in which I created a global variable named geeklog to have access to some
Geeklog variables.
-- 
Kenji ITO
http://mystral-kk.net/





More information about the geeklog-devel mailing list