Contrib. with Validation

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Contrib. with Validation

    I want to keep my page valid through World Wide Web Consortium's validation and
    I have a flash header on my website. When a user edits and publishes a webpage,
    Adobe Contribute automatically adds a tag such as:

    C_FL_RunContent(
    'type','application/x-shockwave-flash','data','ucp.swf','width','906','height','
    119','movie','ucp' ); //end AC code


    Is there a way to prevent this from happening?

    vincenzoj84 Guest

  2. Similar Questions and Discussions

    1. G4/400 enough for Contrib 3.1?
      thanks in advance for any info. Fred tmccannon@nyc.rr.com
    2. CFFORM Validation trumping Custom Form Validation
      Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two...
    3. xpath_list() question for contrib/xml2
      Short summary: I want something like xpath_list() that returns an array (instead of a delimited, concatenated string) when multiple nodes exist...
    4. postgresql-contrib risks?
      Hello, My hosting provider is unwilling to install postgresql-contrib package, fearing that it will negatively impact other users, brake their...
    5. validation summary doesnt display when there's client-side validation
      I have a custom validator that validates a numeric field, txtField, that allows for thousand separators. I also placed a validation summary so...
  3. #2

    Default Re: Contrib. with Validation

    Contribute adds this javascript code to make the flash content directly
    available to users without them having to click on it first or give permission
    to display the flash.
    This code is not invalid as far as I know. The only thing I see is that there
    is a warning in Firefox that a function DetectFlashVer does not allways return
    a value.

    The code looks something like this:

    <script type="text/javascript">
    AC_FL_RunContent(
    'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    version=9,0,28,0','width','1281','height','1003',' title','er','movie','Contribut
    e-test_demo','quality','high' ); //end AC code
    </script><noscript><object
    classid="clsid:D27ADF6E-GH6D-11cf-96B8-448653110000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=9,0,28,0" width="1281" height="1003" title="flashheader">
    <param name="movie" value="header.swf" />
    <param name="quality" value="high" />
    </object></noscript>

    In the head section of the page you see this code calling the script:
    <script src="AC_RunActiveContent.js" type="text/javascript"></script>

    I have not found any option to disable this.

    ThinkInk Guest

  4. #3

    Default Re: Contrib. with Validation

    [q]Originally posted by: ThinkInk
    Contribute adds this javascript code to make the flash content directly
    available to users without them having to click on it first or give permission
    to display the flash.
    This code is not invalid as far as I know. The only thing I see is that there
    is a warning in Firefox that a function DetectFlashVer does not allways return
    a value.

    The code looks something like this:

    <script type="text/javascript">
    AC_FL_RunContent(
    'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    version=9,0,28,0','width','1281','height','1003',' title','flashheader','movie','
    header','quality','high' ); //end AC code
    </script><noscript><object
    classid="clsid:D27ADF6E-GH6D-11cf-96B8-448653110000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=9,0,28,0" width="1281" height="1003" title="flashheader">
    <param name="movie" value="header.swf" />
    <param name="quality" value="high" />
    </object></noscript>

    In the head section of the page you see this code calling the script:
    <script src="AC_RunActiveContent.js" type="text/javascript"></script>

    I have not found any option to disable this.[/q]

    Hm, you can view my website at: [url]http://www.alucp.org/events.html[/url] -- if you
    navigate toward the bottom and click the 'xhtml' link it will take you to thhe
    validation. The error I am getting is this:

    Line 48, Column 24: document type does not allow element "object" here;
    missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "address",
    "fieldset", "ins", "del" start-tag.

    width="906" height="119">

    ?

    The mentioned element is not allowed to appear in the context in which you've
    placed it; the other mentioned elements are the only ones that are both allowed
    there and can contain the element mentioned. This might mean that you need a
    containing element, or possibly that you've forgotten to close a previous
    element.

    One possible cause for this message is that you have attempted to put a
    block-level element (such as "<p>" or "<table>") inside an inline element (such
    as "<a>", "<span>", or "<font>").


    My code is valid before I publish it in contribute, any ideas?

    vincenzoj84 Guest

  5. #4

    Default Re: Contrib. with Validation

    I clicked your xhtml link and go this result:
    This Page Is Valid XHTML 1.0 Strict!

    I checked it with Firefox using the Web Developer toolbar and got this result:
    This Page Is Valid XHTML 1.0 Strict!

    I clicked your CSS link and got this result:
    Congratulations, no errors.

    Checked with Dreamweaver and got this result:
    No errors or warnings found.

    Where did you check this page?

    ThinkInk Guest

  6. #5

    Default Re: Contrib. with Validation

    Sorry, I had to make an edit to the site and uploaded it via dreamweaver.

    If you click the XHTML link now you should see the error. I re-published the page via contribute.


    vincenzoj84 Guest

  7. #6

    Default Re: Contrib. with Validation

    Found this on xhtml, object and no-script tag:
    [url]http://blogs.mastronardi.be/Sandro/2007/01/10/MakeTheNoscriptTagXhtmlValid.aspx[/url]
    Contribute does not seem to respect the XHTML strict declaration and places
    the javascript code around you object tag anyway.
    I think you could try placing the flash movie in an include (SSI) file, so
    Contribute won't edit the code on publish.

    ThinkInk Guest

  8. #7

    Default Re: Contrib. with Validation

    Yes, the SSI did work. Thanks!
    vincenzoj84 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139