Change Page Title from client

Hi all, 

I would like to know if there is a way to change the Title of the current page in general in javascript (from frappe object). 
Actually, I wanna change the title of Report based on User's Roles directly from server. But changing from client/javascript works as well. 

Thank you!
Nathan



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/ac926409-d3a8-49b8-94df-904f8fab8f0d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Do you want to change page title or report title? And what is the use case specifically?

On 26-Jun-2014, at 2:43 pm, Nguyen Do Le Bao <na...@gmail.com> wrote:

Hi all, 

I would like to know if there is a way to change the Title of the current page in general in javascript (from frappe object). 
Actually, I wanna change the title of Report based on User's Roles directly from server. But changing from client/javascript works as well. 

Thank you!
Nathan




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/ac926409-d3a8-49b8-94df-904f8fab8f0d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/971930AB-0DF5-4069-AA2D-6B1F51E56A41%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.