server/test/data/sources_multi
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 08 Mar 2010 19:11:47 +0100
changeset 4830 10e8bc190695
parent 1840 f4b5c15d1147
child 5761 02bccbc4ff1c
permissions -rw-r--r--
[javascript] fix #736185: add_onload / jQuery.bind() vs. jQuery.one() This patch introduces a new 'server-response' event and deprecates the 'ajax-loaded' event. - 'server-response' is triggered by postAjaxLoad() (instead of 'ajax-loaded'). - 'server-response' is also triggered on document.ready(). - The add_onload() method binds the javascript code the 'server-response' event whether or not it's an ajax request, thus removing the need of the jsoncall hackish parameter. The binding is done with jQuery.one() instead of jQuery.bind(). - The javascript callbacks will be passed two extra parameters : a boolean to indicate if it's an ajax request or not, the DOM node (result of the HTTP query). As javascript is what it is, callbacks can safely ignore those two parameters if they don't need them. Backward compatibility is maintained by triggerring an 'ajax-loaded' event when a 'server-response' is emitted.

[system]

db-driver   = sqlite
db-host     = 
adapter     = native
db-name     = tmpdb
db-encoding = UTF-8
db-user     = admin
db-password = gingkow

[extern]
adapter = pyrorql
pyro-ns-id = extern
cubicweb-user = admin
cubicweb-password = gingkow
mapping-file = extern_mapping.py
base-url=http://extern.org/

[extern-multi]
adapter = pyrorql
pyro-ns-id = extern-multi
cubicweb-user = admin
cubicweb-password = gingkow
mapping-file = extern_mapping.py

[admin]
login = admin
password = gingkow