Omu
Omu

Reputation: 71206

flex index.html template

i see that that template has some code to see if the client has the required version, and it does stuff if it has or it doesn't and there is a <object> tag inside <noscript>

question: if the stuff is gonna work with the <object> tag anyway why would you need all that stuff above with the control of version if it has or not ?

Upvotes: 0

Views: 433

Answers (1)

user120587
user120587

Reputation:

What is inside the noscript tag is only run in the case that the user has turned off javascript in their browser. This is required for the Flex page to still work in that case.

The other code is inside of a script tag, and handles the creation of the flash object smoother than the brute force method in the object tag. It would prefer to use this method, but in the case that scripting is disabled, it will use the object method instead in an effort to still give the user what they want on the page.

That is why it seems that it appears twice in the page. For any given browser only one section should actually run.

Upvotes: 2

Related Questions