Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Calling a JavaScript Sub-Routine

Reply
 
Old 01-21-2009   #1 (permalink)
Leona Leal Educator


 
 

Calling a JavaScript Sub-Routine

Hi Guys;

I have had some pages working for years. All of a sudden on some sites the
data is displayed and on some others it is not?

I am trying to find the problem!

I Have a little JavaScript sub-routine I want to call to find out what is
wrong.

<Script Language="JavaScript">
function DisplayDebug(){
var ThisTest = CodeCnt;
alert(ThisTest);
}

</Script>

DisplayDebug()
CodeCnt = CodeCnt + 1

I try to do everything in asp because I have very little JScript experience

Sorry, the school district refuses to send me to school

Thanks in Advance

Granny Leona

My System SpecsSystem Spec
Old 01-21-2009   #2 (permalink)
Evertjan.


 
 

Re: Calling a JavaScript Sub-Routine

=?Utf-8?B?TGVvbmEgTGVhbCBFZHVjYXRvcg==?= wrote on 21 jan 2009 in
microsoft.public.scripting.vbscript:
Quote:

> Hi Guys;
>
> I have had some pages working for years. All of a sudden on some
> sites the data is displayed and on some others it is not?
>
> I am trying to find the problem!
>
> I Have a little JavaScript sub-routine I want to call to find out what
> is wrong.
You are in the wrong NG,because
why would this NG be called microsoft.public.scripting.vbscript?
Quote:

> <Script Language="JavaScript">
Perferably:

<script type='text/javascript'>
Quote:

> function DisplayDebug(){
> var ThisTest = CodeCnt;
> alert(ThisTest);
>}
Very useful@

Quote:

> </Script>
</script>
Quote:

>
> DisplayDebug()
> CodeCnt = CodeCnt + 1
This code is not inside
<script type='text/javascript'></script>
so will not run.

Easier:
CodeCnt++;
Quote:

> I try to do everything in asp because I have very little JScript
> experience
Which is nonsense because ASP is not a language but a platform,
supporting both VBScript and J[ava]script

Did you try to debug?


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
My System SpecsSystem Spec
Old 01-21-2009   #3 (permalink)
Leona Leal Educator


 
 

Re: Calling a JavaScript Sub-Routine

Thanks for Replying!

The script CodeCnt = CodeCnt + 1 Must be in asp, it has been working for
years.

I added the DisplayDebug() script to try to find out if I have to check to
see what browser the schools have changed to, or if Microsoft changed some
asp stuff

Like I said, these pages have been working for about three years. I am sure
ti has something to do with what type of browser some of the schools have
changed to.

There are a lot of pages and most of the script works, but there are some
lines that have stopped working. They are just ignorred, no errors indicated.

I tried Debug and nothing happens or I do not know how to use it.

Talked to another person who does everything in asp and she indicated that
Debug has been very unreliable for her.

She uses <%Response.Write for her stuff, but because I am displaying
everything in a table format, the Response.Write is ignorred.

I will repost in the JScript NG.

Thanks Again

Granny Leona



"Evertjan." wrote:
Quote:

> =?Utf-8?B?TGVvbmEgTGVhbCBFZHVjYXRvcg==?= wrote on 21 jan 2009 in
> microsoft.public.scripting.vbscript:
>
Quote:

> > Hi Guys;
> >
> > I have had some pages working for years. All of a sudden on some
> > sites the data is displayed and on some others it is not?
> >
> > I am trying to find the problem!
> >
> > I Have a little JavaScript sub-routine I want to call to find out what
> > is wrong.
>
> You are in the wrong NG,because
> why would this NG be called microsoft.public.scripting.vbscript?
>
Quote:

> > <Script Language="JavaScript">
>
> Perferably:
>
> <script type='text/javascript'>
>
Quote:

> > function DisplayDebug(){
> > var ThisTest = CodeCnt;
> > alert(ThisTest);
> >}
>
> Very useful@
>
>
Quote:

> > </Script>
>
> </script>
>
Quote:

