Yii Framework Forum: CTreeView and another frame - Yii Framework Forum

Jump to content

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

CTreeView and another frame Connected data... Rate Topic: -----

#1 User is offline   vjbill 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 18-May 10
  • Location:Poland

Posted 09 July 2010 - 08:49 AM

Hello,
I'm seeking help... again ;-). I'm displaying a Tree View (CTreeView widget) on my page and some of the nodes are hyperlinks. What I want to achieve is a situation, where clicking on the hyperlink changes the contents (only checkboxes and text) in a DIV on the site (might be eventually a frame?). The information in the DIV is specific to the clicked node and should be selected by the user (e.g. the node is a book title and the checkboxes would be the chapters in the book).

What would be the best approach to tackle this problem? jQuery attached to the hyperlink? Or a standard page reload? What would be also better to keep the checkboxes: a DIV or a frame?

Thanks in advance for your help,
With kind regards,

Bill
0

#2 User is offline   vjbill 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 18-May 10
  • Location:Poland

Posted 16 July 2010 - 01:05 PM

Answering myself:

This cookbook recipe: Update content in AJAX with partialRender and the nice CHtml::ajaxLink method helped me a lot. I really like Yii :-).

Regards,
Bill
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