Hey,
Thanks to anyone that can help out. I’ve been scouring the forums for a couple days, but haven’t really found a definitive answer to my issues, so I thought I’d ask.
My problem is two fold.
Problem one is that whenever I try to render a view and layout using renderPartial, jquery and jquery.ui are redownloaded everytime I run the renderPartial. Its not an option to set the last value to false, since I need to render the layout to the screen.
Code is like so:
$this->renderPartial(‘requestform’, array(‘model’ => $model), false, true);
I understand the concept of registering scripts, which I do:
Yii::app()->getClientScript()->registerCoreScript(‘jquery.js’);
But this doesn’t seem to make a difference, it is downloaded everytime I run renderPartial!
Assuming I can solve problem one, problem two would be that sometimes jquery ui takes up to three seconds to download. This happens when I try to do a renderPartial. What is the appropriate yii way to preload jquery or jquery ui prior to it being needed. I understand that the register gets it ready to be used, but it doesn’t seem to actually load it prior to the time that it is needed. I like to have it ready before the on the fly call needs it to be used.
Thanks in advance for any help!
-Thomas