Categories | Question details Back To List | ||
LoadXML Error in Internet Explorer Hi, I have developed a website that uses DXHTMLGrid and it's working perfectly in Firefox. It's also working fine in IE7 when I'm loading it from localhost. However when I upload the site to my online server, it's still working fine under Firefox, but with IE7 I get the following error when trying to update a record: Not an XML, probably incorrect content type specified (must be text/xml), or some text output was started before XML data Loading: - long querystring - Status: 403 Response <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /cms/update.php on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> <hr> <address>Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.[mydomain].com Port 80</address> </body></html> This is obviously returned when using the debug feature. This only happens on update, the grid populates just fine. Apparenlty there's a permission error with IE, but why is it working fine with Firefox. Any thoughts what I should do? Thanks. Answer posted by Support on Mar 31, 2009 07:08 In case when such error occurs for both IE and FF - it is the incorrect path or server settings. In case of IE the next things may be the reason a) IE may cache old response, you can try to change path used for dataprocessor , as cms/update.php?seed=some_random_value to double-check that problem not related to caching b) The server setting - not quite sure what used in your case , and while it not common for php servers, it possible to cofigure server side so it will accept GET request and block POST data submit. Update operation may use POST data sending and be blocked because of it. Answer posted by Dookie on Mar 31, 2009 09:01 Here is the code I use to initialize the grid: doInitGrid(); mygrid.makeFilter("search",0); mygrid.loadXML("articles_get.php"); myDataProcessor = new dataProcessor("update.php"); myDataProcessor.enableDataNames(true); myDataProcessor.setUpdateMode("cell");//available values: cell (default), row, off myDataProcessor.setVerificator(0); myDataProcessor.setTransactionMode("GET"); myDataProcessor.enableDebug(false); myDataProcessor.init(mygrid); So the transaction mode is set to GET. As I was saying, this is only happening with IE (tested both 6 and 7) and ONLY when running the site on my HostGator account. It's working fine with Firefox, Safari and Opera. When I'm running it locally it works fine with any browser, including IE, so I guess it's got something to do with the permissions on the HostGator server. Beats me why it's only happening with IE though. Answer posted by Dookie on Mar 31, 2009 10:43 I've added some logging to the update.php file and apparently it can't be called by the code (getting the 403) but only when using Internet Explorer. Weird. Answer posted by Dookie on Mar 31, 2009 12:22 Ok, just in case anyone else will have this problem, I will post the solution here. It was actually quite simple, all I had to do was change the TransactionMode from GET to POST and *sha-wam* it was working. Why I got this error and why only with IE is however still a mystery to me. |