Unable to add Javascript to ArcGIS online Organization Home Page

673
4
07-08-2019 01:24 PM
EricSamson
New Contributor

I recently created a web map using Arcgis's javascript API. I would like to add the new map that I created to the home page of my organization. However, when I add it to the html code I wrote for my customized home page(in the "organization description" box), it ignores and removes all javascript.

Is this on purpose? Will this customization be added in the future?

0 Kudos
4 Replies
NickHallal
New Contributor II

Did you ever find a way to display your map on the homepage? I'm looking to do something similar but I know that esri only supports certain HTML tags ( <a>, <img>, <video>, <audio>, <span>, <table>, <div>, <font>, <tr>, <td>, <th>, <p>, <b>, <strong>, <i>, <em>, <u>, <ul>, <ol>, <li>, <tbody>, <br>, <hr> ) so others like <script> or <iframe> that would help with displaying maps or other content get filtered out.  

0 Kudos
EricSamson
New Contributor

No, I haven't been updated on this issue yet. I have experienced the same as you, <script> or <iframes> tags do not work. It would be great if they could make the homepage compatible with javascript.

0 Kudos
NickHallal
New Contributor II

Apparently, you have to use the <embed> tag to do it, even though it isn't on the list of allowed tags.  I should've tested them anyways, maybe there are other allowed tags not listed.  Hopefully that will help you display maps and apps.  Esri should add them to the list of supported html here

Embed web map on ArcGIS Portal home page 

0 Kudos
NickHallal
New Contributor II

That's to add web maps, I mean, if you have the URL for it.  

0 Kudos