|
Revision 264, 0.8 kB
(checked in by BCS, 4 years ago)
|
I have gone over to the dark side; I have created an AJAX web app framework. It lets you use AJAXy stuff to, from the client, access a JS proxy to a D object on the server. (and it's all templates ;-)
|
| Line | |
|---|
| 1 |
**** DISTRIBUTED WITHOUT WARRANTY OF ANY KIND **** |
|---|
| 2 |
|
|---|
| 3 |
Bottled AJAX |
|---|
| 4 |
|
|---|
| 5 |
Written by Benjamin Shropshire |
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
This template library generates a JavaScript object declaration that |
|---|
| 10 |
proxies for a D object on the server and a D function that is used |
|---|
| 11 |
on the server to carry out the proxy operations. |
|---|
| 12 |
|
|---|
| 13 |
see echo.d for an example of it's use. |
|---|
| 14 |
|
|---|
| 15 |
To use this program you will need "scrapple.cgi.cgi" It's imported as |
|---|
| 16 |
"cgi.cgi" so you might need to tweak some paths or package names. |
|---|
| 17 |
|
|---|
| 18 |
On my system I build and deploy like this |
|---|
| 19 |
|
|---|
| 20 |
dmd echo.d bottledAJAX.d cgi/cgi.d |
|---|
| 21 |
install -gapache -oapache -m644 u.html /var/www/html/ |
|---|
| 22 |
install -gapache -oapache -m644 request.js /var/www/html/scripts/ |
|---|
| 23 |
install -gapache -oapache -m755 echo /var/www/cgi-bin/ |
|---|
| 24 |
|
|---|
| 25 |
if any of the paths change or the name of the executable changes you |
|---|
| 26 |
will need to modify u.html and/or the build command. |
|---|