Hi,
my website contains an CActiveForm with an CJUI Slider Widget, which works fine.
This means: jQuery and jQuery UI is working at the page.
The user can now open an additional form by clicking an ajax-link, where an ajax-action gets the new form from server in oder to write the received data to an html element.
The PHP action (which generates the new form) runs an renderPartial:
$this->renderPartial('_part_Form',array('model'=>$model,
'formVariation'=>$formVariation[$type])
,false,true)
Part of this ‘_part_Form’ view is an CJuiDialog with autoOpen=true. The content of this dialog is an selfmade widget, which generates the form with an slider (CJui widget), datepicker (CJui widget) and so on.
Back to the application: the user starts the ajax action, the server generates the form by using _part_Form View and the selfmadeWidget (containing the slider & datepicker widget) and autoopen the form.
…but nothing happens. On firebug I see: …slider() is not a function.
Which looks like, jQuery UI is not loaded. But: jQuery UI is loaded. Because the other slider on the webpage works (see first lines at this post).
So whats happens here? Why jQuery seams not to be available anymore?
If i load jQuery UI in _part_Form View again (by adding <script src=…> Tag), every works fine.
Why i have to load jQuery UI a 2nd time at the same webpage?
I have no Idea, how to continue debugging…
Thank you for any kind of help.
Rall0r