Losing data-icon when pulling html via ajax

SeanZ

New Member
I have a php function generating grid data that looks similar to this:\[code\]<div id="_gridData"> <div class="ui-grid-b"> <div class="ui-block-a mobile-grid-header">&nbsp;</div> <div class="ui-block-b mobile-grid-header date-block">Time</div> <div class="ui-block-c mobile-grid-header number-block">Meal Type</div> <div class="ui-block-a "> <a id="delete_id_84" class="mp-delete-link ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all ui-btn-icon-notext" data-iconpos="notext" data-icon="delete" data-role="button" href="" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" data-theme="c" title="Delete"><span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text">Delete</span><span class="ui-icon ui-icon-delete ui-icon-shadow">&nbsp;</span></span></a></div> <div class="ui-block-b date-block "><a id="edit_id_84" class="mp-edit-link ui-link" data-ajax="false" href="">02:00 AM</a></div> <div class="ui-block-c date-block ">Lunch</div> </div></div>\[/code\]However, when I call that same function with ajax to get the same data, it looks like this:\[code\]<div id="_gridData"> <div class="ui-grid-b"> <div class="ui-block-a mobile-grid-header">&nbsp;</div> <div class="ui-block-b mobile-grid-header date-block">Time</div> <div class="ui-block-c mobile-grid-header number-block">Meal Type</div> <div class="ui-block-a "> <a id="delete_id_84" class="mp-delete-link" data-iconpos="notext" data-icon="delete" data-role="button" href="">Delete</a></div> <div class="ui-block-b date-block "><a id="edit_id_84" class="mp-edit-link" data-ajax="false" href="">02:00 AM</a></div> <div class="ui-block-c date-block ">Lunch</div> </div></div>\[/code\]Notice I've lost all the extra classes attached to the anchor tag.It makes this grid:
CULrr.jpg
Look like this:
F08YL.jpg
So my delete data-icon is gone. I know I call 'refresh' on objects like buttons and select menus:\[code\]$('#_mealTime').val('');$('#_mealTime').selectmenu("refresh");\[/code\]Is there a similar call I need to make on anchor tags?
 
Back
Top