Yii Framework Forum: Ajaxlink In Clistview - Yii Framework Forum

Jump to content

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

Ajaxlink In Clistview problems with generated script tags Rate Topic: -----

#1 User is offline   kuby 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 24-January 13

Posted 24 January 2013 - 06:53 AM

Hi.

I have a problem with my CListView. I added some CHtml::ajaxLink to this ListView and a callback function for ajaxLink which refreshes a div's contents:

$.fn.yiiListView.update("order-list-view");


After this, my ListView is successfully refreshed, but there is a problem, with the ajaxLink inside the div which is generated after the refresh. New links are generated, but <script> tags for this links are not, becouse they are out of this CListView / old scripts are still there.

What should I do ?
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,338
  • Joined: 12-October 09
  • Location:Croatia

Posted 24 January 2013 - 07:30 AM

There are already few threads about this on the forum.. check this one for a possible solution - http://www.yiiframew...hp/topic/21926-
Find more about me.... btw. Do you know your WAN IP?
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