Hi I have a problem with checking if Flash installed on the user's browser in Internet Explorer, Firefox and Chrome(mainly). When the loads the page, it first checks for the flash using client script and I have to pass that(if it's installed or not) to the page. I have the client -sciprt on User Control and my problem here is to pass the result to the code-behind code of the usercotnrol. Here is my client-script code on user control: <!-- var flashinstalled = 0; var FlashVersion = 0; MSDetect = "false"; if (navigator.plugins && navigator.plugins.length) { x = navigator.plugins["Shockwave Flash"]; if (x) { flashinstalled = 2; if (x.description) { y = x.description; FlashVersion = y.charAt(y.indexOf('.')-1); } } else flashinstalled = 1; if (navigator.plugins["Shockwave Flash 2.0"]) { flashinstalled = 2; FlashVersion = 2; } } else if (navigator.mimeTypes && navigator.mimeTypes.length) { x = navigator.mimeTypes['application/x-shockwave-flash']; if (x && x.enabledPlugin) flashinstalled = 2; else flashinstalled = 1; } else MSDetect = "true"; //alert(flashinstalled + " : " +FlashVersion + " : " + navigator.plugins.length); // --> on error resume next If MSDetect = "true" Then For i = 2 to 10 If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then Else flashinstalled = 2 FlashVersion = i End If Next End If If flashinstalled = 0 Then flashinstalled = 1 End If Can any one give me idea please! I am stuck here! Thanks in advance.
-- http://ashakthi.blogspot.com http://kids-articles.blogspot.com