Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Ajax : can"t update a div section
 
davidh
Jr. Member
 
Total Posts:  20
Joined:  2008-03-06
 

Hi guys,

I’m trying to implement an Ajax function : when I click on a link, I want to update a div section with the new values.
I wrote my new controller (which extends another one) in the local directory, which is called by the ajax function. I created a phtml file which just contains the div to refresh.

My problem is that I don’t manage to call this template : the controller is called but I don’t manage to associate my layout/template.

My layout is like this :

<mymodule_mynewcontroller_mymethod>
<block type="myType" name="myName" as="myAlias" template="myTemplate">
</block>
</mymodule_mynewcontroller_mymethod>

Maybe it’s because my new controller is in the local repertory ?

Is anyone encoutered this type of problem ?

Thanks for your help !

 
Magento Community Magento Community
Magento Community
Magento Community
 
davidh
Jr. Member
 
Total Posts:  20
Joined:  2008-03-06
 

I think I was confusing with my explanation, so I’ll try to be more “generic”.

How to associate a new controller (in the local directory) with a new layout ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top