Just a followup on my excursion in Active4D 4.5 and ajax
On Aug 10, 2008, at 6:28 PM, Steve Alex wrote:
But it would error out on the include($path) with an invalid path
that ended in controllers (mac hd/users/salex/desktop/ads4.5/web/
controllers/ads,,,, or something like that. Almost seems like get
root was giving path to the executable (/web/controllers/ajax.a4d).
I gave up and put my ajax.a4d file back at the root level and now
all is fine.
It turns out that all was not fine. One of my ajax calls called a
function "addCI". I started to get an error:
Fusebox core: The Fusebox framework could not find the circuit you
requested: addCI. Took a little while to figure out what broke.
All of my ajax calls usa a URL xxx.aidt.edu/ajax.a4d?
action=what&stuff=things. Where in the above call action=addCI.
The keyword there is the _query variable action. I also stored the
variable in a hidden field named "action" for some reason.
In fusebox.conf.a4i in the demo
define(fuseaction; "action")
I changed all my uses of the variable named "action" to "ajaxAction"
and it solved the problem. Guess I was colliding with the action being
set in "on request"
One good thing out of this is (hate to admit this after about 4 years)
I learned how to use "write to console" to help debugging.
Steve
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/