Ymacs with Filepicker.io, with ajax to get content

I am using Ymacs with Filepicker.io from here , and I am trying to extract the contents of a div using ajax.

But the problem is that I cannot turn on the jQuery library too, because it is in conflict, and ajax is still not working, I also tried this code from jQuery, but it seems to be doing nothing.

I put no noConflict in two places.

Any ideas how to solve this problem?

<script type="text/javascript" src="/js/jquery-1.7.2.min.js"> $.noConflict(); window.setInterval(getAjax, 3000); function getAjax() { $.ajax({ type: "POST", url: '/index', data: "some-data" }); } </script> 
+4
source share
1 answer

Did you forget the script tag, or am I missing jQuery loading somewhere else? This works for me:

 <!DOCTYPE html> <script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script> <script> // $.noConflict(); window.setInterval(getAjax, 3000); // This is getting hoisted function getAjax() { $.ajax({ type: "POST", url: '/index', data: "some-data" }); } </script> 

https://gist.github.com/3505792

+1
source

All Articles