WordPress.org

Ready to get started?Download WordPress

Forums

Code not working (11 posts)

  1. motoed
    Member
    Posted 8 years ago #

    I have this snippet of code from FilmLoops.com. It displays my film loop in a web page/ blog. It works when I put it in a standard HTML page, but not when I post it to my WordPress Blog.

    Anyone know why that might be happening?

    <script TYPE='text/javascript' LANGUAGE='JavaScript'>document.writeln('<iframe WIDTH=280 HEIGHT=72 src=\'http://looplets.filmloop.com/looplet/standard?id=gL-anMEUPTdvhQuuNlC7S/DUQZ8WPpKF\' SCROLLING=NO FRAMEBORDER=0 NAME=\'looplet_gL-anMEUPTdvhQuuNlC7S/DUQZ8WPpKF_iframe\'></iframe>');</script><noscript><img SRC='http://looplets.filmloop.com/looplet/mini?id=gL-anMEUPTdvhQuuNlC7S/DUQZ8WPpKF'/></noscript>

  2. McShelby
    Member
    Posted 8 years ago #

    Do you have a sample page? Your code isn't valid XHTML instead of your linked blog. So, this may be an issue. Were on your page do you want to include the javascript?

  3. McShelby
    Member
    Posted 8 years ago #

    Regardless if it's valid XHTML you'll have to escape the forwarding slash / with a backslash inside your javascript code making it look like /.

  4. McShelby
    Member
    Posted 8 years ago #

    Argh, crappy forum formatting skipped some of the slashes in my previous post :(

  5. motoed
    Member
    Posted 8 years ago #

    Sure I have a URL for it
    http://www.edhidden.com/filmloops/

  6. motoed
    Member
    Posted 8 years ago #

    sure... you can see it at http://www.edhidden.com (first post)

  7. McShelby
    Member
    Posted 8 years ago #

    Did you check the code on your site? The quotes of the src attribute on your script tag are converted to ’ by WordPress

  8. McShelby
    Member
    Posted 8 years ago #

    I mean it's converted to to #8217;

  9. motoed
    Member
    Posted 8 years ago #

    I looked, but i dont' see where it might be setting to change that code. Is it in the options panel or on the server itself?

  10. psabilla
    Member
    Posted 8 years ago #

    mine isn't working either. the filmloop renders on the page, but all the previous posts dissappear. ideas? below is the code:

    <iframe width=300 height=90 src="http://looplets.filmloop.com/standard/8i4IY9-Z5z7ogJmOfdKbLxfTgKhln4tF?width=296&height=68" scrolling=no frameborder=0 name="looplet_8i4IY9-Z5z7ogJmOfdKbLxfTgKhln4tF_iframe"></iframe>

  11. homunculus
    Member
    Posted 8 years ago #

    Save your FilmLoop as flash. There's a plugin that allows you to display a flash file that would probably make this work BUT it might invalidate your RSS feed.

Topic Closed

This topic has been closed to new replies.

About this Topic