When I use ajax call from a modal window, the request url seems not correct. I have a webserver running which can accept http://localhost/search , but not file:///search. How to correct this.
I have a detailed post on what I was trying to do here But the url issue is blocking me currently.
thanks for ur help.
$.ajax({
type: 'post',
dataType: 'json',
url: '/search',
async: false,
//data: dataString
//data: $("#myform").serialize(),
success: successFn,
error: errorFn
});
Request URL:file:///search
Request Headers
Access-Control-Request-Headers:X-Requested-With, Accept
Access-Control-Request-Method:POST
Origin:null
User-Agent:Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)