View Full Version : Step Carousel - Dynamic Load with URL (with file hosting website) not working

07-25-2011, 02:14 PM
1) Script Title: Step Carousel Viewer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm

3) Describe problem:
(I'm new to web-coding in general, so please bear with me.)

I'm trying to dynamically change the panels of the step carousel using the loadcontent function with a URL, like so:

<a href="javascript:stepcarousel.loadcontent('mygallery', 'http://www.a-web-site.com/something.html')"/>

Also, I've been attempting to use an external file for the initial contents of the carousel, like so:

contenttype: ['ajax', 'http://www.a-web-site.com/something.html']

Both instances only gives me the "Error fetching content. Server Response:" error (without a reason shown). How do I fix this?

I'm on Blogspot, which doesn't allow files to be uploaded to directories (as far as I know), so I'm using the external file-hosting site OpenDrive. I can't find any examples of someone else having problems with a full URL, so is that the problem? And is there a workaround?


07-26-2011, 12:09 AM
You cannot fetch a page via AJAX from another domain. You could fetch a same domain page that has images on it that are from another domain.

07-27-2011, 06:13 AM
Thanks for the information. My problem to begin with was that Blogspot won't let me create pages on whim - at least, not the source code kind I need - or upload files, and moving from Blogspot is not something my client will accept.

But it works now. I changed the code so the dynamic loading bypasses the ajax query all together.