Results 1 to 8 of 8

Thread: Interstitial Content Box in a blog?

  1. #1
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Interstitial Content Box in a blog?

    1) Script Title: Interstitial Content Box (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...terstitial.htm

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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    What's the problem exactly?

  3. #3
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  5. #5
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, checking the paths of your external content inside the script, I believe it should be:

    Code:
    displayfiles: ['css/samplecontent.htm', 'css/samplecontent2.htm'],
    In other words, without the "/" prefixing "css".

  7. #7
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  8. #8
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    http://nzlvalencia.blogspot.com/css/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •