Creating opensocial gadgets
Hello
I have created an opensocial gadget which should refer to the fronting app for data/services. It works fine if I hardcode the path - but is there a way to avoid this? I do not want to have all my widgets with paths like: https://localhost:9444/myapp/myservice :( |
One answer
If your gadget is using an AjaxModule, we write the base tag into the html, so you can use:
var baseURI = document.baseURI; |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.