Hello, I really like Cake and I am now learning Ajax, coming from C/C++ php is quite easy, however not the same story for javascript and html.
Well, there is one thing I'd like to achieve using Cake and Ajax : I have an application that can handle 3 types of users, depending on the user logged and his current controller, I want to display on left side a different menu or no menu at all. I have created the default layout by having a left div that handle the menu and I have set the $content_for_layout in another div. I would like, when the content of the "main div" (ie : the content_layout) be able to laod a different menu by observing a variable (that could be passed on every view). Actually I have set an ajax link to simulate this (the link action updates the menu div), it works well but I have to click on the button to achieve this, but I'd like to do this automatically. I have tried the remoteTimer but I can't pass the variable to my url, and I do not need a call every second. Best would be to trigger a call when a view is loaded and a variable changed. I have check the observerField method but I think this works with a field that should be in input, maybe I can update it automatically when loading the content and that would trigger the observed field url ?? Well, if anyone has some advises it would be great .. Do not hesitate to ask further info if needed. Thanks. Franck --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
