Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
vincenzoj84 #1
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
-
G4/400 enough for Contrib 3.1?
thanks in advance for any info. Fred tmccannon@nyc.rr.com -
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... -
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... -
postgresql-contrib risks?
Hello, My hosting provider is unwilling to install postgresql-contrib package, fearing that it will negatively impact other users, brake their... -
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... -
ThinkInk #2
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
-
vincenzoj84 #3
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
-
ThinkInk #4
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
-
vincenzoj84 #5
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
-
ThinkInk #6
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
-



Reply With Quote

