Hi all, I am using Ajax helper and also Cajax helper. I am learning slowly and I experiment slowly. The Cajax helper helps a lot (normal for an helper), but I do not know when to use normal <div> and $ajax->div().. What is the difference, I have used both in my rending view (ie : e($ajax->div()) to change the inside code of a div, but without doing this it seems to work as well...
Maybe when updating multiple div ? I have 2 others questions .. 1) I have a page with 2 divs, the first div contains some php code, the second div html. With a single call I want to update both as follow : - execute again the code within the first div (a kind of refresh) - render a view to update the second div with other html parts .. I failed to do it, unless I repeat the code of the first div into my rendered thtml ..Is there any other way ? 2) I have setup the cake application with a sign-in. The first page loaded, whatever link used, will check the user logged and render a login view using the default.thtml layout. This default layout is a 3 columnds based, the left div is a menu, the center div the content and the right div another menu. Basically after signing, I do everything in ajax to update the middle div. The menus appears only after signing ( I set a variable and the default layour will make requestAction to make them appear). I control if user is sign in in the beforeFilter of the app_controller.php. If the Session does not contains my user, I redirect to the User controller that cleans up eventual info in the Session and redirect to the Login view. That's works perfect until, I reach the session cleaning after 20 minutes ..and I was previously into the application, thus using Ajax to manipulate the main div. At this point the user/control works and redirects me into the login page, but this page appear with the defult.thtml into the middle div. At that point I would rather prefer to get out of Ajax, clean up the screen and render the view as when I start .. Any idea ? I also got a problem of redirect into controllers when that function should call another function to update my view ..again the default layout is included in it (I have used the $cajax->form ...) but no much success.. Thanks a lot --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
