<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding an Image in HTML doc using JavaScript in Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300828#M253958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What exactly you are looking to do with image? Sending in mail OR something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The below code is used to render image from javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var imageUrl = Alfresco.constants.PROXY_URI+"api/node/content/workspace/SpacesStore/"+{UUID of image content}+"/"+{Name of the image}; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;img src="'+imageUrl+'?a=true" width = "65px" height = "35px"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 04:43:35 GMT</pubDate>
    <dc:creator>aaditvmajmudar</dc:creator>
    <dc:date>2014-05-20T04:43:35Z</dc:date>
    <item>
      <title>Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300825#M253955</link>
      <description>I have an image url defined in my javascript code as:var url = "http://127.0.0.1:8081/share/proxy/alfresco/api/node/content/'+urlStr.substring(4);I have to pass this as src attribute to an image:var content = "";content += "&amp;lt;img src=\"url\"&amp;gt;";‍‍‍‍But this doesn't work. I also tried inserting i</description>
      <pubDate>Tue, 20 May 2014 00:29:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300825#M253955</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-20T00:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300826#M253956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean when you say "doesn't work"? What error do you get? What's in urlStr? Are you executing this inside or outside of Alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 03:06:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300826#M253956</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-05-20T03:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300827#M253957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bob, if I copy paste the variable url in the browser, it gives me the right image document so the path is correct. I have even linked it using the javascript str.link() method. It doesn't work means I am not able to see the image when I insert it using html img src tag. I am writing this code in javascript, which executes as a rule when the documents in one of my folders are modified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 03:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300827#M253957</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-20T03:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300828#M253958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What exactly you are looking to do with image? Sending in mail OR something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The below code is used to render image from javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var imageUrl = Alfresco.constants.PROXY_URI+"api/node/content/workspace/SpacesStore/"+{UUID of image content}+"/"+{Name of the image}; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;img src="'+imageUrl+'?a=true" width = "65px" height = "35px"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 04:43:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300828#M253958</guid>
      <dc:creator>aaditvmajmudar</dc:creator>
      <dc:date>2014-05-20T04:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300829#M253959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Aadit, Thanks for your reply. I am just trying to display the image in my html document. I am passing the html content to the new file content. Some of it looks like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var boxwidth = document.properties["sc:price"];&lt;BR /&gt;content += "&amp;lt;body align=\"center\"&amp;gt;&amp;lt;font face= \"Comic sans MS\"&amp;gt;";&lt;BR /&gt;content += "&amp;lt;b&amp;gt;Retail Price: &amp;lt;/b&amp;gt;" + price + "&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";&lt;BR /&gt;content += "&amp;lt;img src=\"'+res+'?a=true\" width = \"65px\" height = \"35px\"/&amp;gt;";&lt;BR /&gt;newFile.content = content;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I need to escape the double quotes while passing it to the content string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried your code but still the image isn't getting displayed. Is my syntax wrong somewhere? I passed the url as you had mentioned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I greatly appreciate your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 12:38:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300829#M253959</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-20T12:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300830#M253960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you append ?a=true that tells the content webscript to attach the content as a file to download. Miss that off and it should give you a content stream (it does for me).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 13:00:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300830#M253960</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-05-20T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300831#M253961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bob, I tried exactly this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;content += "&amp;lt;img src=\"'+res+'\" width = \"65px\" height = \"35px\"/&amp;gt;";&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, I am not able to see the image. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 13:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300831#M253961</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-20T13:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300832#M253962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post the contents of res?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 14:08:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300832#M253962</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-05-20T14:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300833#M253963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is the content of res:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var urlStr = document.assocs["sc:relatedDocuments"][0].url;&lt;BR /&gt;var res = "&lt;A href="http://127.0.0.1:8081/share/proxy/alfresco/api/node/content/%22+urlStr.substring(4)" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8081/share/proxy/alfresco/api/node/content/'+urlStr.substring(4)&lt;/A&gt;;&lt;BR /&gt;content += "&amp;lt;img src=\"'+res+'\" width = \"65px\" height = \"35px\"/&amp;gt;";&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It works when I use it in link as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var str = "View Image";&lt;BR /&gt;var result = str.link(res);&lt;BR /&gt;content += result+"&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for looking into it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 14:39:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300833#M253963</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-20T14:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300834#M253964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am still less than certain what res actually contains at point of use, but it should look something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:8081/share/proxy/alfresco/api/node/content/workspace/SpacesStore/88265db1-371c-4ad2-a8de-94ffb2840216" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8081/share/proxy/alfresco/api/node/content/workspace/SpacesStore/88265db1-371c-4ad2-a8de-94ffb2840216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the GUID bit at the end will of course be different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It doesn't look like that's what you will end up with but I may be wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also you are going to localhost on a non standard port for Alfresco so I assume your browser is running on the same machine as your Alfresco installation and the you have explicitly assigned alfresco to 8081 away from 8080.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 21:03:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300834#M253964</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-05-20T21:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300835#M253965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The url path is correct as I could make a hyperlink with it and that works fine. My port is 8081 configured as I am running using the alfresco development environment. I think there is some issue with passing a string to JavaScript. It takes the string literally rather than replacing it with the actual contents of the string. Also, I tried creating img tag using document.createElement("img"); but the error log says cannot find createElement(). Any suggestions on a workaround this problem. Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 21:23:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300835#M253965</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-20T21:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300836#M253966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure if I have understood correctly or not but as per my understanding if you are facing some problem to render image with javascript then I had same requirement to display image in div element from javascript and I have used in same way as I mentioned like,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var imageUrl = Alfresco.constants.PROXY_URI+"api/node/content/workspace/SpacesStore/"+{UUID of image content}+"/"+{Name of the image};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;elCell.innerHTML = '&amp;lt;img src="'+imageUrl+'" width = "65px" height = "35px"/&amp;gt;';&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 06:29:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300836#M253966</guid>
      <dc:creator>aaditvmajmudar</dc:creator>
      <dc:date>2014-05-21T06:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300837#M253967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;"&amp;lt;img src=\"'+res+'\" width = \"65px\" height = \"35px\"/&amp;gt;";&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;not be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;"&amp;lt;img src=\"+res+\" width = \"65px\" height = \"35px\"/&amp;gt;";&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 11:05:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300837#M253967</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-05-21T11:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300838#M253968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Aadit when I use innerHTML() and getElementById() function, I get an error saying, cannot recognize those functions. Most of the normal javascript functions won't work. Are there any settings to enable them in Alfresco? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Bob, I had tried that too but still no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 12:24:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300838#M253968</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-21T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300839#M253969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you are not coding in client side JS file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are writing these code stuff in one of the webscript JS file OR Action JS file??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 04:22:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300839#M253969</guid>
      <dc:creator>aaditvmajmudar</dc:creator>
      <dc:date>2014-05-22T04:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300840#M253970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Aadit, sorry but I don't understand you. I am writing this javascript file in the Script folder of Data Dictionary and executing it using a rule on one of my folders. I wanted to invoke it using a simple rule so didn't use webscript but directly executing JavaScript. Thanks again for your time and looking into this. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 12:14:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300840#M253970</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-22T12:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an Image in HTML doc using JavaScript in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300841#M253971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally, writing it this way worked for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;'&amp;lt;img src=\"'+res+'\" width = \"150px\" height = \"100px\" &amp;gt;'&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 15:29:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-an-image-in-html-doc-using-javascript-in-alfresco/m-p/300841#M253971</guid>
      <dc:creator>juilee</dc:creator>
      <dc:date>2014-05-22T15:29:00Z</dc:date>
    </item>
  </channel>
</rss>

