> I tried adding a call to Clear Response Buffer before the $json->write, but 
> this had no effect.  I have a hazy recollection that there is something else 
> I need to do when using fusebox to clear the output buffer but I don't recall 
> the way to do this.

In your top-level fbx_settings.a4d, you have to do something like this:

if ($fusebox{"fuseaction"} = "ajax@")
    $fusebox{"layoutDir"} := ""
    $fusebox{"layoutFile"} := ""
else
    $fusebox{"layoutDir"} := "layouts"
    $fusebox{"layoutFile"} := "lay_main.a4d"
end if

I use a convention of prefixing all of my ajax fusactions with ajax_, that 
makes it easy to check for them.

Many thanks,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoy.org

_______________________________________________
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