Jason,

I haven't done this yet (it is on my list though), but you can use
Active4D as you describe, and you don't have to use XML. You are just
handling a request and sending back information. The only difference is
that with AJAX you are sending back part of a page (or data that would be
transformed to render part of a page) and with traditional A4D code a
complete HTML page would normally be returned.

A similar question was asked in the past week and I believe Aparajita
mentioned he'd publish some AJAX notes soon.

There are also a number of simple PHP AJAX examples on the web that you
could adapt to Active4D. Here is a good one:

http://www.webpasties.com/xmlHttpRequest/

hth,

Brad Perkins

> Probably just not thinking about this the correct way, but can you use
> AJAX to call A4D code?
>
> Following the 4D AJAX tech note, I can see how they make a call to an
> actual 4D method, but can I do this by calling A4D code?  I'd like to
> call a .a4p file or something similar and continue to keep the 4D code
> for my website out of the server code.
>
> One of the major cool points for A4D is keeping all the 4D code for the
> website with the website and not in methods on the server.  How do I do
> this and use AJAX?

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to