Valid XHTML & Flash object
- Started
- Last post
- 7 Responses
- ********
A site of mine is validating strict XHTML 1.0 transitional except for one part.
I am using the Unobtrusive Flash Objects (UFO) v3.22 and have multiple flashvars loading up via this line:
var FO = { movie:"movie.swf", width:"780", height:"400", majorversion:"7", flashvars:"xmlfile=xmlfile.asp?p... am1=&pagehead=", build:"0" };
The problem is with the '&' - if I encode it as '&' the page then validates correctly however the flashvars parameter does not get parsed correctly into Flash.
Any help appreciated.
- heavyt0
1 - is that ampersand really supposed to say ' ampersand-a-m-p-; ?
2 - try wraapping the script with the CDATA tags
- joyride0
I think the ? is messing you up.
You need to encode the characters:
http://kb.adobe.com/selfservice/…
- ********0
Tried CDATA but didn't seem to work. Not sure why.
The '?' isn't stuffing me up - it's the &a m p; - hard to encode as it's the URL string rather than the actual data value.
- joyride0
flashvars uses the & to declare seperate variables.
so it's creating a variable named xmlfile, param1 and pagehead
your & should be % 26 with no space
- ********0
I understand that and that is how I want it to work...3 separate variables. It all works fine but it won't validate strict XHTML.
To get it to validate, I changed the '&' to '&' but then the parameter does not get passed to Flash properly.
- monNom0
well, would you rather it works? or that it passes some arbitrary test?
- ********0
I want it to work, but you know how it is...nice to be able to say it is valid XHTML 1.0 Transitional