/    Sign up×
Community /Pin to ProfileBookmark

IE conditional comment loading/display order??

Hi there.

Is there a way to influence the order in which a browser reads my .html page?

I would like to have IE9 load a swf AFTER the IE conditional comment is takes place…. as I have it currently coded, it will sometimes load my SWF BEFORE the conditional comment takes place.
Thanks for looking !


__________________________________________________________________
[QUOTE]

Here is my Conditional comment:
<!–[if IE 9]>
<meta http-equiv=”refresh” content=”0;url=SeansWebsite_2012_IE9.html”>
<![endif]–>

[/QUOTE]


___________________________________________________________

Here is my Entire Page (for context):

&#65279;

[QUOTE]

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml” lang=”en” xml:lang=”en”>
<head>

<!–[if IE 9]>
<meta http-equiv=”refresh” content=”0;url=SeansWebsite_2012_IE9.html”>
<![endif]–>

</script>
<title>SeansWebsite_2012</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
</head>
<body>
<script type=”text/javascript” src=”swfobject.js”></script>
<script type=”text/javascript”>
<!– Adobe recommends that developers use SWFObject2 for Flash Player detection. –>
<!– For more information see the SWFObject page at Google code ([url]http://code.google.com/p/swfobject/[/url]). –>
<!– Information is also available on the Adobe Developer Connection Under “Detecting Flash Player versions and embedding SWF files with SWFObject 2” –>
<!– Set to minimum required Flash Player version or 0 for no version detection –>
var swfVersionStr = “10.1.52”;
<!– xiSwfUrlStr can be used to define an express installer SWF. –>
var xiSwfUrlStr = “”;
var flashvars = {};
var params = {};
params.quality = “high”;
params.bgcolor = “#000000”;
params.play = “true”;
params.loop = “true”;
params.wmode = “window”;
params.scale = “showall”;
params.menu = “true”;
params.devicefont = “false”;
params.salign = “t”;
params.allowscriptaccess = “sameDomain”;
var attributes = {};
attributes.id = “SeansWebsite_2012”;
attributes.name = “SeansWebsite_2012”;
attributes.align = “middle”;
swfobject.createCSS(“html”, “height:100&#37;; background-color: #000000;”);
swfobject.createCSS(“body”, “margin:0; padding:0; overflow:hidden; height:100%;”);
swfobject.embedSWF(
“SeansWebsite_2012.swf”, “flashContent”,
“100%”, “100%”,
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
</script>
<!– SWFObject’s dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. –>
<div id=”flashContent”>
<a href=”http://www.adobe.com/go/getflash“>
<img src=”http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=”Get Adobe Flash player” />
</a>
<p>This page requires Flash Player version 10.1.52 or higher.</p>
</div>
</body>
</html>
_______________________

[/QUOTE]___

___________________________________________________________________

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscFeb 09.2012 — I'm not sure if using JavaScript is faster than the meta redirect or not....

<i>
</i>&lt;!--[if IE 9]&gt;
&lt;script type="text/javascript"&gt;
window.location = redirected_url;
&lt;/script&gt;
&lt;![endif]--&gt;



Important question here though, why are you redirecting IE9 users?
Copy linkTweet thisAlerts:
@tinytabooauthorFeb 09.2012 — Ill give this a try..

I am re-directing (and Im sure that this is hacky .. ) because for some reason that Is beyond my comprehension.. My SWF is appearing only about 50 px high and long all across the top of the browser window (in IE9 only). It loads perfectly in all other browsers.

It is due to my SWF "Publishing Settings>Scaling>Default"

so the swf will resize when the browser window is altered manually.

For some reason this is BREAKING with IE9 and the browser is Displaying the ENTIRE length of my SWF (Not just the canvas area that I would like visible, but the entire thing . even the hidden "offscreen" area on the left and right"

Here is the Code that does NOT function in EI9:

[CODE]&#65279;<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SeansWebsite_2012</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
<!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. -->
<!-- For more information see the SWFObject page at Google code (http://code.google.com/p/swfobject/). -->
<!-- Information is also available on the Adobe Developer Connection Under "Detecting Flash Player versions and embedding SWF files with SWFObject 2" -->
<!-- Set to minimum required Flash Player version or 0 for no version detection -->
var swfVersionStr = "10.1.52";
<!-- xiSwfUrlStr can be used to define an express installer SWF. -->
var xiSwfUrlStr = "";
var flashvars = {};
var params = {};
params.quality = "high";
params.bgcolor = "#000000";
params.play = "true";
params.loop = "true";
params.wmode = "window";
params.scale = "showall";
params.menu = "true";
params.devicefont = "false";
params.salign = "t";
params.allowscriptaccess = "sameDomain";
var attributes = {};
attributes.id = "SeansWebsite_2012";
attributes.name = "SeansWebsite_2012";
attributes.align = "middle";
swfobject.createCSS("html", "height:100&#37;; background-color: #000000;");
swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
swfobject.embedSWF(
"SeansWebsite_2012.swf", "flashContent",
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
</script>
</head>
<body>
<!-- SWFObject's dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. -->
<div id="flashContent">
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<p>This page requires Flash Player version 10.1.52 or higher.</p>
</div>
</body>
</html>
[/CODE]
Copy linkTweet thisAlerts:
@tinytabooauthorFeb 09.2012 — I meant It is due to my SWF "Publishing Settings>Scaling>Default"

"Default" is params.scale = "showall";

thats what is breaking things in EI9 I think...
×

Success!

Help @tinytaboo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...