Mesh

Artistic Wire Mesh is permanently colored copper craft wire woven into a mesh tube that's been flattened. Its hollow tubular design can be stretched, condensed, strung on, filled, tied, glued, and more! Fill the wire mesh with beads, shaped wire, or stretch the mesh to create 3-D shapes. To finish-off Artistic Wire Mesh, crimp it with C-Crimp findings, tie it, or try wrapping it with Artistic Wire.

Showing 1 - 8 of 8 results
"; var bATCAfterQtyAdjust = false; var bCookieFavListQty = false; var sNoWarehouseFound = 'Call for Inventory'; var bRequireWarehouse = false; var bListViewATCPerLine = false; var bInStockShowEmptyWarehouses = false; var bInvalidQtyMsgShowing = false; /* * Get the values of orderfronturl and buildsessionpassthrough * to maintain sessions and cookies for SSL domain * @auther lroselli * @since 4/10/2013 */ var sOrderFrontUrl = 'https://www.beadalon.com'; var sBuildSessionPassThrough = 'BuildSessionPassthrough=Disable'; var bShowSalesUOM = false; var bShowNativeUOMinCart = false; var bDisableATCZeroQtyWarehouse = false; /*================================ * Init Code & Event Registration *================================*/ jQuery(function(){ /* inline search */ if ( bShowTableFilter ) { /* inline search: store searchable text */ $('#clear_filter').click(function(){ $('#prod_table_search').val('').blur(); $('.product_wrap_table .indexColumn').parent().show().end().hide(); window.location.hash = ''; $(this).hide(); }); $('.product_wrap_table tr:has(td)') .each(function(){ var t = $(this).text().toLowerCase(); $('').hide().text(t).appendTo(this); }); /* inline search: function */ $('#prod_table_search') .keyup(function(e){ if (e.keyCode == 27) { /* clear search on ESC keypress when search is focused */ $('#clear_filter').click(); } else { /* perform search */ var s = $(this).val().toLowerCase().split(' '); window.location.hash = $(this).val(); $('.product_wrap_table tbody tr:hidden').show(); $.each(s, function(){ $('.product_wrap_table tbody tr:visible .indexColumn:not(:contains("' + this + '"))').parent().hide(); }); } //-if (e.keyCode == 27) if($(this).val()=='') $('#clear_filter').hide(); else $('#clear_filter').show(); }); (function($){ var hash = window.location.hash; if(hash) $('#prod_table_search').val(hash.replace('#','')).keyup(); })(jQuery); } //- if ( bShowTableFilter ) // check for layout cookie - create if necessary c_start = document.cookie.indexOf('productLayout='); if (c_start = -1) { wsp_setCookie('productLayout', 'gallery', 365); }; jQuery('#gallery_layout_toggle').addClass('active'); function changeLayoutMode(sMode) { wsp_setCookie('productLayout', sMode, 365); window.location.reload(); } // set layout mode when ui buttons are clicked jQuery('#gallery_layout_toggle').click(function(event) { event.preventDefault(); changeLayoutMode('gallery'); }); jQuery('#list_layout_toggle').click(function(event) { event.preventDefault(); changeLayoutMode('list'); }); /* * Added HTML Element "Table" before class "#list_layout", * just to instruct the jQuery to refer the Table with the * Class "list_layout". * * @author MandarK * @since 02/23/2011 */ jQuery('table#list_layout').delegate("select.uom", "change", function(){ sPKey = jQuery(this).closest('tr').attr("id"); Uom.getPrice(sPKey); }); /* * Added HTML Element "Table" before class "#gallery_layout", just to instruct the jQuery to refer * the Table with the Class "gallery_layout". Now additionally took the "Prod Id" Value from the * closest TD and replacing the text "prod_item_" value with "" * * @author MandarK * @since 02/23/2011 */ jQuery('Table#gallery_layout').delegate("select.uom", "change", function(){ sPKey = (jQuery(this).closest('td').attr("id")).replace("prod_item_",""); Uom.getPrice(sPKey); }); jQuery('#atc_msg_close_win').click(function(event){ event.preventDefault(); closeCartLightbox(); }); jQuery('.order_btn').click(function () { $(this).prop('disabled', true) postToCart('', $(this).data('pkey')); }); /* * Qty Available Immediate Function *@author pijushb *@since 9/14/2011 */ if (bShowBackOrderMessage) { (function($){ // //Show Check Stock Button. // keys = document.getElementsByName('keys'); // for (var k=0; k 0 ) { $.each(prepop, function(index, prod) { jQuery('#qty_' + prod.key).val(prod.qty) }); } } function getCookie(c_name) { var c_value = document.cookie; var c_start = c_value.indexOf(" " + c_name + "="); if ( c_start == -1 ) { c_start = c_value.indexOf(c_name + "="); } if (c_start == -1) { c_value = null; } else { c_start = c_value.indexOf("=", c_start) + 1; var c_end = c_value.indexOf(";", c_start); if ( c_end == -1 ) { c_end = c_value.length; } c_value = unescape(c_value.substring(c_start,c_end)); } return c_value; } function fncShowChildProducts ( vPKey ) { var aRows = document.getElementsByName(vPKey + '_keys'); for ( var iRow = 0, iGoTo = aRows.length; iRow qty) { oQtyInput.val(min); if (bShowMessage) { styled_modal_alert(sMinQtyErrorMessage); } return false; } else if (qty > max) { oQtyInput.val(max); if (bShowMessage) { styled_modal_alert(sMaxQtyErrorMessage); } return false; } else if ((qty - min) % inc !== 0) { oQtyInput.val((Math.ceil((qty - min) / inc) * inc) + min); if (bShowMessage) { styled_modal_alert(sIncrementQtyErrorMessage); } return false; } else { return true; //all good } } //jsmotherman 3.10.2016 required for list view adding all the inputs to the cart simultaneously - doesn't go through the posttocart function. function fncValidateAllQTYs() { bNoError = true; jQuery('input[id^=qty_]').each(function(index, element){ bNoError = fncValidateQTY(jQuery(element), false) && bNoError; }); if (!bNoError) { styled_modal_alert(sAnyQtyErrorMessage); if (!bATCAfterQtyAdjust) { return false; } } return true; } /** * This function determines how the products should be posted (form or ajax). * @modified johns - 3/19/2013: added param "sKeyDataName" and the code w/ it * @param sKeyDataName (string): id of the html element that hold the * keys of the products to be added to the cart (this is * specifically used for the add-on products) * @return bool - for ajax ATC, return false to draw the modal popup window * else return true to redirect to the add to cart page */ function postToCart(sKeyDataName, sKey) { var bIsAccessory = false; var addToCartButtons = '.prod_item .actions .btn.btn-small, .detail_atc_standalone .btn-primary'; var bFixAtcButton = true; var bReturn = true; var bValidQty = true; // ddara - 9/22/2014 // This must be called after at least one item has been added to cart so the pass through cookie // has the shopping cart id (in old cart, it is not created until an item is added to cart). fncBuildSSLCookie(); try { //fncValidateQTY handles showing a message. bValidQty = fncValidateQTY(jQuery('#qty_' + sKey)); if (!bValidQty && !bATCAfterQtyAdjust) { bReturn = false; bFixAtcButton = true; } else { // Code for a setup that lists products by the p_key and have qty_ elements if (typeof sKey !== 'undefined' || ( typeof sKey === 'undefined' && sKeyDataName !== '')) { if (sKeyDataName !== '' && typeof sKeyDataName !== 'undefined') { for (iKeyCounter = 0, iKeyGoTo = jQuery('input[name="' + sKeyDataName + '"]').length; iKeyCounter parseInt(iQtyAvaliable) ) { //Popup to show backorder message.. sBackOrderMessage = sBackorderPlacedMessage; if ( sButtonType === 'atcbutton' && sCheckoutButton === '0' ) { showOkCheckoutMessage ( sBackOrderMessage, sKey ); } //- if ( sButtonType === 'atcbutton' && sCheckoutButton === '0' ) jQuery('#review_message_' + sKey).html(sStockExceedMessage); bReturn = false } else { //Popup to show available message.. sBackOrderMessage = sBackorderAvailableMessage; if ( sButtonType === 'atcbutton' && sCheckoutButton === '0' ) { showOkCheckoutMessage ( sBackOrderMessage, sKey ); } //- if ( sButtonType === 'atcbutton' && sCheckoutButton === '0' ) jQuery('#review_message_' + sKey).html(sStockAvailableMessage); bReturn = false } //- if ( parseInt(sQtyRequested) > parseInt(iQtyAvaliable) ) } else { bReturn = false; } // if ( sReviewComplete === '0' ) if (sCheckoutButton === '1') bReturn = true; return bReturn; } //- function fncCheckBackorder ( sKey, sButtonType ) /** * Function to popup dialog box with proper message * @author pijushb * @since 1/25/2012 */ function showOkCheckoutMessage(sBackOrderMessage, sKey) { bSucessAdd = ajaxAddKeys(sKey); if (bSucessAdd) { jQuery('#dialog-box').html(sBackOrderMessage) jQuery('#dialog-box').dialog(); //getter var buttons = $('#dialog-box').dialog( 'option', 'buttons' ); //setter jQuery('#dialog-box').dialog( 'option', 'buttons', [ { text: 'Ok', click: function() { closeCartLightbox(); funcShowHideButtons(sKey); jQuery(this).dialog('close'); } }, { text: 'Checkout', click: function() { gotoCart(sKey); jQuery(this).dialog('close'); } } ] ); } //- if ( bSucessAdd ) } //- function showOkCheckoutMessage (sBackOrderMessage, sKey ) /* * Function to show/hide buttons and message. * @author pijushb * @since 1/25/2012 **/ function funcShowHideButtons ( sKey ) { //Show review button and checkout button and set review message with backorder message.. jQuery('#checkout_button_' + sKey).show(); jQuery('td#prod_item_' + sKey + ' div.actions input.btn_addtocart').hide(); jQuery('#review_message_' + sKey).hide(); //Set the value to 1. so that when click on checkout button it should not check backorder again. jQuery('#checkout_complete_'+ sKey).val('1'); } //- function funcShowHideButtons ( sKey ) /* * Function to redirect the page to showcart page. * @author pijushb * @since 1/25/2012 **/ function gotoCart() { window.location = "https://www.beadalon.com/showcart.asp"; } //- function gotoCart() /** * Show a modal message * @author pijushb * @since 9/14/2011 */ function showModalMessage(sMessage){ ResizeLoadingBG(); sOrigText = $('#detailloadingpic').html(); $('#detailloadingpic').html(sMessage); setTimeout( 'HideLoading()', 3000 ); } function HideLoading(){ jQuery('#detailloadingbg').hide(); jQuery('#detailloadingpic').hide(); } function ResizeLoadingBG(){ var oLBG = jQuery('#detailloadingbg')[0]; var oLPic = jQuery('#detailloadingpic')[0]; var popwidth = 200; if (window.innerHeight && window.scrollMaxY) { oLBG.style.width = document.body.scrollWidth; oLBG.style.height = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac oLBG.style.width = document.body.scrollWidth; oLBG.style.height = document.body.scrollHeight; } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari oLBG.style.width = document.body.offsetWidth; oLBG.style.height = document.body.offsetHeight; } if (self.innerHeight) { // all except Explorer oLPic.style.left = (self.innerWidth / 2) - (popwidth / 2); oLPic.style.top = self.pageYOffset + (self.innerHeight / 4); } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode oLPic.style.left = (document.documentElement.clientWidth / 2) - (popwidth / 2); oLPic.style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight / 4); } else if (document.body) { // other Explorers oLPic.style.left = (document.body.clientWidth / 2) - (popwidth / 2); oLPic.style.top = document.body.scrollTop + (document.body.clientHeight / 4); } oLBG.style.display = 'block'; oLPic.style.display = 'block'; } /*================================ * AJAX Functions *================================*/ /** * Logic to Update Pricing for UOM * * @author dand * @since 4/22/2010 */ var UomJQ = jQuery; var Uom = {fn: function(){}}; var sLoadingMessage = ''; var sPriceText = ''; (function(jQuery){ /** * getPrice */ Uom.getPrice = function(sPKey) { var oUomAjax = new ajax_builder(); this.sPKey = sPKey; this.toggleQty(); oUomAjax.Reset(); oUomAjax.SetVar("pageaction", "uom_price"); oUomAjax.SetVar("uom_type", jQuery('#uom_type_' + sPKey).val()); oUomAjax.SetVar("p_id", sPKey); oUomAjax.RequestFile = "artistic_wire_mesh.asp"; //i_i_ oUomAjax.Method = "GET"; oUomAjax.ResponseType = "text"; oUomAjax.onLoading = function() { Uom.loading() }; oUomAjax.onCompletion = function(){ Uom.drawPrice(oUomAjax.Response) }; oUomAjax.onError = this.error; oUomAjax.RunAJAX(); };//-Uom.getPrice /** * drawPrice */ Uom.drawPrice = function ( sResponse ) { jQuery('#' + Uom.sPKey + ' td.product_price').html(sResponse); /* * Add this line to replace the price value on select of UOM * when the view is Gallary view * * @author MardarK * @since 02/23/2011 */ jQuery('td#prod_item_' + Uom.sPKey + ' div.item_pricing').html('
' + sPriceText + ' ' + sResponse + '
'); jQuery('td#prod_item_' + this.sPKey + ' div.actions input.btn_addtocart').removeAttr('disabled'); //HideLoading(); }; //- Uom.drawPrice Uom.loading = function () { jQuery('td#prod_item_' + this.sPKey + ' div.actions input.btn_addtocart').attr('disabled','disabled'); jQuery('td#prod_item_' + this.sPKey + ' div.item_pricing').html(sLoadingMessage); }; //- Uom.loading /** * toggleQty */ Uom.toggleQty = function () { /*if(jQuery('#uom_type_' + this.sPKey).val() == 'sales'){ jQuery('#qty_' + this.sPKey).attr("name", 'sales_qty_' + this.sPKey); } else { jQuery('#qty_' + this.sPKey).attr("name", 'qty_' + this.sPKey); }//-if(jQuery('#uom_type_' + vPKey).val() == 'sales') NO! Don't do this! */ }; //- Uom.toggleDisplay /** * error */ Uom.error = function () { alert('There was an error retrieving the information for the product you selected.'); }; //- Uom.error })(UomJQ); /** * AJAX Call to remove item from favorites list. * * @author johns * @since 10/15/2009 */ function fncRemoveItem ( sProdKey ) { jQuery.ajax({ url: sPageName, data: 'pageaction=removefavitems&p_key=' + sProdKey + '&fl_key=' + sFl_Key + '&r_id=' + new Date().getTime(), type: 'GET', async: false, dataType: 'text', success: function () { fncRemoveItemCompleted ( sProdKey ); } }); } //- function fncRemoveItem ( sProdKey ) //- EVENT FUNCTIONS ================================================== function fncRemoveItemCompleted( p_key ) { //list view var $container = jQuery('td#prod_item_' + p_key); var $container2 = jQuery('tr#' + p_key); if ($container.length > 0) { // $container.hide(); $container.remove(); } else { // $container2.hide(); $container2.remove(); } //gallery view $container = jQuery('div#prod_item_' + p_key); if ($container.length > 0) { $container.remove(); } } //- function fncRemoveItemCompleted( p_key ) //================================================================ function closeCartLightbox() { if (jQuery('#cart_window').length) { //cart_window oAjax.Reset(); oAjax.RequestFile = 'i_i_shopping_cart_window.asp' oAjax.Method = 'GET'; oAjax.onCompletion = function () { jQuery('#cart_window').replaceWith(oAjax.Response); jQuery("#atc_msg_buttons").show(); tb_init('#cartwin_shipping a.thickbox'); }; oAjax.ResponseType = 'text'; //- The format of returned data. xml, text, json. oAjax.RunAJAX(); } jQuery('#atc_msg_product, #atc_msg_notice').empty(); } /** * This will perform an ajax get request on the ORDERFRONTURL's * showcart.asp page to create a cookie of the SSL domain to * maintain session information such as the shopping cart. * * @author lroselli * @since 04/10/2013 */ function fncBuildSSLCookie() { // ddara - 9/22/2014 // This is only required when the SSL is on a domain that is different from the rest of the site. // We must strip the protocol since they are often times different, even if the domains are the same. // ASP detected that the storefront and orderfront domains are the same and thus the SSL // cookie pass through is not required. } //- fncBuildSSLCookie /** * This function handles calling the add to cart page via ajax for * a single product key. * * @author johns * @since 03/19/2013 * * @modified johns - 3/19/2013: added param "bIsAccessory" and the code w/ it * * @param p_key (string): key of the product to be added to * cart * @param bIsAccessory (bool): is the call coming from product addon window * * @return */ function ajaxAddKeys(p_key, bIsAccessory) { var sStockStatus = ''; var sAtcType = 'POST'; var sAtcSfx = '_' + p_key; if (bIsAccessory === undefined) { bIsAccessory = false; } var sUomData = ''; var sUomType = ''; var sUom = ''; var sUomStd = ''; var iUomSalesConv = 0; var iMaxQty = ''; var iMinQty = ''; try { $qtybox = jQuery('#qty_' + p_key); var iQtyMultiplier = jQuery('#multiplier_on_qty_display_' + p_key).val(); if (iQtyMultiplier === undefined) { iQtyMultiplier = 1; } if (bShowSalesUOM) { sUomType = jQuery('#uom_type_' + p_key).val(); sUom = jQuery('#uom_' + sUomType + '_' + p_key).val(); sUomStd = jQuery('#uom_std_' + p_key).val(); iUomSalesConv = jQuery('#uom_conv_' + p_key).val(); sUomData += '&uom=' + sUom + '&uomconv=' + iUomSalesConv + '&uomtype=' + sUomType; if (bShowNativeUOMinCart) { sUomData += '&stduom=' + sUomStd; } } var sQty = $qtybox.val(); var sProduct; var sProductImage; var $container; if (jQuery('#prod_item_' + p_key).length > 0) { // product html for gallery view $container = jQuery('#prod_item_' + p_key).children('.prod_item_pad'); sProductName = $container.children('.nm').html(); sInStock = jQuery('#in_stock_' + p_key).val(); if (sInStock !== undefined && sInStock !== '') { sStockStatus = '&in_stock_' + p_key + '=' + sInStock; } jQuery('#atc_msg_product').addClass('prod_item'); sProductImage = '
' + $container.children('.thumb').html() + '
'; if ($container.children('.thumb').html() === null || typeof $container.children('.thumb').html() == 'undefined') { sProductImage = ''; } sProduct = sProductImage + '' + sProductName + ' (' + sQty + ')'; } else { // product html for list view $container = jQuery('#' + p_key); sProdName = $container.children('td.product_desc').children('p').html(); sProdImage = $container.children('td.product_thumb').html(); if (sProdImage === null || typeof sProdImage == 'undefined') { sProdImage = ''; } sProduct = sProdImage + '' + sProdName + ' (' + sQty + ')'; } //- if ( jQuery('#prod_item_' + p_key).length > 0 ) var sPWID = '&pw_id' + sAtcSfx + '=' + (jQuery('#pw_id_' + p_key).val() || ''); if (parseFloat(sQty) > 0) { if (bUsingOrderDetailTableForCarts) { jQuery.ajax({ url: 'i_i_add_to_cart.asp?ajax=listview&action=postlogic', data: 'type=ajaxadd&key=' + p_key + '&qty'+sAtcSfx+'=' + sQty + '&maxqty'+sAtcSfx+'='+iMaxQty + '&minqty'+sAtcSfx+'=' +iMinQty + '&multiplier_on_qty_display'+sAtcSfx+'='+iQtyMultiplier + sStockStatus + sUomData + sPWID, cache: false, type: sAtcType, dataType: 'json', success: function (jsonOrder) { handleAjaxATCSuccess(bIsAccessory, p_key, sProduct, jsonOrder); }, complete: function (jsonOrder) { // Enable the ATC button for the particular product that it was clicked on. $('button.order_btn[data-pkey="' + p_key + '"]').prop('disabled', false) .children('i.icon-spinner').remove(); }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert('Error: ' + errorThrown); } }); } else { jQuery.ajax({ url: 'i_i_add_to_cart.asp?ajax=listview', data: 'type=ajaxadd&key=' + p_key + '&qty'+sAtcSfx+'=' + sQty + sStockStatus + sUomData, cache: false, type: sAtcType, dataType: 'text', error: function (jqXHR, textStatus, errorThrown) { alert('Error: ' + errorThrown); }, success: function (oData) { handleAjaxATCSuccess(bIsAccessory, p_key, sProduct, oData); }, complete: function () { // Enable the ATC button for the particular product that it was clicked on. $('button.order_btn[data-pkey="' + p_key + '"]').prop('disabled', false) .children('i.icon-spinner').remove(); } }); } //- if ( bUsingOrderDetailTableForCarts ) return true; } else { return false; } } catch (oError) { jQuery('.atc_msg').hide() return false; } } //- function ajaxAddKeys /** * This function the success of the ajax ATC call. * * @author johns * @since 03/19/2013 * * @param sP_Key (string): key of the product detail page loaded * @param $oProd (jQuery object): contains the html of the product info * to be loaded in the modal popup window * @param bIsAccessory (bool): is the call coming from product addon window * * @return void */ function handleAjaxATCSuccess(bIsAccessory, sP_Key, $oProd, jsonOrder) { /* * added js var to perform based on whether or not the item just added was an addon product * johns - 02/20/2013 */ if ( bShowRecommendedItems && bIsAccessory ) { jQuery('#atc_msg_product').html(''); jQuery('#qty_' + sP_Key).val(''); jQuery('#atc_msg').css('height', '400px'); } else if ( bShowRecommendedItems && ! bIsAccessory ) { jQuery('#atc_msg_product').html($oProd); jQuery.get('i_i_pc_add_ons.asp?searchstring=searchexact~p_id~' + sP_Key + '&modal=1&display=' + sRecommendedItemsView) .done(function ( sData ) { jQuery('#atc_msg_addon_container').html(sData); if ( jQuery('#ors_eof_result').val().toLowerCase() !== 'false' ) { jQuery('#atc_msg').removeClass('with-recommended'); jQuery('.viewport').css('height', '0'); jQuery('#atc_msg').show(); jQuery('#atc_msg_container').show(); } else { jQuery('#atc_msg').show(); jQuery('#atc_msg_container').show(); } //- if ( jQuery('#ors_result').val().toLowerCase() !== 'false' }); jQuery('body').addClass('modal-open'); try { if(typeof jsonOrder == 'undefined') { fncCartRefresh(); } else { fncCartRefresh(jsonOrder[1].item_count, jsonOrder[1].o_total); } } catch(err) { // Silently fail because this is only relevant // with newer versions of cart preview } /* * normal ajax atc window * johns - 02/20/2013 */ } else { jQuery('#atc_msg_product').html($oProd); jQuery('#atc_msg_buttons').show(); try { if(typeof jsonOrder == 'undefined') { fncCartRefresh(); } else { fncCartRefresh(jsonOrder[1].item_count, jsonOrder[1].o_total); } } catch(err) { // Silently fail because this is only relevant // with newer versions of cart preview } } //- if ( bShowRecommendedItems && bIsAccessory ) if (!false) { populateAtcConfirmationModal(sP_Key).done(showAtcConfirmationModal); } runHook('handleAtcSuccess',{ ProductKey: sP_Key }); } //- function fncHandleAjaxATCSuccess () if (bDisableATCZeroQtyWarehouse) { jQuery('td').delegate('[id^=pw_id_]', 'change', function(event) { if (jQuery(event.target).children(':selected').text().indexOf("(Qty: 0)") > -1 || jQuery(event.target).children(':selected').text() == "[Select One]") { sKey = jQuery(event.target).attr("id").replace('pw_id_', '') jQuery('#' + sKey + ' .btn_addtocart').attr('disabled', 'disabled') } else { sKey = jQuery(event.target).attr("id").replace('pw_id_', '') jQuery('#' + sKey + ' .btn_addtocart').removeAttr('disabled') } }); } jQuery('[id*="get_wh_btn_"]').click(function(){ var sPKey = ''; sKey = $(this).attr("ID"); sPKey = sKey.replace('get_wh_btn_',''); fncGetNewProductWarehouse(sPKey); }); function populateAtcConfirmationModal(sProductKey) { var aRequirements = []; // Return a promise representing when all the requirements are finished. return jQuery.when.apply(jQuery, aRequirements); } function populatePromoNotificationBar(sProductKey) { return jQuery.ajax({ /* Can't use i_i_ page because the necessary classes are in the template. */ url: 'pc_combined_results.asp', type: 'GET', dataType: 'html', data: { pageaction: 'promo_notification_bar', p_keys: sProductKey } }).done(function(sData) { if (sData.length > 0) { jQuery('#atc_msg').removeClass('modal-small').addClass('modal-large'); jQuery('#atc_promo_bar').html(sData); jQuery('#atc_msg').one('hidden', resetPromotionNotificationBar); // The ticker cannot be started until the elements are visible. jQuery('#atc_msg').one('shown', function () { jQuery('#atc_promo_bar .notification-center').trigger('notification-center-added'); }); } else { resetPromotionNotificationBar(); } }).fail(function() { console.error("Unable to retrive promotion messages"); resetPromotionNotificationBar(); }); } function resetPromotionNotificationBar() { // Disable the notification bar before removing it so the function which runs on an // interval doesn't error on the missing elements. disableNotificationBar(jQuery('#atc_promo_bar')); jQuery('#atc_msg').removeClass('modal-large').addClass('modal-small'); jQuery('#atc_promo_bar').empty(); } function showAtcConfirmationModal() { jQuery('#atc_msg').modal('show'); } function fncGetNewProductWarehouse(sPKey) { try { jQuery.ajax({ url: sPageName , data: ({ pageaction : 'getproductwarehouse' ,ajax : genID() ,key : sPKey ,getall : bInStockShowEmptyWarehouses }) , cache: false , dataType: "text" , async: false , success: function(data){ sDefaultWH = jQuery('#pw_id_' + sPKey).val(); fncDrawNewProductWarehouse(data,sPKey); if (sDefaultWH.Len == 32) { jQuery('#pw_id_' + sPKey).val(sDefaultWH); } else { jQuery("#pw_id_" + sPKey + " option").not(':contains("Qty: 0")').filter(':first').attr('selected',true); } } }); } catch (err){ //alert(err.message); } } function fncDrawNewProductWarehouse(data,sPKey) { var aWareHouses, aSubWareHouses; var sDisplay; var bSelected = false; if (data!='') { $('#wh_td_' + sPKey).html(''); aWareHouses = data.split('|'); for (var i = 0; i [Select One]') if (data!='') { aWareHouses = data.split('|'); for (var i =0; i 1 [johns - 02/26/2016] $('form input').each(function() { if ($(this)[0].hasAttribute('step') && ( $(this).attr('step') !== '' || $(this).attr('step') > 1 )) { $('form').attr('novalidate', 'novalidate'); return false; } }); }); // Broken Image Replacement var utils = {}; utils.handleImageError = function (img) { if ($(img).attr('src') !== 'images/no-image.png') $(img).attr('src', 'images/no-image.png'); };