> >
> > DisplayDebug()
> > CodeCnt = CodeCnt + 1
>
> This code is not inside
> <script type='text/javascript'></script>
> so will not run.
>
> Easier:
> CodeCnt++;
>
Quote:

> > I try to do everything in asp because I have very little JScript
> > experience
>
> Which is nonsense because ASP is not a language but a platform,
> supporting both VBScript and J[ava]script
>
> Did you try to debug?
>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)
>
My System SpecsSystem Spec
Old 01-21-2009   #4 (permalink)
Paul Randall


 
 

Re: Calling a JavaScript Sub-Routine

If you are using Outlook Express as your newsgroup reader, and are
subscribed through msnews.microsoft.com, then you can easily get a list of
all of Microsoft's asp-related newsgroups.

To get the list, while you are looking at one of the Microsoft newsgroups,
click on the newsgroups button in the button bar. You should get a window
titled 'Newsgroup Subscriptions'. Near the top of the window is a box
captioned: Display newsgroups which contain:. Type the three characters asp
in the box. You should see a list of thirty or more asp-related newsgroups
in various languages.

To help yourself further, you might create a web page that people can bring
up when they have problems, and which will report to you info about their
browser and OS so you don't have to wonder about what browser they might be
using.

-Paul Randall

"Leona Leal Educator" <LeonaLealEducator@xxxxxx> wrote in
message news:BB904C51-5502-439C-BEE3-6D53B67ABAD3@xxxxxx
Quote:

> Thanks for Replying!
>
> The script CodeCnt = CodeCnt + 1 Must be in asp, it has been working for
> years.
>
> I added the DisplayDebug() script to try to find out if I have to check
> to
> see what browser the schools have changed to, or if Microsoft changed some
> asp stuff
>
> Like I said, these pages have been working for about three years. I am
> sure
> ti has something to do with what type of browser some of the schools have
> changed to.
>
> There are a lot of pages and most of the script works, but there are some
> lines that have stopped working. They are just ignorred, no errors
> indicated.
>
> I tried Debug and nothing happens or I do not know how to use it.
>
> Talked to another person who does everything in asp and she indicated that
> Debug has been very unreliable for her.
>
> She uses <%Response.Write for her stuff, but because I am displaying
> everything in a table format, the Response.Write is ignorred.
>
> I will repost in the JScript NG.
>
> Thanks Again
>
> Granny Leona
>
>
>
> "Evertjan." wrote:
>
Quote:

>> =?Utf-8?B?TGVvbmEgTGVhbCBFZHVjYXRvcg==?= wrote on 21 jan 2009 in
>> microsoft.public.scripting.vbscript:
>>
Quote:

>> > Hi Guys;
>> >
>> > I have had some pages working for years. All of a sudden on some
>> > sites the data is displayed and on some others it is not?
>> >
>> > I am trying to find the problem!
>> >
>> > I Have a little JavaScript sub-routine I want to call to find out what
>> > is wrong.
>>
>> You are in the wrong NG,because
>> why would this NG be called microsoft.public.scripting.vbscript?
>>
Quote:

>> > <Script Language="JavaScript">
>>
>> Perferably:
>>
>> <script type='text/javascript'>
>>
Quote:

>> > function DisplayDebug(){
>> > var ThisTest = CodeCnt;
>> > alert(ThisTest);
>> >}
>>
>> Very useful@
>>
>>
Quote:

>> > </Script>
>>
>> </script>
>>
Quote:

>> >
>> > DisplayDebug()
>> > CodeCnt = CodeCnt + 1
>>
>> This code is not inside
>> <script type='text/javascript'></script>
>> so will not run.
>>
>> Easier:
>> CodeCnt++;
>>
Quote:

>> > I try to do everything in asp because I have very little JScript
>> > experience
>>
>> Which is nonsense because ASP is not a language but a platform,
>> supporting both VBScript and J[ava]script
>>
>> Did you try to debug?
>>
>>
>> --
>> Evertjan.
>> The Netherlands.
>> (Please change the x'es to dots in my emailaddress)
>>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Routine Maintenance Advice Wanted General Discussion
can a property let routine return a value? VB Script
re: 'Save As' routine VB Script
Generic document manipulation routine .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46