Solved

XAJAX or Javascript Callback

Posted on 2012-03-27
5
940 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 110

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

724 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