Solved

XAJAX or Javascript Callback

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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)

734 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