welcome your user in a flash document

Discussion in 'ASP.NET / ASP.NET Core' started by Swood, Dec 26, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi ,

    I struggled for a while to figure out how to run javascript in the client browser from server code

    Ifound out that this works well (this example changes a variable in a running flash document),
    however it seems to work for other javascript as well.




    Sub welcometheuserinflash(ByVal wm As String)


    wm = "Welcome " & wm


    Dim popupScript As String = "<script language='javascript'>" &amp; _


    "window.document.newtext.SetVariable('mytext', '" &amp; wm &amp; "')" &amp; _


    "</script>"


    Page.RegisterStartupScript("PopupScript", popupScript)


    End Sub





    where 'mytext' is the variable name assigned to some dynamic text in the flash document


    [​IMG]


    and 'newtext' is the document name embedded in your app


    Have fun with this , I did !!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page