Yii Framework Forum: Ajax Call - Yii Framework Forum

Jump to content

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

Ajax Call Calling a view through ajax Rate Topic: -----

#1 User is offline   Chris Backhouse 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 04-August 11
  • Location:France

Posted 19 December 2012 - 03:50 AM

Hello

I'm trying to use EditMe in a view which is called in an Ajax call. When calling the renderPartial I set the last parameter to false to prevent loading of all external resources as this view could be called multiple times.

How can I setup EditMe from the parent frame. I have tried using code like:-
$file=Yii::getPathOfAlias('application.extensions.editme.vendors.CKEditor').'/ckeditor.js';
$jsFile = Yii::app()->getAssetManager()->publish($file);
Yii::app()->clientScript->registerScriptFile($jsFile);
$file=Yii::getPathOfAlias('application.extensions.editme.vendors.CKEditor').'/config.js';
$jsFile = Yii::app()->getAssetManager()->publish($file);
Yii::app()->clientScript->registerScriptFile($jsFile);
$file=Yii::getPathOfAlias('application.extensions.editme.vendors.CKEditor.lang').'/en-gb.js';
$jsFile = Yii::app()->getAssetManager()->publish($file);
Yii::app()->clientScript->registerScriptFile($jsFile);
$file=Yii::getPathOfAlias('application.extensions.editme.vendors.CKEditor.skins.kama').'/editor.css';
$jsFile = Yii::app()->getAssetManager()->publish($file);


This doesn't work. I presume, somewhere, somehow, that I need to setup BASEPATH.

many thanks
Chris
0

#2 User is offline   Rajith R 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 550
  • Joined: 20-April 11
  • Location:Kochi , Kerala, India

Posted 20 December 2012 - 01:18 AM

if there are multiple links use id for each link
Rajith Ramachandran,
Wiwo inc.
| Mobile: 919995504508
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