User tests: Successful: Unsuccessful:
There are some cases we get some strange message on ajax errors. Thsi happens when, for instance, when we use the new vannila js Joomla.request
instead of the jquery ajax methods.
It seems this happens because jQuery ajax error returns different values than plain vanilla js methods do.
This PR intends to make those messages more useful in this contexts.
$app = JFactory::getApplication();
$app->setHeader('Content-Type', 'application/json; charset=utf-8');
$app->sendHeaders();
echo jason_encode('a');
$app->close();
die();
None.
@Fedik please review this, as you were the one that created the new Joomla.request method, and i could be missing something here.
@dgt41 please check too.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | JavaScript |
I have tested this item
Title |
|
Title |
|
||||||
Labels |
Added:
?
|
Labels |
Removed:
?
|
I have tested this item
Already using it in J4
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Milestone |
Added: |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-11-04 09:04:15 |
Closed_By | ⇒ | rdeutz |
thanks! looks good.
I try to test in next days