Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

UIWebview ajax async load fail

Hey guys, I am working on a project which a html site running in UIWebview, and the page will load javascript file dynamically by jQuery.ajax method. The problem is, it never worked, I tracked it through safari debugger, and found that all the request that sent by jQuery.ajax got a time out request error.

jQuery.ajax({ async : false, cache : false , dataType: "text", url: filePath, success: function(data) { source = data; } });

It there anyone can help? thank a lot.