Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created September 23, 2008 18:32
Show Gist options
  • Save dchelimsky/12362 to your computer and use it in GitHub Desktop.
Save dchelimsky/12362 to your computer and use it in GitHub Desktop.
var execute_search = function(ordinal) {
jQuery.ajax({
type: "GET",
url: jQuery('#asset-search-xml-src').attr('value'),
dataType: "xml",
success: function(xml) {
clear_search_results(ordinal);
jQuery(xml).find('asset').each(function(i, xml_asset) {
asset = new WrappedXmlAsset(xml_asset, ordinal);
if (asset.matches(jQuery('#assets-search-' + ordinal + ' input')[0].value)) {
asset.append_to('#assets-search-' + ordinal + ' table')
}
}); //close each(
}
}); //close jQuery.ajax(
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment