First off, I really like some of what I've seen. Played with the demo
and like the pretty URLs and the Controllers/Models/Views approach.
Thought it was so neat I tried to convert an existing application
using the demo structure.
With just a little moving stuff around, I found that ALMOST everything
worked - that is until I got to my few ajax calls. Just to save some
other people time, thought I'd relay my experience.
First of when I said convert, I mean more than just Active4D 4.5. I
decided to get rid of a bunch of crappy CSS I inherited and some other
crap. I started with the pure Demo and just moved some stuff around
getting it to work. Moved a couple circuits to the Controllers/Models/
Views approach, but then started trying to clean up the CSS. When I
got to my first ajax call, it failed with an error of an unknown
fusebox circuit. Took me a long time to figure out that in my old
Active4d.ini it executed all *.a4d files. The demo is set just to
index.a4d and image.a4d.
After a few hours I was still having problems. I had moved my ajax.a4d
file from the root level to the controllers folder - where sed and
image where located. Still could not get it to work. I had some code:
$path := "ads/app/estimates/lineitems/pos/po_detail/" + $page + ".a4d"
if(file exists(join paths(get root; $path)))
include("ads/app/estimates/lineitems/pos/qry_allVendors.a4d")
include($path)
else ....
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.
I'll do some more debugging later on, but I'm too busy throwing away
crap.
Steve Alex
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/