Text Area hidden URL

Get Text Area hidden URL 

html
<pre id='url'></pre>

js
$("#url").text(window.location.href);

Sample Result
http://localhost:8000/?view=db3aa178-a291-41df-ba8b-4fad62196db9&seed=7

This URL can be placed in any web browser useful for debugging purposes. Can also be used in the collaboration panel to avoid copying and pasting a menu like Text Area across all tabs. Use this script to update the URL for all collaboration panels.

If you already have a menu-style Text Area across all tabs, it's easy to replace it's content by setting its window.location.href with the hidden URL:

js
window.location.href = http://localhost:8000/?view=db3aa178-a291-41df-ba8b-4fad62196db9&seed=7

unfortunately I have not figure out a way to use the Text Area as a WebView control to be able to put iframes or external URLs






2 comments:

Brandon Obenauf said...

How did you get the spoke chart? I've been trying to incorporate D3.JS into visuals for a while now, but haven't been able to get the correct plugins.

Jose Leviaguirre said...

Try the SDK. I was never able to incorporate D3.JS directly on a text area.