Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   php and xmlhttprequests (http://www.go4expert.com/forums/php-and-xmlhttprequests-t3025/)

jurgen1604 15Feb2007 15:06

php and xmlhttprequests

I'm working on a web application and for the first time I'm using Ajax. The problem I encouter is that when requesting a php file I get a fatal error because all the includes that I have done in my index.php file are not longer known in my requested file.

like this:
my index.php

my form.php => form.js

my actionhandle.php
$myClass = new cMyClass();

When calling the actionhandle through my index file then cMyClass is known, but calling the actionhandle file directly with ajax then the class is not known.

Is there a solution for this problem?
I already tried calling the index file from ajax but then my requestText is not what I want. I get my complete DOM structure as requestText.

Thank you in advance.

pradeep 16Feb2007 10:16

Re: php and xmlhttprequests
You have not included "cMyClass.php" in actionhandle.php, I guess!

All times are GMT +5.5. The time now is 03:52.