Hi Aparajita.
I have decided to go back to using "web_decoy" as my default root.
On Web Connection now runs for all requests and my A4D_PreOnWebConnectionHook mehtod correctly handles whether to let Active4D manage the call or to pass it to 4Ds Web Server.
As a result Active4D pages load correctly and my code to handle 4D Web Server pages also runs. However when I come to serve the result of the latter calls with a Send HTML BLOB, I'm still having trouble with paths.
My directory structure is as follows:
Database App web_decoy (folder) IDPweb (folder containing 4D Web Server HTML documents) Mac4DX
If I need to send one of the documents in the IDPWeb folder what should the path be? For example say I want to send an HTML document named "main.shtml" which is in the IDPWeb folder I have tried the following:
Send HTML Blob("../IDPWeb/main.shtml")
Send HTML Blob("IDPWeb/main.shtml")
Send HTML Blob("main.shtml")Doing this returns a Document not found error (which I assume is Web_Decoy doing its job). What should the path when using web_decoy?
NB I also have "IDPWeb" defined as my root in my Active4D.ini
Thanks (again) in advance.
Michael.
On 21 Jan 2004, at 3:24 pm, Aparajita Fishman wrote:
Anyone else have any comments on not using "web_decoy" but instead pointing to the actual web folder?
If you point to a real web folder, you have problems because On Web Connection will not be called -- 4D will serve the file directly.
To get around this with 4D's web server you either have to prepend _every_ Active4D path with /4dcgi, or you have to:
- Prepend a fake directory to the path of Active4D files, which will cause On Web Connection to be called
- Put code in the On Request handler in Active4D.a4l that removes the fake directory
That should do it. I haven't tested this solution but in theory it should work.
Regards,
Aparajita Victory-Heart Productions [EMAIL PROTECTED] www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________ Active4d-dev mailing list [EMAIL PROTECTED] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
