This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
devel:hacking [2013/01/30 09:15] norangshol [Javascript] X-NAV-AJAX doc |
devel:hacking [2013/01/30 09:42] norangshol [Accessing resources with ajax requiring authentication] |
||
---|---|---|---|
Line 141: | Line 141: | ||
So make sure to include the ''**X-NAV-AJAX**'' header so you will get proper HTTP response code in the reponse from your request. | So make sure to include the ''**X-NAV-AJAX**'' header so you will get proper HTTP response code in the reponse from your request. | ||
+ | |||
+ | NAV has a shortcut for fixing this in ''default.js'' (adds a function in the public namespace NAV) which attaches the required handlers for jQuery by doing: | ||
+ | <code>NAV.addGlobalAjaxHandlers()</code> | ||
+ | |||
====== Database ====== | ====== Database ====== | ||
NAV uses PostgreSQL as its database backend. Namespaces (schemas) are | NAV uses PostgreSQL as its database backend. Namespaces (schemas) are |