Yes, I have :(
But, as I'm said previusly, jquery loaded when this code(refer to ZendX_JQuery
manual) add the index.phtml script,
================================
<?= $this->ajaxLink("Show me something",
"/index/demo",
array('update' => '#content')); ?>
<div id="content"></div>
===============================
Thanks, bn
-----Original Message-----
From: Jay M. Keith [mailto:[email protected]]
Sent: Friday, April 17, 2009 11:12 AM
To: Bagus Nugroho
Cc: fw-general
Subject: Re: [fw-general] ZendX_JQuery not loaded using Zend_Application
In your layout (if you're using layouts), do you have something like <?=
$this->jQuery() ?> in the head?
Regards,
Jay M. Keith
On Thu, Apr 16, 2009 at 8:36 PM, Bagus Nugroho <[email protected]> wrote:
> Hi All,
> I'm trying using ZendX_JQuery within Zend_Application, which generated
> by Zend_Tool and edited Bootstrap.php, refer 'storefront' to add
> ZendX_JQuery as the following :
> Bootstrap.php=========================================================
> ==
> //
> protected function _initView()
> {
> $viewRenderer =
> Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
> $viewRenderer->init();
>
> $this->_view = $viewRenderer->view;
> $this->_view->setEncoding('UTF-8');
> $this->_view->doctype('XHTML1_STRICT');
> $this->_view->headTitle('Development');
>
> //Load themes
>
> $this->_view->headLink()->appendStylesheet('/themes/base/ui.all.css');
>
> // Add jQuery
>
> $this->_view->addHelperPath('ZendX/JQuery/View/Helper','ZendX_JQuery_V
> iew_Helper');
>
> $this->_view->jQuery()->setLocalPath('../scripts/jquery-1.3.2.min.js')
> ;
>
> $this->_view->jQuery()->setUiLocalPath('../scripts/jquery.ui/jquery-ui
> .min.js');
>
> Zend_Layout::startMvc(array('layout' => 'main',
> 'layoutPath' => APPLICATION_PATH . '/layouts/scripts'
> ));
> }
> //
> ====================================================================
>
> why jquery library not loaded when I'm load the page.
>
> But jquery library loaded, when I add the following code on
> scripts(index.phtml)
> index.phtml==========================================================
> <?= $this->ajaxLink("Show me something",
> "/index/demo",
> array('update' => '#content')); ?> <div
> id="content"></div>
> ====================================================
>
> Is I'm missing something?
>
> Thanks in advance, bn
>
>
>
>
>
>