*

okaka14

  • *
  • 3 posts
Ajax modification issue
« on: May 21, 2018, 06:50:27 AM »
Hello Everyone,

how to show the description ( ajax search result )

//Javascript AJAX Loader for Items

             if(shower.find('div[data-item-id="' + data[key].pk_i_id + '"]').length <= 0) {
             result += '<a class="option" data-item-id="' + data[key].pk_i_id + '" href="' + data[key].item_url + '" title="<?php echo osc_esc_js(__('Click to open listing', 'veronika')); >">'
                 result += '<div class="left"><img src="' + data[key].image_url + '"/></div>';
                 result += '<div class="right">';
                 result += '<div class="top">' + data[key].s_title + '</div>';
                 result += '<div class="middle_desc">' + data[key].s_description + '</div>';
                 result += '<div class="bottom">' + data[key].i_price + '</div>';
                 result += '</div>';
                 result += '</a>';
                    }
                  }

i add this code '<div class="middle_desc">' + data[key].s_description + '</div>' , but the description still not show , it say "undefined".
any suggestions ? :-[ :-[





« Last Edit: May 21, 2018, 07:55:34 AM by MB Themes »

*

MB Themes

Re: Ajax modification issue
« Reply #1 on: May 21, 2018, 07:55:54 AM »
@okaka14
You must add it to query as well.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots