I have the following snippet of code: Getting an unwanted reference Error: The result is not displayed ... displayCars (Results) for;
The code is:
& lt; Script type = "text / javascript" & gt; $ (Document) .ready (function) {displayCars (results); function display () {$ .ajax ({type: 'GET', url: '/modules/crm/selector-ajax.php', data: { 'Action': 'images'}, success: function (result) {var photoDiv = $ ('# boat_isotope_gallery'); var divHtml = ''; var results for $$; from SEANS (result); photoDiv.html (divHtml); }, Error: function (error) {console.log ('Ajax failure');}}})}}); // End of document is ready & lt; / Script & gt;
I have seen posting about the script call order. My scripts are said in the header document, they are said before the snippet of the following order and above:
& lt; Script type = "text / javascript" src = "// ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> & Lt; Script type = "text / javascript" src = "// code.jquery.com/ui/1.10.2/jquery-ui.js"></script> & Lt; Script type = "text / javascript" src = "/ scripts / tools.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "/ script / jquerymenus.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "/ script / selected .jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "/ scripts / jquery.cookie.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "https://netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "// cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/js/jasny-bootstrap.min.js"></script> & Lt; Script type = "text / javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.0.0/isotope.pkgd.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "/ scripts / selector.js" & gt; & Lt; / Script & gt;
Why did I get this error?
No comments:
Post a Comment