i try to create a form where, following an xhrGet request, a combobox
appears in a particular div.
i almost got this part thanks to the javascript and 'innerHTML'
because i still got an issue : my combobox doesn't look like one - it's just
a regular selectbox - so i can't use the autocomplete i need.
in fact i use a default layout for the main page
and i'd like to use another layout for my particular div, filled thanks to
innerHTML
i read some stuff on this forum about nested layouts but i'm not sure i
understood well (i'm a beginner with Zend and Dojo - and English is not my
mother tongue)
in the controller i got:
public function universiteslistAction()
{
$this->_helper->layout()->setLayout('tundra');
$pays = $this->_request->getParam('pays');
$form = new FormulaireCePaysUniv(null, $pays);
$form->setName('ce_univ')
->setMethod($this->methode);
$this->view->formUniv = $form;
$this->render('universiteslist');
}
for the view :
<?php
$this->dojo()->requireModule('dijit.form.ComboBox')
->requireModule('dojox.data.QueryReadStore');
echo $this->formUniv;
?>
and the layout:
<head>
<?php
echo
$this->headLink()->setStylesheet($this->baseUrl().'/public/css/design.css');
echo $this->headScript()->appendFile($this->baseUrl().'/public/js/ce.js');
?>
<script type="text/javascript" src="/mobilite_v0.2c/public/js/dojo/dojo.js"
charset="utf-8" djConfig="parseOnLoad:false"></script>
<?php
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
if ($this->dojo()->isEnabled())
{
$this->dojo()->addStylesheet($this->baseUrl().'/public/js/dojo/dojo/resources/dojo.css')
->addStylesheet($this->baseUrl().'/public/js/dojo/dijit/themes/tundra/tundra.css');
echo $this->dojo();
}
?>
</head>
<body class="tundra">
<?php echo $this->layout()->content; ?>
</body>
i thank you by advance for any help you could bring to me.
if you need any information about my case, i'll try to visit this page
regularly
Cedric.
--
View this message in context: http://www.nabble.com/Layout---Combobox---InnerHTML-tp22180615p22180615.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论