| 
                
Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with. 
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | ntn104Posting Yak  Master
 
 
                                        175 Posts | 
                                            
                                            |  Posted - 2009-11-03 : 11:58:03 
 |  
                                            | I have collection.asp page that I created 3 buttons:1) Performance2) Activity3) ComparationWhen I click on each button, I want it pop up the .swf file. How would I make it work? For example, when I click on (1) Performance button, then I will see the dashboard (performance.swf)thanks, |  |  
                                    | sathiesh2005Yak Posting Veteran
 
 
                                    85 Posts | 
                                        
                                          |  Posted - 2009-12-09 : 05:01:36 
 |  
                                          | Hi,In your collection.asp page write a javascript function like this.function Popup(vOpt){ var winpopup; winpopup=window.open("Popup.asp?vOpt="+vOpt,"SGGI","width=950 height=680 menubar=0,toolbar=0,location=no,status=no,scrollbars=yes,left=0,top=0"); winpopup.focus();return;}when clicking the buttons call this function with parameters 1,2or 3.Then you write a page called Popup.asp. In that page include the following code. this is for inserting the swf file.<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="900" height="88"><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="type" value="application/x-shockwave-flash" /><% if request.Querystring("vOpt")=1 then %><param name="movie" value="performance.swf" /><embed src="performance.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" width="900" height="88"><% else if request.Querystring("vOpt")=2 then %>......<% end if %></embed></OBJECT>Regards,Sathieshkumar. R |  
                                          |  |  |  
                                |  |  |  |  |  |