Hi bingo > I have searched over almost every where but didn't find any > description on how to set page title when using ajax. I load most of > my view using ajax (using JQuery). I tried setting pageTitle variable > in controller as well as in view but not seems to change the page > title.
Given that with Ajax you are just updating the contents of a div, it will never effect the page title regardless of what you set in Cake. This is an Ajax rather than a Cake issue. If I were trying to do this, then I would just use Javascript to change the value of document.title.innerHTML (or whatever the DOM path to the Title is) after the Ajax query was complete. You would need to pull the new title value either from some part of the data that you retrieve, or derive it from the link that called the new page content. Regards, Langdon --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
