Once the media plugin embeds the flash object, it is missing the ID attribute.
- $("#flashloader").media({
- width: 350,
- height: 210,
- autoplay: true,
- src: 'includes/ElementITMultiPowUpload1.7.swf',
- attrs: { id: 'FlashFileUpload' }, // object/embed attrs
- params: { bgColor: '#ffffff', Quality: 'High', AllowScriptAccess: 'Always', SeamlessTabbing: '1', wmode: 'transparent' }, // object params/embed attrs
- flashvars: { uploadUrl: '<?php echo htmlentities($_SERVER['PHP_SELF']); ?>',
- redirectUploadUrl: 'files.php',
- labelUploadVisible: 'No',
- uploadButtonVisible: 'No',
- backgroundColor: '#FFFFFF',
- listTextSelectedColor: '#000000',
- listBackgroundColor: '#FFFFFF',
- listSelectionColor: '#DFE7F2',
- listUploadedColor: '#DFE7F2',
- listRollOverColor: '#ffffcc',
- useExternalInterface: 'yes',
- filesListX: '2',
- filesListY: '30',
- progressBarX: '7',
- progressBarY: '155',
- labelInfoX: '7',
- labelInfoY: '160' },
- caption: false // supress caption text
- });
Here is the object it creates (missing the ID attribute)
- <object width="350" height="210" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data="https://localhost/ssp/includes/ElementITMultiPowUpload1.7.swf" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7" type="application/x-shockwave-flash">
Here is some additional HTML:
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
Since I specifying an ID, I'm not sure it is not making it as an attribute for the object element.
- attrs: { id: 'FlashFileUpload' }, // object/embed attrs
Any recommendations?