Commit Graph

16 Commits

Author SHA1 Message Date
Ralf Becker
585e313851 fix redirects in a popup and new egw_exception_redirect to be used in hooks/callbacks like for addressbook.edit to redirect to a different location
r49022: resize import popup to regular compose size
2014-10-17 12:51:02 +00:00
Ralf Becker
6617d2a1fe only log ajax requests which represent former GET requests or submits, to cut down updates to egw_access_log table 2014-09-10 18:39:07 +00:00
Ralf Becker
7044947083 fixed not working redirect to login, after changes in shutdown handling 2014-02-25 06:51:56 +00:00
Ralf Becker
7d90086ae4 fixed caching in a couple of places:
- user.php was not reloaded if (session-)preferences changed eg. language via select-box in login, because we used Expires header, but did not force a different url
- (user|config|images).php now has etag on url, to force reload by browser as we use an Expires header (changed images still need Admin >> clear cache to rebuild image cache)
- preferences are now loaded via a cachable GET request
2014-01-18 17:48:26 +00:00
Ralf Becker
38798b872d Force use of singleton: $response = egw_json_response::get(); not using it causes response being wrapped in an other response 2013-08-25 12:42:55 +00:00
Nathan Gray
4fc2691b6a Avoid double includes 2012-09-19 16:22:21 +00:00
Ralf Becker
516b977472 ability to queue ajax requests on the client and send them as a single ajax request every N ms to the server
a) instead of a single request like: new egw_json_request(menuaction, params).sendRequest(true, callback, context); 
b) you call: egw.jsonq(menuaction,params,callback,context)
The server callback is identical for both kinds of requests. All egw_json_response methods can be used and the callback is optional.
2011-09-13 17:27:02 +00:00
Ralf Becker
fe086b752b make sure egw_json_response object get instancated, so it's destructor get called and sends at least an empty response object, checkpoint dont like empty HTTP responses 2011-05-03 19:43:51 +00:00
Klaus Leithoff
aecfe9d768 disable dla_update for xajax felemimail call to refresh MessageList and FolderList periodically 2011-04-13 13:31:09 +00:00
Ralf Becker
6836518858 removed unnecessary refresh_table from update, as it makes problems with PostgreSQL 2011-03-14 17:50:22 +00:00
Andreas Stöckel
6558a861a1 Added error message if the json content got thrown away because there was javascript in it 2010-06-29 12:58:55 +00:00
Andreas Stöckel
d8983b6cd1 Added wrapper for xajax.addScriptCall(), added ?cd=10 to json.php response again 2010-06-11 11:41:12 +00:00
Andreas Stöckel
f5d08b580f Fixed problem with generation of numerical indices in _egw_json_getFormValue, using the new global parameter of egw_json_response.redirect in json.php 2010-06-11 10:22:49 +00:00
Ralf Becker
b672e1941b fixed wrong method name, had to be alert() not addAlert() 2010-06-08 09:34:49 +00:00
Ralf Becker
a3bb4afe1b documenting and adding exception and redirect handler to json handler 2010-06-01 18:54:31 +00:00
Andreas Stöckel
0c243b49a3 - Updated JS and PHP egw_json code
- Added array_stripslashes() to common_functions.inc.php
- Added json handler (json.php)
2010-06-01 14:20:55 +00:00