View Full Version : Interstitial Content Box in a blog?

11-29-2006, 08:09 PM
1) Script Title: Interstitial Content Box (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/interstitial.htm

3) Describe problem: How can I make it work in a blog? The blog's URL is http://valenciasailing.blogspot.com

11-29-2006, 10:27 PM
What's the problem exactly?

11-29-2006, 11:55 PM
The problem is that I can't make it work. I took it off from the page.

I have all the files in one directory but the external pages do not appear.

Obviously, I can't put them in the same directory as the website's main page since it's a blog. Is there a solution to such a situation?

11-30-2006, 01:08 PM
How are you specifying the paths to the external files inside the .js file? Make sure they are local references, not absolute paths (ie: /subdir/external.htm versus http://mysite.com/subdir/external.htm).

Anyhow, it'd be helpful if you could post a link to the page on your site that contains the problematic script so we can check it out.

11-30-2006, 08:31 PM
Thanks for your help. Here are the details:

First of all, the test blog is at http://nzlvalencia.blogspot.com
All files are at the directory http://www.valenciasailing.com/css

The paths to the two external files are referred to as /css/samplecontent.htm and /css/samplecontent2.htm

As you can see when checking the blog, the two HTML files are not displayed

11-30-2006, 11:24 PM
Ok, checking the paths of your external content inside the script, I believe it should be:

displayfiles: ['css/samplecontent.htm', 'css/samplecontent2.htm'],

In other words, without the "/" prefixing "css".

12-01-2006, 01:12 PM
I made the change but it still doesn't work. Maybe after all the website has to be in the same domain as the rest of the files.

12-01-2006, 02:07 PM
Oh shoot I didn't realize the two domains are in fact different, which they are (domain versus sub.domain.com). Yep, in that case it won't work due to Ajax security settings. The external files have to be on the same domain as the script itself, such as: