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

C# random value from dictionary and tuple -

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

.htaccess - htaccess convert request to clean url and add slash at the end of the url -