Issue 167: Embeded Flash called through Ajax and nyromodal causes older versions of IE not to use SWF Object. Permmision window pops up. I have FIX
Status:  Invalid
Owner: ----
Closed:  Feb 2009
Reported by syncs...@gmail.com, Feb 14, 2009
What steps will reproduce the problem?
When calling an external html page through nyromodal, or many other modals
for that matter, the SWF object is not instantiated. This causes older
version of IE to ask for permission to show page.  That is really annoying
when you are trying to use the modal to quickly go from one page to another.

Fix:
Instead of using swf object to run your flash files that are being pulled
through the modal use the jquery.flash.js plugin and run all your flash
though it. BUT - make sure that you program your page to only run the
jquery.flash upon document load.

Put this in the head of the main document that calls other documents with AJAX:

<script type="text/javascript" src="path to jquery/jquery.js"></script>
<script type="text/javascript" src="path to
jquery/flash/jquery.flash.js"></script>

In the HTML page that is being called with AJAX put the following...

<script type=\"text/javascript\">
			$(document).ready(function(){
				$('#flashname').flash({ 
					src: 'path to flash/flashname.swf',
					width: 250,
					height: 250,
					flashvars: { image: '".$image."', imageid: '".$cache_artnumber."' }
				},
				{
					version: 8
				});
			});
		</script>


And then instead of the SWF object code, use the following to display your
flash file.  Put this script in your body where the flash file should show up.

<!-- FLASH FILE START HERE -->
<div id=\"flashname\">Large Image Viewer</div>
<!-- FLASH FILE END HERE -->


That's it, you will not be able to use nyromodal in older versions of IE
without the annoying flash permission issue.


Feb 15, 2009
Project Member #1 nyro...@gmail.com
Thanks for your tip!
Status: Invalid
Feb 16, 2009
#2 syncs...@gmail.com
No problem, hope it helps some people. Seems to be more of an AJAX issue than
anything else.  It's all in how people set these up.