Is there any way to load data from a data file (eg a JSON .js file) using jQuery?
eg:
$.get(\"file:///C:/objectData.js\", function() { alert(\'Load
I hope it is possible. I'd tried it. the Html code and text files resides in the same folder.
Here is jQuery part.
$(document).ready(function()
{
$("select").change(function()
{
file_name = $("select").val();
$('#span_result').load(file_name);
});
});
The Html code is
Contents of the file will be displayed below
Itworked for me in firefox. Sorry if it failed with you.