jqXHR vs. jQuery AJAX-requests in Rails -


i don't understand why jquery.ajax-request .csv-file fails display highchart chart in rails:

var jquery = $.get('foo.csv', function(data) {} 

whereas 1 displays fine:

var jqxhr = $.get('foo.csv', function(data) {} 

can please explain?

jquery name of main function in jquery library ($ synonym it). shouldn't reuse in own code. although if local variable, don't think should affect library, uses global variable window.jquery. it's still bad idea use variable name, confusing.


Comments

Popular posts from this blog

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

c++ - Visual Leak Detector detects leak on new blank MFC project -

c# - Connection String Trouble MetaDataException -