Hi,
I have the following vbscript in the <head> of asp page.

<SCRIPT LANGUAGE="VBScript">
sub btn_LogOut_OnClick()
dim asnwer
answer=msgbox("Are you sure you want to exit?. If your session is not
locked but sure to save your changes first before exiting.",vbYesNo,"Notice")
if answer=vbyes then
Document.Report.Submit
end if
end sub
</SCRIPT>

I am calling this method from a button click of the same page and the code
for that is:
<input type="button" value="Log Out (Will not Save)" name="btn_LogOut" >
I have no idea why I am gettin the above error. Any help is appreciated.
Thanks.

Re: Object does not support this property or method "Document.Report" by Ray

Ray
Wed Jan 05 14:08:13 CST 2005

Is your form named Report?

<form name="Report" ...>

You really should not be using VBScript in a browser, btw.

--

Ray at work
Microsoft ASP/ASP.NET MVP


"Jack" <Jack@discussions.microsoft.com> wrote in message
news:764C77E6-4AA2-4DCA-9F20-7EE8B31912C6@microsoft.com...
> Hi,
> I have the following vbscript in the <head> of asp page.
>
> <SCRIPT LANGUAGE="VBScript">
> sub btn_LogOut_OnClick()
> dim asnwer
> answer=msgbox("Are you sure you want to exit?. If your session is
not
> locked but sure to save your changes first before
exiting.",vbYesNo,"Notice")
> if answer=vbyes then
> Document.Report.Submit
> end if
> end sub
> </SCRIPT>
>
> I am calling this method from a button click of the same page and
the code
> for that is:
> <input type="button" value="Log Out (Will not Save)"
name="btn_LogOut" >
> I have no idea why I am gettin the above error. Any help is
appreciated.
> Thanks.



Re: Object does not support this property or method "Document.Repo by Jack

Jack
Wed Jan 05 14:27:09 CST 2005

Ray, I screwed up here. My form name is not really report. I am not too
comfortable with JavaScript. Hence I resort to vbscript, which is script
language of my comfort. Regards.

"Ray Costanzo [MVP]" wrote:

> Is your form named Report?
>
> <form name="Report" ...>
>
> You really should not be using VBScript in a browser, btw.
>
> --
>
> Ray at work
> Microsoft ASP/ASP.NET MVP
>
>
> "Jack" <Jack@discussions.microsoft.com> wrote in message
> news:764C77E6-4AA2-4DCA-9F20-7EE8B31912C6@microsoft.com...
> > Hi,
> > I have the following vbscript in the <head> of asp page.
> >
> > <SCRIPT LANGUAGE="VBScript">
> > sub btn_LogOut_OnClick()
> > dim asnwer
> > answer=msgbox("Are you sure you want to exit?. If your session is
> not
> > locked but sure to save your changes first before
> exiting.",vbYesNo,"Notice")
> > if answer=vbyes then
> > Document.Report.Submit
> > end if
> > end sub
> > </SCRIPT>
> >
> > I am calling this method from a button click of the same page and
> the code
> > for that is:
> > <input type="button" value="Log Out (Will not Save)"
> name="btn_LogOut" >
> > I have no idea why I am gettin the above error. Any help is
> appreciated.
> > Thanks.
>
>
>

Re: Object does not support this property or method "Document.Repo by Ray

Ray
Wed Jan 05 14:32:46 CST 2005

I also did the same thing, started using VBScript at first, because
that was what I knew. But I heard the same advice enough times and
forced myself to use Javascript eventually. And so the wheel keeps
on turning.

I'm still more comfortably with vbscript, but I won't use it in
browser-code anymore. Sure, I know that everyone who loads my page
will be doing so in IE, since it's an intranet app. But, if for no
other reason, an intranet can become an extranet any day. So, it's
not really a good idea to have hundreds or thousands of pages that
would all have to be converted to javascript on that day...

--

Ray at work
Microsoft ASP/ASP.NET MVP


"Jack" <Jack@discussions.microsoft.com> wrote in message
news:82F3A69A-A982-4D88-8746-D1FDE4FE2F2A@microsoft.com...
> Ray, I screwed up here. My form name is not really report. I am not
too
> comfortable with JavaScript. Hence I resort to vbscript, which is
script
> language of my comfort. Regards.
>
> "Ray Costanzo [MVP]" wrote:
>
> > Is your form named Report?
> >
> > <form name="Report" ...>
> >
> > You really should not be using VBScript in a browser, btw.
> >
> > --
> >
> > Ray at work
> > Microsoft ASP/ASP.NET MVP
> >
> >
> > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > news:764C77E6-4AA2-4DCA-9F20-7EE8B31912C6@microsoft.com...
> > > Hi,
> > > I have the following vbscript in the <head> of asp page.
> > >
> > > <SCRIPT LANGUAGE="VBScript">
> > > sub btn_LogOut_OnClick()
> > > dim asnwer
> > > answer=msgbox("Are you sure you want to exit?. If your session
is
> > not
> > > locked but sure to save your changes first before
> > exiting.",vbYesNo,"Notice")
> > > if answer=vbyes then
> > > Document.Report.Submit
> > > end if
> > > end sub
> > > </SCRIPT>
> > >
> > > I am calling this method from a button click of the same page
and
> > the code
> > > for that is:
> > > <input type="button" value="Log Out (Will not Save)"
> > name="btn_LogOut" >
> > > I have no idea why I am gettin the above error. Any help is
> > appreciated.
> > > Thanks.
> >
> >
> >



Re: Object does not support this property or method "Document.Repo by Jack

Jack
Wed Jan 05 14:51:04 CST 2005

Thanks Ray for your generous advise. I appreciate it. Do you recommend any
book on Javescript that would be the start. And you are absolutely right.
Intranet application can eventually be 'opened up' to internet and then
things may not look good. Regards.

"Ray Costanzo [MVP]" wrote:

> I also did the same thing, started using VBScript at first, because
> that was what I knew. But I heard the same advice enough times and
> forced myself to use Javascript eventually. And so the wheel keeps
> on turning.
>
> I'm still more comfortably with vbscript, but I won't use it in
> browser-code anymore. Sure, I know that everyone who loads my page
> will be doing so in IE, since it's an intranet app. But, if for no
> other reason, an intranet can become an extranet any day. So, it's
> not really a good idea to have hundreds or thousands of pages that
> would all have to be converted to javascript on that day...
>
> --
>
> Ray at work
> Microsoft ASP/ASP.NET MVP
>
>
> "Jack" <Jack@discussions.microsoft.com> wrote in message
> news:82F3A69A-A982-4D88-8746-D1FDE4FE2F2A@microsoft.com...
> > Ray, I screwed up here. My form name is not really report. I am not
> too
> > comfortable with JavaScript. Hence I resort to vbscript, which is
> script
> > language of my comfort. Regards.
> >
> > "Ray Costanzo [MVP]" wrote:
> >
> > > Is your form named Report?
> > >
> > > <form name="Report" ...>
> > >
> > > You really should not be using VBScript in a browser, btw.
> > >
> > > --
> > >
> > > Ray at work
> > > Microsoft ASP/ASP.NET MVP
> > >
> > >
> > > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > > news:764C77E6-4AA2-4DCA-9F20-7EE8B31912C6@microsoft.com...
> > > > Hi,
> > > > I have the following vbscript in the <head> of asp page.
> > > >
> > > > <SCRIPT LANGUAGE="VBScript">
> > > > sub btn_LogOut_OnClick()
> > > > dim asnwer
> > > > answer=msgbox("Are you sure you want to exit?. If your session
> is
> > > not
> > > > locked but sure to save your changes first before
> > > exiting.",vbYesNo,"Notice")
> > > > if answer=vbyes then
> > > > Document.Report.Submit
> > > > end if
> > > > end sub
> > > > </SCRIPT>
> > > >
> > > > I am calling this method from a button click of the same page
> and
> > > the code
> > > > for that is:
> > > > <input type="button" value="Log Out (Will not Save)"
> > > name="btn_LogOut" >
> > > > I have no idea why I am gettin the above error. Any help is
> > > appreciated.
> > > > Thanks.
> > >
> > >
> > >
>
>
>

Re: Object does not support this property or method "Document.Repo by Ray

Ray
Wed Jan 05 15:12:16 CST 2005

I've never actually read any javascript books. Fortunately,
Javascript is used all over the place, so finding samples is usually
pretty easy. But, of course, that assumes that you know what words
to search for. In this particular thing, would you have know to
search for "confirm" as the javascript function? I wouldn't have
before I knew about it. But, that's where the newsgroups come in
handy. :] Instead of searching existing web pages for answers, you
get to search other people's brains instead.

There is a javascript (jscript, actually) group on the MS server:
microsoft.public.scripting.jscript. You're pretty likely to find
answers there.

--

Ray at work
Microsoft ASP/ASP.NET MVP


"Jack" <Jack@discussions.microsoft.com> wrote in message
news:F9A4E617-F74A-4AA4-A221-5CA20C1FC1D2@microsoft.com...
> Thanks Ray for your generous advise. I appreciate it. Do you
recommend any
> book on Javescript that would be the start. And you are absolutely
right.
> Intranet application can eventually be 'opened up' to internet and
then
> things may not look good. Regards.
>
> "Ray Costanzo [MVP]" wrote:
>
> > I also did the same thing, started using VBScript at first,
because
> > that was what I knew. But I heard the same advice enough times
and
> > forced myself to use Javascript eventually. And so the wheel
keeps
> > on turning.
> >
> > I'm still more comfortably with vbscript, but I won't use it in
> > browser-code anymore. Sure, I know that everyone who loads my
page
> > will be doing so in IE, since it's an intranet app. But, if for
no
> > other reason, an intranet can become an extranet any day. So,
it's
> > not really a good idea to have hundreds or thousands of pages
that
> > would all have to be converted to javascript on that day...
> >
> > --
> >
> > Ray at work
> > Microsoft ASP/ASP.NET MVP
> >
> >
> > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > news:82F3A69A-A982-4D88-8746-D1FDE4FE2F2A@microsoft.com...
> > > Ray, I screwed up here. My form name is not really report. I am
not
> > too
> > > comfortable with JavaScript. Hence I resort to vbscript, which
is
> > script
> > > language of my comfort. Regards.
> > >
> > > "Ray Costanzo [MVP]" wrote:
> > >
> > > > Is your form named Report?
> > > >
> > > > <form name="Report" ...>
> > > >
> > > > You really should not be using VBScript in a browser, btw.
> > > >
> > > > --
> > > >
> > > > Ray at work
> > > > Microsoft ASP/ASP.NET MVP
> > > >
> > > >
> > > > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > > > news:764C77E6-4AA2-4DCA-9F20-7EE8B31912C6@microsoft.com...
> > > > > Hi,
> > > > > I have the following vbscript in the <head> of asp page.
> > > > >
> > > > > <SCRIPT LANGUAGE="VBScript">
> > > > > sub btn_LogOut_OnClick()
> > > > > dim asnwer
> > > > > answer=msgbox("Are you sure you want to exit?. If your
session
> > is
> > > > not
> > > > > locked but sure to save your changes first before
> > > > exiting.",vbYesNo,"Notice")
> > > > > if answer=vbyes then
> > > > > Document.Report.Submit
> > > > > end if
> > > > > end sub
> > > > > </SCRIPT>
> > > > >
> > > > > I am calling this method from a button click of the same
page
> > and
> > > > the code
> > > > > for that is:
> > > > > <input type="button" value="Log Out (Will not Save)"
> > > > name="btn_LogOut" >
> > > > > I have no idea why I am gettin the above error. Any help is
> > > > appreciated.
> > > > > Thanks.
> > > >
> > > >
> > > >
> >
> >
> >



Re: Object does not support this property or method "Document.Repo by Jack

Jack
Wed Jan 05 15:51:09 CST 2005

Thanks again. Regards.

"Ray Costanzo [MVP]" wrote:

> I've never actually read any javascript books. Fortunately,
> Javascript is used all over the place, so finding samples is usually
> pretty easy. But, of course, that assumes that you know what words
> to search for. In this particular thing, would you have know to
> search for "confirm" as the javascript function? I wouldn't have
> before I knew about it. But, that's where the newsgroups come in
> handy. :] Instead of searching existing web pages for answers, you
> get to search other people's brains instead.
>
> There is a javascript (jscript, actually) group on the MS server:
> microsoft.public.scripting.jscript. You're pretty likely to find
> answers there.
>
> --
>
> Ray at work
> Microsoft ASP/ASP.NET MVP
>
>
> "Jack" <Jack@discussions.microsoft.com> wrote in message
> news:F9A4E617-F74A-4AA4-A221-5CA20C1FC1D2@microsoft.com...
> > Thanks Ray for your generous advise. I appreciate it. Do you
> recommend any
> > book on Javescript that would be the start. And you are absolutely
> right.
> > Intranet application can eventually be 'opened up' to internet and
> then
> > things may not look good. Regards.
> >
> > "Ray Costanzo [MVP]" wrote:
> >
> > > I also did the same thing, started using VBScript at first,
> because
> > > that was what I knew. But I heard the same advice enough times
> and
> > > forced myself to use Javascript eventually. And so the wheel
> keeps
> > > on turning.
> > >
> > > I'm still more comfortably with vbscript, but I won't use it in
> > > browser-code anymore. Sure, I know that everyone who loads my
> page
> > > will be doing so in IE, since it's an intranet app. But, if for
> no
> > > other reason, an intranet can become an extranet any day. So,
> it's
> > > not really a good idea to have hundreds or thousands of pages
> that
> > > would all have to be converted to javascript on that day...
> > >
> > > --
> > >
> > > Ray at work
> > > Microsoft ASP/ASP.NET MVP
> > >
> > >
> > > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > > news:82F3A69A-A982-4D88-8746-D1FDE4FE2F2A@microsoft.com...
> > > > Ray, I screwed up here. My form name is not really report. I am
> not
> > > too
> > > > comfortable with JavaScript. Hence I resort to vbscript, which
> is
> > > script
> > > > language of my comfort. Regards.
> > > >
> > > > "Ray Costanzo [MVP]" wrote:
> > > >
> > > > > Is your form named Report?
> > > > >
> > > > > <form name="Report" ...>
> > > > >
> > > > > You really should not be using VBScript in a browser, btw.
> > > > >
> > > > > --
> > > > >
> > > > > Ray at work
> > > > > Microsoft ASP/ASP.NET MVP
> > > > >
> > > > >
> > > > > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > > > > news:764C77E6-4AA2-4DCA-9F20-7EE8B31912C6@microsoft.com...
> > > > > > Hi,
> > > > > > I have the following vbscript in the <head> of asp page.
> > > > > >
> > > > > > <SCRIPT LANGUAGE="VBScript">
> > > > > > sub btn_LogOut_OnClick()
> > > > > > dim asnwer
> > > > > > answer=msgbox("Are you sure you want to exit?. If your
> session
> > > is
> > > > > not
> > > > > > locked but sure to save your changes first before
> > > > > exiting.",vbYesNo,"Notice")
> > > > > > if answer=vbyes then
> > > > > > Document.Report.Submit
> > > > > > end if
> > > > > > end sub
> > > > > > </SCRIPT>
> > > > > >
> > > > > > I am calling this method from a button click of the same
> page
> > > and
> > > > > the code
> > > > > > for that is:
> > > > > > <input type="button" value="Log Out (Will not Save)"
> > > > > name="btn_LogOut" >
> > > > > > I have no idea why I am gettin the above error. Any help is
> > > > > appreciated.
> > > > > > Thanks.
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>

Re: Object does not support this property or method "Document.Repo by Dr

Dr
Thu Jan 06 10:07:04 CST 2005

JRS: In article <elq8#s28EHA.1392@tk2msftngp13.phx.gbl>, dated Wed, 5
Jan 2005 16:12:16, seen in news:microsoft.public.scripting.vbscript, Ray
Costanzo [MVP] <my@first.name> posted :

>I've never actually read any javascript books. Fortunately,
>Javascript is used all over the place, so finding samples is usually
>pretty easy.

One does, however, need the experience to tell which 99% of what can be
found is rubbish.

That's particularly so if one wishes to support browsers other than that
which, when the sample was written, was most common; or if one wishes to
support international standards of notation.

The newsgroup and FAQ below, and its notes, should prove helpful ; it
believes that there are at most 1.1 trustworthy books on the subject.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.