<?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: Javascript function split not working in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276735#M229865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Would rather see an error or null object returned than an empty array though.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Feel free to raise a bug at Mozilla against the Rhino engine - that's "just how it works" I'm afraid.&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>Thu, 29 Sep 2011 09:25:33 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2011-09-29T09:25:33Z</dc:date>
    <item>
      <title>Javascript function split not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276732#M229862</link>
      <description>When I try to use the split funtion in javascript in a webscript on a string it always returns 0 elements.e.g.var test = "test.string.test";var testArray= test.split(".");testArray is alway empty.I'm guessing this has to do with the javascript implementation used by the webscripts. It's easy enough</description>
      <pubDate>Thu, 29 Sep 2011 07:41:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276732#M229862</guid>
      <dc:creator>kamielvdz</dc:creator>
      <dc:date>2011-09-29T07:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript function split not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276733#M229863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not seeing that at all…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;% var test = "test.string.test"; var testArray= test.split(".");&lt;BR /&gt;% testArray.length&lt;BR /&gt;3&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;Make sure you've got a JavaScript string and not a Java string when trying to call split(). You can force a JavaScript string using String().&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>Thu, 29 Sep 2011 07:47:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276733#M229863</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-09-29T07:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript function split not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276734#M229864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thx. That was indeed the problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would rather see an error or null object returned than an empty array though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 08:45:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276734#M229864</guid>
      <dc:creator>kamielvdz</dc:creator>
      <dc:date>2011-09-29T08:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript function split not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276735#M229865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Would rather see an error or null object returned than an empty array though.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Feel free to raise a bug at Mozilla against the Rhino engine - that's "just how it works" I'm afraid.&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>Thu, 29 Sep 2011 09:25:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-function-split-not-working/m-p/276735#M229865</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-09-29T09:25:33Z</dc:date>
    </item>
  </channel>
</rss>

