www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - AJAX in a (template) bottle

I have written a template library the produces both the client side and server 
side parts of a JavaScript to D object proxy that works off of AJAX like 

link: http://www.dsource.org/projects/scrapple/browser/trunk/AJAX

It comes with an example.

here's the readme:


Bottled AJAX

Written by Benjamin Shropshire

This template library generates a JavaScript object declaration that
proxies for a D object on the server and a D function that is used
on the server to carry out the proxy operations.

see echo.d for an example of it's use.

To use this program you will need "scrapple.cgi.cgi" It's imported as
"cgi.cgi" so you might need to tweak some paths or package names.

On my system I build and deploy like this

dmd echo.d bottledAJAX.d cgi/cgi.d
install -gapache -oapache -m644 u.html /var/www/html/
install -gapache -oapache -m644 request.js /var/www/html/scripts/
install -gapache -oapache -m755 echo /var/www/cgi-bin/

if any of the paths change or the name of the executable changes you
will need to modify u.html and/or the build command.


Sorry about being short, my batteries are almost dead
Mar 12 2008