First about integrating backbase and MODx.
I solve my problem (not displaying a page with WebLogin). And there were two issues:
1. It’s not possible to use ampersand (&) in backbase they use & inspite. And WebLogin put some JavaScript code on a page. It is easy to solve it you just need to put all JavaScript code in a file and just call it (but you need to modify WebLogin php files).
2. Backbase don’t work if there are mistakes in html. And there are several mistakes in original WebLoginSideBar chunk (like <span>...<span> but it should be <span>...</span>) etc...
Now I’ve got a new problem: I want to make a real Ajax login. It’s very easy to make it with backbase:
a) you need to create a form description in XML, there you point to php file which will proccess post data from the form
b) then you just make a php file which will send data back to your form.
So, I tried to make a proper php file using WebLogin as a source to process a form. But It stops and write in backbase debugging tool (cool thing) that "Call to a member function escape() on a non-object". A string that causes it is:
$givenPassword = $modx->db->escape($_POST['password']);
Why that happens? Maybe I should do something before calling that function?
Second, about backbase and other Ajax frameworks.
If you use backbase on a commercial site you need to pay money (I don’t know how much), but I’m not doing it at the moment. And still it is very intersting how they implement that...
As I digged around I found a lot different ajax approachs. But it worth to mention I think only two of them: Google Web Toolkit (GWT) and Dojo.
GWT makes incredible things - it took Java code and converts it to JavaScript.
+ absolutly free
+ big community
+ it wouldn’t just "die", google will support it
- you need to know Java
- it’s not so simple to understand how it works
- there ara no good IDE’s for it (when it’s not just a hyper text but a real program in Java you will need one). There are several projects that attemp to make an IDE on Eclipse basis, but they still more a concept then a tool.
Dojo more likely libraries for JavaSript.
+absolutly free
+ big community
+ easy use
+ easy learning curve
- may "die" (but big companies like IBM support it)
- it’s not a framework, but good libraries
I think Google as always will rule. It’s approach has a great potential. It’s now needs only two things: a good manual and IDE...
But still I found another way. It has it’s limits but...