Re: Javascript in VB class
From: Alexander Kaplunov (kaplunov_at_hotmail.com)
Date: 06/17/04
- Next message: Roland Hall: "Re: Penetration of ASP.NET - Developers continue to use VB6 & ASP"
- Previous message: Danny: "FormsAuthentication doesn't redirect properly after timeout"
- In reply to: John Saunders: "Re: Javascript in VB class"
- Next in thread: John Saunders: "Re: Javascript in VB class"
- Reply: John Saunders: "Re: Javascript in VB class"
- Messages sorted by: [ date ] [ thread ]
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
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Roland Hall: "Re: Penetration of ASP.NET - Developers continue to use VB6 & ASP"
- Previous message: Danny: "FormsAuthentication doesn't redirect properly after timeout"
- In reply to: John Saunders: "Re: Javascript in VB class"
- Next in thread: John Saunders: "Re: Javascript in VB class"
- Reply: John Saunders: "Re: Javascript in VB class"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|