Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

html - IE 8 flash not displaying -


i'm using flash in few of websites displaying slideshow. code use in splendor-bg.com :

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="740" height="450" id="tech" align="middle">         <param name="allowscriptaccess" value="samedomain" />         <param name="movie" value="splendor-bg.swf?xml_path=slides.xml" />         <param name="quality" value="high" />         <embed src="splendor-bg.swf?xml_path=slides.xml" quality="high" width="720" height="430" name="tech" align="middle" allowscriptaccess="samedomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />     </object> 

i can see on computer in internet explorer fine (i must have installed needed, or set ie in way, guess).. not working on quite few other computers i've tested on - see: flash not working have idea on how fix this? either message of needs installed should shown user, or in code itself.. appreciated!

i'm not sure problem may in particular code.

however, suggest try swfobject. can download @ http://code.google.com/p/swfobject/

swfobject great way embed flash website , seems work in browsers me.

it's simple use, let's assume have div container id flashcontent:

<div id="flashcontent"> </div> 

and javascript do:

<script type="text/javascript">     var flashvars = {};     var params = {allowscriptaccess: "samedomain"};     var attributes = {};     swfobject.embedswf("splendor-bg.swf?xml_path=slides.xml", "flashcontent", "720", "430", "9.0.0", "expressinstall.swf", flashvars, params, attributes); </script> 

voila , flash object should embedded on flashcontent div container.

give try , see if works better. can read swfobject documentation @ http://code.google.com/p/swfobject/wiki/documentation


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -