How do I obtain the mashlets url?

dtillery
dtillery's picture
User offline. Last seen 1 year 17 weeks ago. Offline
Joined: 04/15/2009
Points: 40

I'm attempting to create a html link from one mashlet to another.  The calling mashlet is building the html and I'd like to use the mashlets url in the link.  Through Firebug's dom inspector I go to Ema > container > http://x.x.x.x.  I see at the bottom there are 4 urls.  I'd like to use "mashletsUrl" in my mashlet.  How do I leverage this?  Thanks.

0
Your rating: None
dtillery
dtillery's picture
User offline. Last seen 1 year 17 weeks ago. Offline
Joined: 04/15/2009
Points: 40

Ok I figured it out.  In main.js in the render function I assigned the value of this.container.mashletsUrl to a global variable.  This same concept can of course be applied to prestoUrl, serverUrl, etc.