<?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: Browser incompatibility issue using JS in taskforms in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10950#M4251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just as a remark: From the user perspective the selected attribute just means to show some process variable to the user (but in a select box instead of a text box), that should be possible in my opinion. Maybe if that is a hard problem to solve with the form capabilities we should move that thread to the dev forum and discuss there how to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Sep 2010 08:23:13 GMT</pubDate>
    <dc:creator>bernd_ruecker</dc:creator>
    <dc:date>2010-09-06T08:23:13Z</dc:date>
    <item>
      <title>Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10946#M4247</link>
      <description>Hello everyone,I hope that I'm in the right forum. I have a problem concerning the execution of taskforms in different browser.I have a taskform that contains javascript code and is referenced by a userTask in a test process:&amp;lt;h1&amp;gt;Handle Form&amp;lt;/h1&amp;gt;Usually the selection box shows "Misuse" at</description>
      <pubDate>Wed, 01 Sep 2010 15:49:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10946#M4247</guid>
      <dc:creator>gerardo1</dc:creator>
      <dc:date>2010-09-01T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10947#M4248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Gerardo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason that your code isn't running is because the forms are loaded via an XHR request (AJAX) and most browsers don't execute script tags contained in an XHR response. That's a general policy from the browser vendors rather than something we're specifically not supporting in Activiti. There are work arounds, but they involve creating a callback method that searches through the nodes in the response body and eval()s each script tag, which isn't something we've got any plans to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Returning to the initial problem: are you trying to change the default option in different scenarios, or do you always want "Settings" to be default? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's the latter, moving the 'selected' HTML attribute would solve that easily.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 18:59:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10947#M4248</guid>
      <dc:creator>davidcognite</dc:creator>
      <dc:date>2010-09-01T18:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10948#M4249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello dwebster,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot for this advice. I'll try to implement your idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some information concerning the scenario: The preselected option depends on a process variable. The html option tag doesn't have an attribute that defines the preselected option, e.g. &amp;lt;select id="…" selectedIndex="2". That's why I have to use the JS workaround. If you know such an attribute. Then there would be no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gerardo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 20:38:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10948#M4249</guid>
      <dc:creator>gerardo1</dc:creator>
      <dc:date>2010-09-02T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10949#M4250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Gerardo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how you could use a process variable to manipulate the HTML of the form, which is really what you're after, since the forms are static rather than parsed in any way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The HTML option tag has the 'selected' attribute, used as either "selected", as in your option above, or "selected='selected'" which indicates that it should be the preselected option, but without the ability to alter the HTML based on the process variable, this attribute is little help in your scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 08:04:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10949#M4250</guid>
      <dc:creator>davidcognite</dc:creator>
      <dc:date>2010-09-03T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10950#M4251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just as a remark: From the user perspective the selected attribute just means to show some process variable to the user (but in a select box instead of a text box), that should be possible in my opinion. Maybe if that is a hard problem to solve with the form capabilities we should move that thread to the dev forum and discuss there how to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 08:23:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10950#M4251</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2010-09-06T08:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10951#M4252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find a solution for my problem. I add a JUEL-Expression, which looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;p&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;select name="issueClassification"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="misUse" ${(issueClassification == 'misUse' ? 'selected=\'true\'' : ' ' )}&amp;gt;Misuse&amp;lt;/option&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="settings" ${(issueClassification == 'settings' ? 'selected=\'true\'' : ' ' )}&amp;gt;Settings&amp;lt;/option&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="technicalProblem" ${(issueClassification == 'technicalProblem' ? 'selected=\'true\'' : ' ' )}&amp;gt;Technical problem&amp;lt;/option&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/select&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/p&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the process variable issueClassification is set before the taskform is presented and contains one of the three values: misUse, settings, technicalProblem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must say that I don't like this solution, because the JUEL expression are not intended to be used for the manipulation of html code in this way. But finally it works ;-D.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help David. Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gerardo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 13:05:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10951#M4252</guid>
      <dc:creator>gerardo1</dc:creator>
      <dc:date>2010-09-06T13:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10952#M4253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm, why shouldn't that be not be intended to be used for that? I think it is the correct solution to use server side form evaluation with expressions to create a HTML you need for the GUI. Or not?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 07:31:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10952#M4253</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2010-09-07T07:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10953#M4254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Bernd, afaict, at the server side there is only juel rendering.&amp;nbsp; there is some extra logic at the client side that interprets the extra meta data in the hidden fields and enhances the UI experience a bit with some javascript.&amp;nbsp; so there is no other server side evaluation then juel rendering of the form.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 07:34:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10953#M4254</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-09-13T07:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10954#M4255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the JUEL server side rendering is sufficient for most of the cases. As far as I understood the explanation from Nils we are limited in the form client java script to anything offered/pre-built by the webapp (like the date picker). If that is powerful enough, I think we can live with that limitation for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I still think we need a baseline decision: Fully fledged powerful enterprise ready task list component or prototyping play-around webapp…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 10:27:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10954#M4255</guid>
      <dc:creator>bernd_ruecker</dc:creator>
      <dc:date>2010-09-13T10:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Browser incompatibility issue using JS in taskforms</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10955#M4256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I think we shall support thought is the possibility to use &amp;lt;script&amp;gt; elements and make sure they are executed in all browsers, its a very easy fix to do and will make it possible to provide more advanced functionality if someone wants to go down that route. We shall also think how we can support this type of functionality without turning the .form-definition into a hacky javascript file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 10:14:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/browser-incompatibility-issue-using-js-in-taskforms/m-p/10955#M4256</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2010-09-17T10:14:15Z</dc:date>
    </item>
  </channel>
</rss>

