1 Reply Latest reply on Dec 13, 2012 10:32 PM by Bijesh Krishnadas

    js files in ADF

    Sally.A
      hello ,

      i create custom content presenter in ADF , the code is include js files :

      <af:resource type="javascript" source="http://www.continentalop.com.br/site/blocos/digital/includes/js/jquery.liquidcarousel.pack.js"/>


      <af:resource type="javascript" source="http://www.continentalop.com.br/site/blocos/digital/includes/js/jquery-1.4.2.min.js"/>

      but there is an error appeared each time i invoke the presenter :

      *XMLHttpRequest cannot load http://www.continentalop.com.br/site/blocos/digital/includes/js/jquery.liquidcarousel.pack.js.
      Origin http://192.168.30.39:7777 is not allowed by Access-Control-Allow-Origin.*

      Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101 boot-11.1.1.6.0-1318.js:450

      *XMLHttpRequest cannot load
      http://www.continentalop.com.br/site/blocos/digital/includes/js/jquery-1.4.2.min.js.
      Origin http://192.168.30.39:7777 is not allowed by Access-Control-Allow-Origin.*

      Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101 boot-11.1.1.6.0-1318.js:450

      can you help me to solve this error??

      Edited by: user12502220 on Oct 16, 2012 3:33 AM
        • 1. Re: js files in ADF
          Bijesh Krishnadas
          Hi,

          Did you ever resolve this? I am running into the same issue with my application.

          I believe this is because the ADF javascript library attempts to load the JS API using XMLHttpRequest and because the server doesn't allow cross-site scripting we see the "not allowed by Access-Control-Allow-Origin" error. I don't know how to resolve this though.