Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Namrta on Feb 25, 2009 08:49
open dhtmlx forum
loading grid from different location

Hi,

I'm using Dhtmlx grid in my Jsp, when I'm loading the grid from an xml file which is stored in the same folder in which my jsp resides, it is loading fine, but when i put the same xml file in any other folder such as "C:\GridFiles\data.xml" and set this path it is not getting loaded.Its givinmg me "Permission Denied" javascript error. Please tell me what should i do as i don't want to put xml files in the same folder.

Thanks in Advance,
Namrta
Answer posted by Support on Feb 25, 2009 10:25
While you are loading all files from the same domain - there must not be problems. 
But if you loading page by http and file by absolute path, or page and file from different http domains - browser will block such operation. 
Answer posted on Feb 25, 2009 16:42

But I'm getting this error. code which I'm using to load the grid is :
grid.load("c:/GridFiles/data.xml");
Is there any js to include seperately for this functionality.

 

 

Answer posted by Support on Feb 26, 2009 08:09
>>But I'm getting this error. code which I'm using to load the grid is :
By which url you are loading page with grid's code.
If you are using something similar to http://localhost/some.html - the path to XML must be an HTTP url as well. It not possible to load page by http like url and xml by direct path .