opensource101
New Member
Here is a code which try to access the $.getJSON, but it doesn't responding. What may be the possible reason for this. \[code\] function getTerms() { alert("hello"); //it alerts hello $.getJSON('http://localhost/context-search.php?callback=?', function(r) { //not here alert("Hello"); }); } $(document).ready(function(){ alert("hello"); getTerms(); });\[/code\]context-search.php returns json data in the form of {"options":["osi","tcp","ip","http protcol","ethernet","network protocol","protocol meaning\n"]} Where have I possibly gone wrong?? Please help me through this! Thank You!!