Skip to content Skip to sidebar Skip to footer

.load() Works In Ie And Dreamweaver Preview, But No Opera And Chrome

Cant get this code to work in chrome, which is essential since I'm developing for android. Can anyone see the error? I just want to load 'page1.html' into '#container1'. Should be

Solution 1:

When accessing files via the local file system (file:// URLs) you cannot load any local AJAX resources in Chrome and Opera for security reasons.

When using HTTP there is the "same origin policy" to prevent sites from accessing data they shouldn't have access to. However, on the local file system there is no way to know what's safe to access and what not. So AJAX requests to local files are generally blocked.

Post a Comment for ".load() Works In Ie And Dreamweaver Preview, But No Opera And Chrome"