Solved

XAJAX or Javascript Callback

Posted on 2012-03-27
5
894 Views
Last Modified: 2013-11-19
Hello,

Actually i'm using xAjax and PHP... xajax is an extension between PHP and AJAX with the same features than AJAX but more accessible...

In the new version of XAJAX, a method to call a xajax function isnt working...

This project is like dead... great project, but nobody answer in forums, the last release is 2010...

http://www.xajax-project.org/

Anyway, somebody here is using xAjax?

itsnt working with the last xajax version... calling in javascript a function synchronous

xajax.call(FUNCTION_NAME,
      {
          mode:'synchronous',
          parameters:[SOME_PARAM]
          }
    );

Any idea?

xajax. -> it exists, since the code has many calls like xajax.config.method, xajax.request.URI, all in javascript, what seems like this object "xajax." really exists in the code...

Regards,
0
Comment
Question by:cebasso
  • 3
5 Comments
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 37771790
No points for this, but the canonical AJAX library is jQuery.  Your best solution may be to convert from XAJAX to jQuery.
http://docs.jquery.com/Tutorials

Best regards, ~Ray
0
 
LVL 4

Author Comment

by:cebasso
ID: 37771803
Hey Ray, thanks for help!

Really, its a good idea... i already worked with XAJAX/JSON/JSONP but using xAjax is more accessible, more easy hehe

But thanks anyway for help!

I'll wait, maybe somebody face this problem too and solved...

Thanks!
0
 
LVL 7

Expert Comment

by:designatedinitializer
ID: 37798602
:)
give it up and do like Ray says...
don't be afrai of jQuery; it's pretty easy too.
0
 
LVL 4

Accepted Solution

by:
cebasso earned 0 total points
ID: 37800688
Hello,

I found the way... contacting the project developers...

just changing from xajax.call to xajax.request...

xajax.request({xjxfun:'FUNCTION_NAME'},
    {
    mode: 'synchronous',
    parameters:[SOME_PARAM]
    }
  );

Now i think that i should delete this question... but maybe another one has the same problem and here is the answer...
0
 
LVL 4

Author Closing Comment

by:cebasso
ID: 37928199
I don't wanna points for this... but i can't accept another solutions since everybody is telling to use pure ajax/jquery but my question was about xajax... and was possible to do exactly how that i want...
Thanks anyway for help!
Regards,
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question