Features/Messages Notification: Difference between revisions

Ajay Garg (talk | contribs)
No edit summary
Ajay Garg (talk | contribs)
Line 63: Line 63:
== Internet-Links in Notifications ==
== Internet-Links in Notifications ==
*This would help in navigating ta any internet-link, by simply clicking on the link.
*This would help in navigating ta any internet-link, by simply clicking on the link.
*There are two cases possible ::
*There are two cases possible ::
** No instance of "Browse" is open. In this case, following sequence of steps happen ::
** No instance of "Browse" is open. In this case, following sequence of steps happen ::
Line 71: Line 73:
*** The window gets switched to the "Browse" window (if not already).
*** The window gets switched to the "Browse" window (if not already).
*** The URL is loaded.
*** The URL is loaded.
*Code changes required at the client-side ::
*Code changes required at the client-side ::
** If the link needs to be added, with a particular text for the hyerlink, the following code needs to be written :
** If the link needs to be added, with a particular text for the hyerlink, the following code needs to be written :
<code><pre>  frame.add_message(body='Description',summary='First Title',link='http://www.linuxquestions.org', link_text='Click here to get answers to all your Linux questions')</pre></code>
<code><pre>  frame.add_message(body='Description', summary='First Title', link='http://www.linuxquestions.org', link_text='Click here to get answers to all your Linux questions')</pre></code>
** If no special text needs to be present for the link, we can skip the "link_text" attribute :
<code><pre>    frame.add_message(body='Description',summary='First Title',link='http://www.linuxquestions.org')</pre></code>




Line 118: Line 124:
===The view changes to "Browse" window (without opening a new  window), and the URL is loaded===
===The view changes to "Browse" window (without opening a new  window), and the URL is loaded===
[[Image:ns_6.png|640px]]
[[Image:ns_6.png|640px]]


== User Experience ==
== User Experience ==