<?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: Firefox ajax network error in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/firefox-ajax-network-error/m-p/33422#M14131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please add code for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2017 08:52:38 GMT</pubDate>
    <dc:creator>krutik_jayswal</dc:creator>
    <dc:date>2017-11-28T08:52:38Z</dc:date>
    <item>
      <title>Firefox ajax network error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/firefox-ajax-network-error/m-p/33421#M14130</link>
      <description>Hi,&amp;nbsp; &amp;nbsp; &amp;nbsp;I am Web developer, i m using&amp;nbsp; Alfresco API and uploading file to the directory using the ajax call which is working fine for all the browsers except&amp;nbsp; Mozilla Firefox (all versions), It is&amp;nbsp; throwing a network error which states&amp;nbsp;"Network Error: A Network error occurred" &amp;nbsp;and stops the script&amp;nbsp;</description>
      <pubDate>Tue, 28 Nov 2017 06:04:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/firefox-ajax-network-error/m-p/33421#M14130</guid>
      <dc:creator>waqas123</dc:creator>
      <dc:date>2017-11-28T06:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Firefox ajax network error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/firefox-ajax-network-error/m-p/33422#M14131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please add code for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:52:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/firefox-ajax-network-error/m-p/33422#M14131</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2017-11-28T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Firefox ajax network error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/firefox-ajax-network-error/m-p/33423#M14132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the code is below which is working fine on all browsers except the&amp;nbsp;Firefox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function check_form(formname) {&lt;BR /&gt;&lt;BR /&gt; window.onbeforeunload = null;&lt;BR /&gt; &lt;BR /&gt; var folderName = document.getElementById('name').value;&lt;/P&gt;&lt;P&gt;var getUrl = window.location;&lt;BR /&gt; var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];&lt;/P&gt;&lt;P&gt;var data;&lt;BR /&gt; $.ajax({&lt;BR /&gt; type: 'POST',&lt;BR /&gt; url: baseUrl +'/index.php?entryPoint=customEntryPointAlfrescoConfig',&lt;BR /&gt; data:&lt;BR /&gt; {&lt;BR /&gt; alfresco_foldername: folderName,&lt;BR /&gt; },&lt;BR /&gt; cache: false,&lt;BR /&gt; success: function(html){&lt;BR /&gt; data = html;&lt;BR /&gt; callAlfresco(data);&lt;BR /&gt; },&lt;BR /&gt; error: function(xhr,status,error) {&lt;BR /&gt; alert('Error!');&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;return true;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function callAlfresco(data){&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var protocol = location.protocol;&lt;BR /&gt; var res = data.split("/");&lt;/P&gt;&lt;P&gt;var alfrescoLogin = res[0];&lt;BR /&gt; var alfrescoPassword = res[1];&lt;/P&gt;&lt;P&gt;var alfrescoNodeId = res[5];&lt;BR /&gt; var alfrescoTicketId = res[6];&lt;BR /&gt; var d = new Date();&lt;BR /&gt; var alfrescoBaseUrl = res[2]+":"+res[3];&lt;/P&gt;&lt;P&gt;var uploadName = 'File_Time' + d.getTime();&lt;BR /&gt; var uploadFiles = document.getElementById('filename_file').files;&lt;/P&gt;&lt;P&gt;var form = new FormData();&lt;BR /&gt; form.append('name', uploadName);&lt;BR /&gt; form.append('nodeType', 'cm:content');&lt;BR /&gt; form.append('filedata', uploadFiles[0]);&lt;/P&gt;&lt;P&gt;$.ajax({&lt;BR /&gt; username: alfrescoLogin,&lt;BR /&gt; password: alfrescoPassword,&lt;BR /&gt; url: protocol+'//'+alfrescoBaseUrl + '/alfresco/api/-default-/public/alfresco/versions/1/nodes/'+alfrescoNodeId+'/children?alf_ticket='+alfrescoTicketId,&lt;BR /&gt; method: 'POST',&lt;BR /&gt; mimeType: 'multipart/form-data',&lt;BR /&gt; data: form,&lt;BR /&gt; async: true,&lt;BR /&gt; crossDomain: true,&lt;BR /&gt; processData: false,&lt;BR /&gt; contentType: false,&lt;BR /&gt; success: function(result,status,xhr) {&lt;BR /&gt; alert('Sucess!');&lt;BR /&gt; // $('#go-button').click();&lt;BR /&gt; },&lt;BR /&gt; error: function(xhr,status,error) {&lt;BR /&gt; alert('Error!');&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:51:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/firefox-ajax-network-error/m-p/33423#M14132</guid>
      <dc:creator>waqas123</dc:creator>
      <dc:date>2017-11-28T10:51:29Z</dc:date>
    </item>
  </channel>
</rss>

