you have to make sure, that the jQuery Helper path gets added BEHIND the dojo 
helper path in the particular module that you are using it in.

You have to read the PluginLoader and View Helper manuals on how to make this 
work.

On Tuesday 25 November 2008 17:25:31 vladimirn wrote:
> Yes, dojo is enabled in bootstrap file.
> How to avoid this conflict? I am not sure that i know how to use
> $view->getHelperPath() and $view->getPluginLoader()->getPaths();
> Will using this make use of Dojo An JQeury at the same time?
> Thanks,
> V
>
> beberlei wrote:
> > but you enabled the View for Dojo support? Because having both Dojo and
> > jQuery
> > helpers in your view will probably not work!
> >
> > you can try this by doing:
> >
> > $view->getHelperPaths() or
> > $view->getPluginLoader()->getPaths()
> >
> > greetings,
> > Benjamin
> >
> > On Tuesday 25 November 2008 15:55:30 vladimirn wrote:
> >> I grab this code from documentation and tried to reporoduce some result.
> >> So, this is a code:
> >> public function indexAction() {
> >>            $form = new ZendX_JQuery_Form ( );
> >>            $form->setDecorators ( array ('FormElements', array
> >> ('AccordionContainer', array ('id' => 'tabContainer', 'style' => 'width:
> >> 600px;', 'jQueryParams' => array ('alwaysOpen' => false, 'animated' =>
> >> "easeslide" ) ) ), 'Form' ) ); $form->setAction ( 'formdemo.php' );
> >>            $form->setAttrib ( 'id', 'mainForm' );
> >>            $form->setAttrib ( 'class', 'flora' );
> >>            $subForm1 = new ZendX_JQuery_Form ( );
> >>            $subForm1->setDecorators ( array ('FormElements', array 
> >> ('HtmlTag',
> >> array
> >> ('tag' => 'dl' ) ), array ('TabPane', array ('jQueryParams' => array
> >> ('containerId' => 'mainForm', 'title' => 'DatePicker and Slider' ) ) ) )
> >> );
> >>
> >>            $subForm2 = new ZendX_JQuery_Form ( );
> >>            $subForm2->setDecorators ( array ('FormElements', array 
> >> ('HtmlTag',
> >> array
> >> ('tag' => 'dl' ) ), array ('TabPane', array ('jQueryParams' => array
> >> ('containerId' => 'mainForm', 'title' => 'AutoComplete and Spinner' ) )
> >> ) )
> >> );
> >>            // Add Element Date Picker
> >>            $elem = new ZendX_JQuery_Form_Element_DatePicker ( 
> >> "datePicker1",
> >> array ("label" => "Date Picker:" ) );
> >>            $elem->setJQueryParam ( 'dateFormat', 'dd.mm.yy' );
> >>            $subForm1->addElement ( $elem );
> >>
> >>            // Add Element Spinner
> >>            $elem = new ZendX_JQuery_Form_Element_Spinner ( "spinner1", 
> >> array
> >> ('label' => 'Spinner:' ) );
> >>            $elem->setJQueryParams ( array ('min' => 0, 'max' => 1000, 
> >> 'start' =>
> >> 100
> >> ) );
> >>            $subForm1->addElement ( $elem );
> >>
> >>            // Add Slider Element
> >>            $elem = new ZendX_JQuery_Form_Element_Slider ( "slider1", array
> >> ('label'
> >> => 'Slider:' ) );
> >>            $elem->setJQueryParams ( array ('defaultValue' => '75' ) );
> >>            $subForm2->addElement ( $elem );
> >>
> >>            // Add Autocomplete Element
> >>            $elem = new ZendX_JQuery_Form_Element_AutoComplete ( "ac1", 
> >> array
> >> ('label' => 'Autocomplete:' ) );
> >>            $elem->setJQueryParams ( array ('data' => array ('New York', 
> >> 'Berlin',
> >> 'Bern', 'Boston' ) ) );
> >>            $subForm2->addElement ( $elem );
> >>
> >>            // Submit Button
> >>            $elem = new Zend_Form_Element_Submit ( "btn1", array ('value' =>
> >> 'Submit'
> >> ) );
> >>            $subForm1->addElement ( $elem );
> >>            $form->addSubForm ( $subForm1, 'subform1' );
> >>            $form->addSubForm ( $subForm2, 'subform2' );
> >>
> >>            $formString = $form->render ( $view );
> >>    }
> >>
> >> AFTER pointing url to the page, i am getting quite strange error:
> >> Fatal error: Call to undefined method
> >> Zend_Dojo_View_Helper_TabContainer::addPane() in
> >> D:\wamp\www\singlescash\library\ZendX\JQuery\View\Helper\TabPane.php on
> >> line 72
> >>
> >> I think i dont call any Zend_Dojo view helper in here? Or i do?
> >> I am using Zend_dojo forms on web site, but not within this directory
> >> and this controller
> >
> > --
> > Benjamin Eberlei
> > http://www.beberlei.de

-- 
Benjamin Eberlei
http://www.beberlei.de

Reply via email to