Yii Framework Forum: [Ask] Typeerror: $.fn.yiigridview Is Undefined; - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Ask] Typeerror: $.fn.yiigridview Is Undefined; Rate Topic: -----

#1 User is offline   doevents 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 04-November 12

Posted 25 July 2014 - 04:58 PM

all master Yii Indonesia



saya membuat tombol refresh dengan $.fn.yiiGridView.update('grid-id');
<script>
$(document).ready(function(){
  $("#tombol_refresh").click(function(){
	$.fn.yiiGridView.update('mdata-pribadi-grid'); 
  });
}); 
</script>
<button id="tombol_refresh">Refresh</button>


dan menambahkan AJaxLink sbb:

<?php
echo CHtml::ajaxLink(
	'Open New',      	// the link body (it will NOT be HTML-encoded.)
	array('mDataPribadi/create'), // the URL for the AJAX request. If empty, it is assumed to be the current URL.
	array(
        	'update'=>'#req_res',
	)
);
echo '<div id="req_res">...</div>';
?>


perintah diatas berhasil saat tombol "Refresh" di jalankan tanpa click Ajaxlink "Open New"
namun jika mengklik AjaxLink "Open New" maka tombol "Refresh" gagal

pesan kesalahan :

TypeError: $.fn.yiiGridView is undefined;


mohon bantuannya, trims
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users