Thanks, actually I found where my problemS are :
1) I want to call a requestAction that renders an ajax layout
* if found the solution, into the first call to my function index,
into the layout I have coded array('ajax') instead of array('return'),
that works. The menu is on the right place, now regarding the
information about hidding, how should I code this Hiding Element into
the ajax answer ? sorry for my lack of knowledges.
2) My div menu is outside of the $content, besides if I do some 'ajax'
action into the content the java.thml layout is invoked, so How can I
request the action every time an ajax layout is rendered ? I have tried
to write requestAction into the ajax.thtml but that always return my
menu into the redering part (means bad placing)..
Somehow, when there is an ajax call on my main view, I'd like to be
able to trigger an action that would return my menu (at least check if
I need to change it). Well is there a way to trigger something after
the rendering or something like this ?
Maybe it's not clear I can try to summarize :
* first time I call any view to application, the requestAction of my
default layout is called and updates the div for the menu (using the
array('ajax') instead of array('return')
* when I am in this view, I work only in Ajax way but I would like to
be able to check my menu and eventually modify it by render the div of
my menu. The problem is that Ajx action returns an 'ajax' layout, and
my action also ..and the layout is retruned but in another div inside
the layout..
Maybe it's not so clear .... but hard to explain in another way.
Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---