Solved

XAJAX or Javascript Callback

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

708 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