<?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: problem of linking a javascript to a webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91270#M62251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As long as your users logout and the browser isn't set to remember passswords, then there's no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 11:45:16 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2007-07-20T11:45:16Z</dc:date>
    <item>
      <title>problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91256#M62237</link>
      <description>HiI ve wanted to put a copy of the files used for the new myspace webscript in the Alfresco space webscripts extension so that I could do some customisation to those files while keeping the originals untouched. I though that the myspace webscript was a good start to see how to do a custom GUI for Al</description>
      <pubDate>Tue, 03 Jul 2007 09:32:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91256#M62237</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-03T09:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91257#M62238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;myspaces.js is a client-side javascript - copying it to the webscript folder won't help - it needs to be accessed via a public web server url e.g. /scripts/ajax/myspaces.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myspaces-webscript2.jsp is a java server page - copying it to the webscript folder won't help - web scripts do not support .jsp customisation in this way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:46:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91257#M62238</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-07-03T10:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91258#M62239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So is there no way to do some custom .js or .jsp without touching to the normally untouchable files within the webapp? Is the only solution for adding some javascript, to add those said javascript in the folder scripts/ajax ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I understood about the myspaces webscripts all the interesting stuff are implemented by the javascripts so I think its kind of bothersome there is no way to do some kind of javascript extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my own experience from Alfresco it is never a good idea to add or change things in the webapp folder because it always face the risks of being overwritten.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 03:00:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91258#M62239</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-04T03:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91259#M62240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please be aware that there is javascript that can run on the server-side (i.e. in the Alfresco server) and javascript that can run on the client-side (i.e. in the Browser).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myspaces.js is executed in the browser and loaded into the browser via a URL.&amp;nbsp; That URL needs to be supported by the Alfresco server.&amp;nbsp; Now, in the case of the myspaces portlet, it's using /scripts/ajax, a URL that's exposed natively by the Alfresco web server.&amp;nbsp; If you wish to move myspaces.js into the Respository, you can put it in any folder you like and then refer to via the "Content Download" Webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. if you put myspaces.js in Company Home, you can use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/scripts/ajax/myspaces.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JSP page customisation is NOT supported by the Web Script f/w.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 09:36:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91259#M62240</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-07-04T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91260#M62241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for the explanation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didnt really understood what the Content Download Webscript did nor do I really understand all the subtilities lying with javascripts and URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try my very best to understand it but my time on this project is short and I must learn everything from scratch when it comes to javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways I have another problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I do what you wrote, meaning I have my javascript file in company home and I put the good path, it works, but when I put my file the subspace &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Dictionary\Web Scripts Extensions\org\alfresco\sample\test\myspaces2.js it doesnt work anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ve put the path :/alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/Dictionary%20Data/Web%20Scripts%20Extensions/org/alfresco/sample/test/myspaces2.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What did I do wrong? Is my path incorrect?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ve even tried the path :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/alfresco/service/api/path/content/workspace/SpacesStore/e5330e88-2916-11dc-a0c2-8d2c96e3c1ff/myspaces2.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;given by one of the links in the detail page of the test space. but weirdly it points toward the myspaces in companyhome…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 03:30:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91260#M62241</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-05T03:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91261#M62242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some new questions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using /alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;works but I ve discovered some things that are somewhat problematic. I tried to "ignore" them at first but I think I have to make them dissapear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first thing is that this "service/api"&amp;nbsp; only works with file in company home. When I put my javascript file in another space it doesnt work anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example when I put &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/Data%20Dictionary/Web%20Scripts%20Extensions/org/alfresco/sample/test/myspaces2.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it doesnt work. I can still put files in company home but I think it s not very good. I dont understand why I can only read files in company home using the service application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other problem is when you log in for the first time and try to enter my custom portlet. There is the first normal loggin page but after you logged once there is another window that pops up asking for yet again a login and password. I suspect that it is this last line I was talking about that launch this. My webscript somehow needs to log in in order to go fetch my javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So is there a way to insert inside my webscript a login and password that it will always use for the service application that is reaching for custom javascript in Alfresco's repisetory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is not vital to do this but it would greatly improve the user friendly feeling of the portlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 03:30:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91261#M62242</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-16T03:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91262#M62243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The /alfresco/service set of URLs use HTTP BASIC authentication. Your Freemarker template is probably using web client/session-based authentication. The two are quite separate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your easiest option is either to use the /alfresco/wcservice URL for the client-side jaavascript, or to append the /alfresco/service URL with &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ticket=$(session.ticket)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; when building the page within the Freemarker template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 09:50:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91262#M62243</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-07-16T09:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91263#M62244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mmmm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx for the reply mike and I dont want to seem impertinent but could you please rephrase this in another way because I understood nothing of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me you are suggesting me to use the login or Getloginticket webscripts but I have absolutely have no idea how it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Must I implement this "ticket" in javasctript or directly in the freematker file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for abusing your good will but I searched so much on this matter that I think I have mixed everything wrongly. For exemple in &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Authentication_Web_Service" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Authentication_Web_Service&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont even understand where you should put those method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 03:17:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91263#M62244</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-17T03:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91264#M62245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your Freemarker template, you need to include the client-side javascript files like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;script type="text/javscript" src="/alfresco/path/to/javscript/myspaces.js?ticket=${session.ticket}"&amp;gt;&amp;lt;/script&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Although the problem is occurring because you're mixing the two authentication types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 08:38:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91264#M62245</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-07-17T08:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91265#M62246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried putting the ticket=${session.ticket but there is no change&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my first loging I still have to do 2 authentification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Although the problem is occurring because you're mixing the two authentication types.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What do you mean by that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:19:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91265#M62246</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-20T04:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91266#M62247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two authentication methods - web client and HTTP BASIC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BASIC authentication is useful for REST-based services as you can supply the authentication credentials in the intial HTTP request headers, which is widely supported by various clients.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Web client authentication is when you go through the Alfresco login screen and get a jsession id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your new drag-and-drop portlet is designed to sit within the web client, when you should address it using the /alfresco/wcservice/… URL root. This will use web client authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:10:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91266#M62247</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-07-20T08:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91267#M62248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do understand that there are 2 authentication needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but what I d like is to only have to go through one of them, the login of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The login of Alfresco is necessary because it changes depending on the user for reason of rights.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the BASIC authentication is the same for all users. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The REST-based service I call in my template only need the right to read a javascript file located in Alfresco's repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what I wanted is to put the login and password for the REST-based service in my template so that when a user logs for the first time then go on the myspaces customed portlet, he wont have to enter a login and password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the ticket=${session.ticket} solution didnt work for me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cant I do something that looks like &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js&amp;nbsp; user=reader&amp;amp;password=reader&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:42:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91267#M62248</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-20T08:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91268#M62249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;…but what I d like is to only have to go through one of them, the login of Alfresco.&lt;BR /&gt;&lt;BR /&gt;Cant I do something that looks like &lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js&amp;nbsp; user=reader&amp;amp;password=reader&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes, but as I said above, you need to use a slightly different URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/alfresco/wcservice/api/path/content/workspace/SpacesStore/Company%20Home/myspaces.js&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Note the &lt;/SPAN&gt;&lt;STRONG&gt;wcservice&lt;/STRONG&gt;&lt;SPAN&gt; part, drop the user and pass parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 09:14:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91268#M62249</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-07-20T09:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91269#M62250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks it works &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I have some question from a security point of view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From the few test I ve done, in a web browser you need to enter a BASIC authentication only once. After the first log in all users can use the myspaces portlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my question is, is there a way for a user to recover the login and password used in the BASIC authentication? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because there may be the possibilities that a user uses a post and enter his Alfresco authentification, so the first BASIC authentication will take on that user loggin and password. Now if a second user go on the same posts and web browser and he has less permission than the first one, can he somehow recover the BASIC authentication loggin and password previously used?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it is unlikely but security isnt my domain so I d rather know your opinion on the matter and sorry if that was a stupid question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seraphon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 09:52:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91269#M62250</guid>
      <dc:creator>seraphon</dc:creator>
      <dc:date>2007-07-20T09:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem of linking a javascript to a webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91270#M62251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As long as your users logout and the browser isn't set to remember passswords, then there's no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 11:45:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-of-linking-a-javascript-to-a-webscript/m-p/91270#M62251</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-07-20T11:45:16Z</dc:date>
    </item>
  </channel>
</rss>

