Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

179 Posts in 40 Topics by 84 members

Migrating a Site to Silverstripe

SilverStripe Forums » Migrating a Site to Silverstripe » Problem with Javascript in Page.ss

What you need to know when migrating your existing site to SilverStripe.

Page: 1
Go to End
Author Topic: Problem with Javascript in Page.ss 910 Views
  • boqus
    avatar
    Community Member
    1 posts

    Problem with Javascript in Page.ss Link to this post

    Hello,

    i'am trying to migrate a page with one flv-video embeded into the startpage.
    For this reason i created an own startpage.ss and used swfobject.js.

    Example (in my startpage.ss):

    ...
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
    var so = new SWFObject('player.swf','mpl','470','320','9');
    so.addParam('flashvars','&file=test.flv&=/test/test.jpg&controlbar=none');
    so.write('player');
    </script>
    ...

    Even if SS tries to parse the code in my startpage.ss this error occours:
    This page contains the following errors:
    error on line 76 at column 36: EntityRef: expecting ';'
    Below is a rendering of the page up to the first error.

    The problem starts in:

    &file=test.flv&=/test/test.jpg&controlbar=none

    While SS is parsing my startpage.ss the &-chars result in a parsing problem.

    Could anyone help me?

  • Willr
    avatar
    Moderator
    2746 posts

    Re: Problem with Javascript in Page.ss Link to this post

    I think you need to change the & to &amp; to pass XML validation

    910 Views
Page: 1
Go to Top

Currently Online: Dramew, silk

Welcome to our latest member: holy noli

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.