Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
AJAX (Asynchronous JavaScript and XML) is a technique for creating seamless interactive websites via asynchronous data exchange between client and server. AJAX facilitates communication with the server or partial page updates without a traditional page refresh.
1
vote
Get date value with jinput
Try to change it to:
"+$dt days"
Also, I may be wrong but, I believe you must provide dates in correct order as if dates diff is <0 then it would return 0 which corresponds to 01/01/1970
1
vote
Ajax call returns html baggage
in your php file there should be something like this:
ob_end_clean();
header('Content-Type: application/json');
echo json_encode($data);
die();
so you will clean output - warning and notices
se …
3
votes
Sending POST data within module - AJAX
without &ignoreMessages you'll not receive system messages from JFactory::getApplication()->enqueueMessage()
Also you can check the plugin strategy I've described in answer to another post:
Using AJAX …
1
vote
Using AJAX in a custom module - how to do it?
Relates to Sending POST data within module - AJAX
And I've posted answer there already.
In a two words: use com_ajax.
How to? Check answer in post mentioned above. … option=com_ajax&ignoreMessages&plugin=EVENT&group=PLUGINGROUP&format=json
it will load plugins of group PUGINGROUP (ajax group is default) and trigger the event onAjaxEVENT() …
1
vote
How to retrieve data from the Joomla DB via jQuery.ajax without controller
IMHO, the clearest solution for this situation would be:
adding &format=json to your query, and point it to whatever view you would like
var response = jQuery.ajax({
type: "GET",
url: "index. …