PageSourceSearch

https://americanspecialties.com/wp-content/themes/AmericanSpecialties/js/techdata_ajax.js

js americanspecialties.com collected 2026-09-26 09:19:42 UTC 1,295 bytes, 32 lines download raw bytes

1
2jQuery(document).ready(function($) {
3    $('#tech_data_submit_multi').on('click', function(e) {
4        e.preventDefault();
5
6        // Get the value of the input field for search and split by comma
7        var prod_nums = $('#tech_data_search').val().split(',');
8
9        // Perform AJAX request
10        $.ajax({
11            url: my_ajax_object.ajax_url, // The AJAX URL passed from wp_localize_script
12            type: 'POST',
13            data: {
14                action: 'search_product_by_prod_num', // This should match your PHP action hook
15                security: my_ajax_object.nonce, // The nonce for security
16                prod_nums: prod_nums // Pass the array of product numbers
17            },
18            success: function(response) {
19                if (response.success) {
20                    $('#tech_similar_results').html(response.data); // Display search results
21                    $(".search-result-pdfs-download").show();
22                } else {
23                    $('#tech_similar_results').html('No products found.');
24                    $(".search-result-pdfs-download").hide();
25                }
26            },
27            error: function(error) {
28                console.log('Error:', error);
29            }
30        });
31    });
32});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.