This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//taken from http://stackoverflow.com/questions/4545311/download-a-file-by-jquery-ajax | |
function ajax_download(url, data) { | |
var $iframe, | |
iframe_doc, | |
iframe_html; | |
if (($iframe = $('#download_iframe')).length === 0) { | |
$iframe = $("<iframe id='download_iframe'" + | |
" style='display: none' src='about:blank'></iframe>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Problem: | |
You have a javascript array that likely has some duplicate values and you would like a count of those values. | |
Solution: | |
Try this schnippet out. | |
*/ | |