โดยขั้นตอนการพัฒนานั้นมีดังนี้
1.เราจะต้องสร้างตัวแปล จากไฟล์ php เพื่อใช้ส่งค่า ไป ยัง html
โค้ด: เลือกทั้งหมด
$post_row['SUID'] = $ppid;
$post_row['USID'] = $uid;
$post_row['PTID'] = $data['user_id'];
$post_row['SUB_ID'] = $sid;
โค้ด: เลือกทั้งหมด
<span class="responsive-hide">
<button data-sub="{L_PRESEN_SUB}" data-close="{L_SUB_CLOSE}" data-sen="{L_SUB_SEN}" value="{postrow.SHEARCH_POSTS}" class=" reply_sub_com">{L_RETURN_SUB}</button>
</span>
โค้ด: เลือกทั้งหมด
var post_id = $(this).attr('data-post-id');
var url = $(this).attr('data-url');
var start = $(this).attr('data-start');