Hi Lasantha, On Mon, Aug 22, 2016 at 5:09 PM, Lasantha Samarakoon <lasant...@wso2.com> wrote:
> Hi Kalpa, > > As it seems, the best way to proceed with your requirement is introducing > a meta data API. It is not a good practice access parent window within a > gadget as it may cause cross domain issues. > > WRT to pages with multiple words page titles, did you try fetching the > page title from the parents respective DOM element, instead of the URL? If > we can get that from the DOM, spaces won't be an issue anymore. > > Thanks for the suggestion. I could do so by accessing the active element in the ues-pages list. I will fix it properly once the meta data API is available. > > Regards, > > *Lasantha Samarakoon* | Software Engineer > WSO2, Inc. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 (71) 214 1576 > Email: lasant...@wso2.com > Web: www.wso2.com > > lean . enterprise . middleware > > On Mon, Aug 22, 2016 at 12:42 PM, Kalpa Welivitigoda <kal...@wso2.com> > wrote: > >> Hi Lasantha, >> >> I have a breadcrumb (this is a separate gadget) in the dashboard in which >> I display the navigation and the webapp filtering. Please refer the screen >> capture attached herewith. There, 'browser' is the page and 'examples' is >> the webapp name. When a user clickes 'browser', the page (other gadgets) >> updates to fetch and show statistics related to all webapps. >> >> How 'browser' is fetched at the moment is via the dashboard URL, we do a >> parent.window.location.href and get the page URL. This is also not good >> since we are using parent inside a gadget. May be we can consider adding >> page URL as well for the meta data in the API. >> >> The breadcrumb in the screen capture looks nice since it only has one >> word for the page title/URL. When we have pages like 'HTTP Status Code' >> with multiple words, it looks ugly since we cannot have spaces in the URL. >> >> On Mon, Aug 22, 2016 at 12:22 PM, Lasantha Samarakoon <lasant...@wso2.com >> > wrote: >> >>> @Kalpa, Can you please explain the use case of having the page title in >>> a gadget? >>> >>> >>> Regards, >>> >>> *Lasantha Samarakoon* | Software Engineer >>> WSO2, Inc. >>> #20, Palm Grove, Colombo 03, Sri Lanka >>> Mobile: +94 (71) 214 1576 >>> Email: lasant...@wso2.com >>> Web: www.wso2.com >>> >>> lean . enterprise . middleware >>> >>> On Mon, Aug 22, 2016 at 12:07 PM, Nisala Nanayakkara <nis...@wso2.com> >>> wrote: >>> >>>> Hi Kalpa, >>>> >>>> I have created jira for this issue [1]. We will implement an api to get >>>> dashboard-meta data information in the next release. So you can get >>>> relevant meta data information of the dashboard using the api. >>>> >>>> [1] - https://wso2.org/jira/browse/UES-1036 >>>> >>>> Thanks, >>>> Nisala >>>> >>>> On Mon, Aug 22, 2016 at 12:03 PM, Nipuna Chandradasa <nipu...@wso2.com> >>>> wrote: >>>> >>>>> Hi Kalpa, >>>>> >>>>> We currently have a API to send dashboard name and id. But we don't >>>>> have a api to get the page details. But we will create a jira for this and >>>>> add this as an improvement on next release. >>>>> >>>>> Thank you, >>>>> >>>>> On Mon, Aug 22, 2016 at 11:29 AM, Kalpa Welivitigoda <kal...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi devs, >>>>>> >>>>>> I have a dashboard with multiple pages. From a gadget in a page, I >>>>>> need to get the current page title. What would be the recommended >>>>>> approach >>>>>> to do this? >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards, >>>>>> >>>>>> Kalpa Welivitigoda >>>>>> Senior Software Engineer, WSO2 Inc. http://wso2.com >>>>>> Email: kal...@wso2.com >>>>>> Mobile: +94776509215 >>>>>> >>>>>> [image: http://wso2.com/signature] <http://wso2.com/signature> >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> Dev@wso2.org >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Nipuna Marcus >>>>> *Software Engineer* >>>>> WSO2 Inc. >>>>> http://wso2.com/ - "lean . enterprise . middleware" >>>>> Mobile : +94 (0) 713 667906 >>>>> nipu...@wso2.com >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Nisala Niroshana Nanayakkara,* >>>> Software Engineer >>>> Mobile:(+94)717600022 >>>> WSO2 Inc., http://wso2.com/ >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Best Regards, >> >> Kalpa Welivitigoda >> Senior Software Engineer, WSO2 Inc. http://wso2.com >> Email: kal...@wso2.com >> Mobile: +94776509215 >> >> [image: http://wso2.com/signature] <http://wso2.com/signature> >> > > -- Best Regards, Kalpa Welivitigoda Senior Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 [image: http://wso2.com/signature] <http://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev