Solved

XAJAX or Javascript Callback

Posted on 2012-03-27
5
884 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 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now