Re: Javascript in VB class

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


Date: Wed, 16 Jun 2004 19:43:34 -0700

Yes I do have test function defined.

When I execute the code I get error on the page "Error: Object expected"

I can execute alert(), window.open(), etc. functions but not functions that
I define.

Thanks for your help.
Alex.

"John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
news:#aFrNmAVEHA.3332@tk2msftngp13.phx.gbl...
> "Alexander Kaplunov" <kaplunov@hotmail.com> wrote in message
> news:OzZURz$UEHA.2920@TK2MSFTNGP10.phx.gbl...
> > 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
>
> Could you please provide some detail? Exactly how does it "not work"?
>
> And did you define a function called "test"?
> --
> John Saunders
> johnwsaundersiii at hotmail
>
>
> > "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: Rights to execute jobs?
    ... users can get admin type jobs going. ... raise the alert, so it could be anyone on the server. ... is that a group needs to not be an admin but still be able to execute ... resource for job execution permissions. ...
    (microsoft.public.sqlserver.security)
  • Re: Rights to execute jobs?
    ... One way to let users in a DEV environment be able to start jobs is to ... raise the alert, so it could be anyone on the server. ... is that a group needs to not be an admin but still be able to execute ... resource for job execution permissions. ...
    (microsoft.public.sqlserver.security)
  • Re: Rights to execute jobs?
    ... Does anyone know if the rules surrounding stored procedure permissions apply ... Does this apply to a proc calling sp_start_job so that I ... raise the alert, so it could be anyone on the server. ... is that a group needs to not be an admin but still be able to execute ...
    (microsoft.public.sqlserver.security)
  • Re: how to force sequential execution
    ... am calling a function to retrieve data from an XML file, ... other functions to execute after that function is complete. ... there is an alert message (for testing purposes at this point, ... Therefore it returns before the request is ...
    (comp.lang.javascript)
  • Re: how to force sequential execution
    ... am calling a function to retrieve data from an XML file, ... other functions to execute after that function is complete. ... there is an alert message (for testing purposes at this point, ... So your alertcalls need to be placed in the callback instead. ...
    (comp.lang.javascript)