Hi Everyone, I seem to have a problem with a PHP include file in a form I have created. I have a form that is using Ajax. When a user enters a Zip Code, it is supposed to trigger an Onblur update City and State code. The code works fine, But now I would like to create a template around this code. So I had to use a PHP Include ( <?php require("XXXX.html"); ?> ). The problem is, as soon as I add this line, the Ajax stops working! When I remove nothing else but this PHP include line, it works again! Can someone please tell me if there is any issues with using the PHP include with Ajax code? I can include the snippet of code if necessary. Thanks
Hi I have found the cause, but not a solution. I am trying to make a PHP includes call to a file that contains the code needed for a site called Sitepal. It places a video on my site, using a Java script. Would there be any reason my Ajax code wouldnt work with this sitepal java script code? Thanks
One of the reason is: The included file contains javascript too and the javascript function's name or variable name is the same as the another ajax function you used. Try viewing the Tools > Error Console of your browser and see whats the error
Can you paste some code? It will be more easier for all of us to see if there's an error into your code