Calling .dyalog with AJAX
3 posts
• Page 1 of 1
Calling .dyalog with AJAX
In my page, I'd like to integrate a new .dyalog-page to retrieve and format some data and return it via JSON for further processing by JS.
How can I return that JSON-Array from the .dyalog-page (in response to the ajax-call)?
How can I return that JSON-Array from the .dyalog-page (in response to the ajax-call)?
-
MBaas - Posts: 156
- Joined: Thu Oct 16, 2008 1:17 am
- Location: Gründau / Germany
Re: Calling .dyalog with AJAX
I found it:
the called page has to have a public method 'APLJax' which may return a string. (It would be nice if it was possible to return a JSON-Array as well, but I haven't been able to do so - pls. correct me if it is)...
the called page has to have a public method 'APLJax' which may return a string. (It would be nice if it was possible to return a JSON-Array as well, but I haven't been able to do so - pls. correct me if it is)...
-
MBaas - Posts: 156
- Joined: Thu Oct 16, 2008 1:17 am
- Location: Gründau / Germany
Re: Calling .dyalog with AJAX
And JSON is possible as well!
The jQuery-Call is something like
and then APLJax may return R← 0(7160⌶) of a vector :-)
The jQuery-Call is something like
- Code: Select all
$.ajax({
method: "GET" ,
dataType: "json" ,
url: "listen_details.dyalog",
data: {id: the_id} ,
...
and then APLJax may return R← 0(7160⌶) of a vector :-)
-
MBaas - Posts: 156
- Joined: Thu Oct 16, 2008 1:17 am
- Location: Gründau / Germany
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group