<?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: Ajax calls and firefox in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312287#M265417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could solve the problem. It's not about the Ajax call. It's actually about Lucene search. My webscript did lucene search against a property of my custom model. I noticed when I used whitespace in the queries I got always empty results but only when using Firefox. With Chrome it was fine. I then started to do some research and found out the property of my custom model was tokenized and so Lucene couldn't find the node if whitespaces were used in the query. I changed the property to non-tokenized, reindexed lucene indexes and the webscript started to work! So happy about this. Sorry though that I lead you in the wrong direction with the ajax calls.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 14:19:39 GMT</pubDate>
    <dc:creator>sihnu</dc:creator>
    <dc:date>2015-12-16T14:19:39Z</dc:date>
    <item>
      <title>Ajax calls and firefox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312284#M265414</link>
      <description>Hey,recently I noticed that Ajax webscripts calls are always returning an empty object when I'm using Firefox. Here is an example structure showing how I call my webscripts:url = Alfresco.constants.PROXY_URI + "path/to/my/webscripts"Alfresco.util.Ajax.jsonGet({&amp;nbsp; url : url,&amp;nbsp; successCallback : {&amp;nbsp;&amp;nbsp;&amp;nbsp; fn</description>
      <pubDate>Tue, 08 Dec 2015 10:42:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312284#M265414</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-12-08T10:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax calls and firefox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312285#M265415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Assuming you have made your slingshot return JSON then you would better use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;res.json rather than eval'ing the return.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 23:23:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312285#M265415</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2015-12-09T23:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax calls and firefox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312286#M265416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot for your reply. The problem is not who I'm forming the json because the json in the response is empty. You are right I should use res.json because that's the right way to do it. However, the property res.json is just an empty object {}. Same goes to response text which is just "{}".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I got new information. I noticed something weird. It's not really about the ajax call. Even though I do try to call the webscript using browser directly (writing the webscript path to address bar and pressing enter) I will get just empty object. However, if I do the same with Chrome I can get the correct response. Then I noticed something strange again. When browsing my webscripts at share/page/index/all with Firefox I can't see the webscripts but with Chrome I can see those. I can only see the webscripts with Firefox that I have deployed using classpath but not those I've uploaded to repository. Refreshing webscript index didn't help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still I get some response with Firefox when calling the webscript because it's returning an empty object. So I'm sure that the webscript is deployed. And of course I can be sure of it because it works fine with Chrome. One thing more is that I do run those webscripts which are deployed to classpath as an admin. I'm not sure if that has something to do with that. I still have to test it. Adding alf_ticket to the webscript call with Firefox didn't help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what is going on here? Firefox being moderately popular browser I would assume other people have found the same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 10:50:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312286#M265416</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-12-10T10:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ajax calls and firefox</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312287#M265417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could solve the problem. It's not about the Ajax call. It's actually about Lucene search. My webscript did lucene search against a property of my custom model. I noticed when I used whitespace in the queries I got always empty results but only when using Firefox. With Chrome it was fine. I then started to do some research and found out the property of my custom model was tokenized and so Lucene couldn't find the node if whitespaces were used in the query. I changed the property to non-tokenized, reindexed lucene indexes and the webscript started to work! So happy about this. Sorry though that I lead you in the wrong direction with the ajax calls.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 14:19:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ajax-calls-and-firefox/m-p/312287#M265417</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-12-16T14:19:39Z</dc:date>
    </item>
  </channel>
</rss>

