Re: Javascript in VB class

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alexander Kaplunov (kaplunov_at_hotmail.com)
Date: 06/16/04


Date: Wed, 16 Jun 2004 16:49:52 -0700

What if I wanted to call my of function test() ? How would I do that?

Response.Write("<script language = 'javascript'>test();</script>");

...dows not work

"Anand Sagar" <ba_sagar@yahoo.com> wrote in message
news:ePDNwP2UEHA.3664@TK2MSFTNGP12.phx.gbl...
> Eg. VB.Net code:
>
> If flag = true the
> response.write("<script language = 'javascript'>alert('the flag was
> succesful');</script>")
> else
> response.write("<script language = 'javascript'>alert('the flag was
> Unsuccesful');</script>")
> end if
>
>
> Sagar.
>
> "Brian Henry" <brianiupmsdn@newsgroups.nospam> wrote in message
> news:%23W%23RqP7TEHA.3988@TK2MSFTNGP10.phx.gbl...
> > Is there a way to launch a javascript command from within VB code? For
> > instance, to issue a window.open(some url) if a certain condition is
met.
> I
> > know you can add the javacript to a control event at runtime, but i need
> to
> > just launch it, not wait for the user to click something.
> >
> > Thanks
> >
> >
>
>



Relevant Pages

  • Re: Javascript in VB class
    ... "Alexander Kaplunov" wrote in message ... > What if I wanted to call my of function test()? ... > ...dows not work ... >>> Is there a way to launch a javascript command from within VB code? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Terminate A Long Running Method
    ... I need a way to signal the DoWork method that the ... So far the only solution I can come up with is to launch ... >> the method on its own seperate thread. ... If it needs to stop it can set a flag on the object ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ShellExecuteEx and Information about remote application
    ... I would use CreateProcess to launch the application ... Also when using CreateProcess you need to find out what application should be launched. ... I've experiences troubles when reading a value containing spaces, ... I didn't had troubles with the flag itself, but with the whole routine to display a file correctly using the default application. ...
    (microsoft.public.vb.winapi)
  • Re: gain/loss re: documentation by USCG ?
    ... can, of course, then launch a legal battle to have your rightful ... I've never seen them flag their big motoryachts in the US or Canada at the ...
    (rec.boats.cruising)
  • Re: Javascript in VB class
    ... "Anand Sagar" wrote in message ... > If flag = true the ... This VB.NET code will have been executed in response to a user action, ... >> Is there a way to launch a javascript command from within VB code? ...
    (microsoft.public.dotnet.framework.aspnet)