jQWidgets Forums
jQuery UI Widgets › Forums › Lists › DropDownList › can't read xml file locally in chrome and ff ?
Tagged: xml dropdown
This topic contains 5 replies, has 2 voices, and was last updated by Peter Stoev 12 years, 8 months ago.
-
Author
-
I am running my site locally, my problem is chrome and ff not showing the xml data in dropdown, while ie and safari doing it.
Hi hareeshmh,
Please, send us a sample which reproduces that to support@jqwidgets.com. We’ll need to take a look at your scenario, settings and xml data.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comok i have send the files
please checkeven your demo files not showing in chrome and ff
these two
Binding to XML Data
Binding to JSON DataHi hareeshmh,
Do you run them on local web server or just double-click on a file? I am asking because this online demo: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdropdownlist/bindingtoxml.htm?classic is running fine on FireFox and Chrome and I also know that the demos use Ajax i.e you need to run the demos at least on a local web server, not from the windows explorer. If the url iis specified as a file the browser will think this is a cross-domain request. You’ve accessed the file via a file:// URL, but are trying to retrieve data from http://localhost. Try accessing your original file from http://localhost as well, and it’ll probably start to work and run the sample from http://localhost .
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comyes it runs from local web server. that definitely not the problem with plug in.
but my need is to run just double clicking the file ,
is there any way to do so? i searched about it and its the problem with chrome and ff browsers, any fixes to over come this??
some says putting ” –allow-file-access-from-files ” will solve the chrome bug, but where i put this??
please help.
Hi hareeshmh,
Double-clicking on the file does not mean that it runs on the local web server. From local server means that you should type in the browser: http://localhost + the path to your web page. The url of the xml file should be relative to the web page’s path i.e only your file name if its in the same folder or subfolder/filename if it’s in a sub folder of the web page’s folder.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.