[solved] The Requested Content Cannot Be Loaded. Please Try Again Later.
Posted On Sat Apr 14, 2012 By hostman In Javascipt Forums And Other Related Topics Discussion About Javascript Progamming Forums
today a customer was complaining about their website not working. they were using jquery with fancybox and when ever a user click on a click to start fancybox, they would get a message that says:
The requested content cannot be loaded. Please try again later.
ok, so how did we solve this problem.. well, after a couple of hours reviewing the javascript code, we found a piece of code that stood out. it was this line:
if(ShowFacyBox){ $('#'+FancyBoxDiv).remove();
well, what happened here that they were using another script that uses fancy box, and when fancy box was started, it would not find the ajax div where the content will go, because it was removed by the previous command. instead we changed it to
if(ShowFacyBox){ $('#'+FancyBoxDiv).hide();
you see the difference. instead of remove() we use hide()
so basically, if you are getting this error might be because of fancybox cannot find the element where to put the content to. for example, our script was looking for a div with id FancyBoxDiv and fancybox did not find it so thats why we were getting this error.
another possible issue could be duplicate divs with the same id or element that fancybox is using.
hope that helps
The requested content cannot be loaded. Please try again later.
ok, so how did we solve this problem.. well, after a couple of hours reviewing the javascript code, we found a piece of code that stood out. it was this line:
if(ShowFacyBox){ $('#'+FancyBoxDiv).remove();
well, what happened here that they were using another script that uses fancy box, and when fancy box was started, it would not find the ajax div where the content will go, because it was removed by the previous command. instead we changed it to
if(ShowFacyBox){ $('#'+FancyBoxDiv).hide();
you see the difference. instead of remove() we use hide()
so basically, if you are getting this error might be because of fancybox cannot find the element where to put the content to. for example, our script was looking for a div with id FancyBoxDiv and fancybox did not find it so thats why we were getting this error.
another possible issue could be duplicate divs with the same id or element that fancybox is using.
hope that helps
Related Content
Information
Forums »
Javascipt Forums And Other Related Topics Discussion About Javascript Progamming »
[solved] The Requested Content Cannot Be Loaded. Please Try Again Later.
Javascipt Forums And Other Related Topics Discussion About Javascript Progamming »
[solved] The Requested Content Cannot Be Loaded. Please Try Again Later.
Title: [solved] The Requested Content Cannot Be Loaded. Please Try Again Later.
Description: this page shows you possible ways to fix jquery fancybox error message The requested content cannot be loaded. Please try again later.
Tags: jquery ,computer ,programming ,javascript ,code ,fancybox
Info: This Post Has Been Viewed 0 Times Since
Date: Sat Apr 14, 2012
Author hostman Received 0 Replies #845
Date: Sat Apr 14, 2012
Author hostman Received 0 Replies #845
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5