Re: [fw-general] ZendX Jquery reports Zend_Dojo error???

2008-11-25 Thread Benjamin Eberlei
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


Re: [fw-general] ZendX Jquery reports Zend_Dojo error???

2008-11-25 Thread Matthew Weier O'Phinney
-- vladimirn [EMAIL PROTECTED] wrote
(on Tuesday, 25 November 2008, 06:55 AM -0800):
 
 I grab this code from documentation and tried to reporoduce some result.
 So, this is a code:

snip -- a ZendX_JQuery_Form example...

 
 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

Are you dojo-enabling the view in your bootstrap, by any chance? (i.e.,
calling Zend_Dojo::enableView($view)) If so, you need to make sure that
the JQuery view paths are the last added to the view, as several helper
names are the same between the two. I'm not sure how the JQuery
component adds view paths, but I'm sure it's in the docs.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] ZendX Jquery reports Zend_Dojo error???

2008-11-25 Thread vladimirn

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
 
 

-- 
View this message in context: 
http://www.nabble.com/ZendX-Jquery-reports-Zend_Dojo-errortp20682080p20684609.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] ZendX Jquery reports Zend_Dojo error???

2008-11-25 Thread Benjamin Eberlei
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