![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | this code doesn't works why?? G'day folks, I don't know why this doesn't works On the html page nothing is displayed i know even though m learning i cant make such gross error? any clues?? <html> <body> <script type="text/vbscript"> document.write(now) document.write("<br>"&"The system date is "&date()&"<br/>") document.write("I wanna check DateAdd function yyyy prototype" & DateAdd(yyyy,1,10-Oct-2008) </script> </body> </html> |
My System Specs![]() |
| | #2 (permalink) |
| | Re: this code doesn't works why?? "Rajan" <rajan.paranjpe@xxxxxx> wrote in message news:c9209add-7eca-4e26-8911-911671016a92@xxxxxx Quote: > G'day folks, > > I don't know why this doesn't works > On the html page nothing is displayed i know even though m learning i > cant make such gross error? > > any clues?? an apparently undefined variable, whereas you probably intented to specify the string value of "yyyy". /Al Quote: > <html> > > <body> > <script type="text/vbscript"> > > document.write(now) > document.write("<br>"&"The system date is "&date()&"<br/>") > document.write("I wanna check DateAdd function yyyy prototype" & > DateAdd(yyyy,1,10-Oct-2008) > > > > </script> > > > > > </body> > </html> |
My System Specs![]() |
| | #3 (permalink) |
| | Re: this code doesn't works why?? It seems to work this way: <html> <body> <script type="text/vbscript"> document.write now document.write "<br>"&"The system date is "&date()&"<br/>" document.write "I wanna check DateAdd function yyyy prototype" & DateAdd("yyyy", 1, "10-Oct-2008") </script> </body> </html> Quote: > any clues?? tried to run the code. If you didn't get an error description and line number then you need to enable debugging in IE. |
My System Specs![]() |
| | #4 (permalink) |
| | Re: this code doesn't works why?? To mayayana: How to enable debugging in IE?? Yes, i was wrong, I accept my mistake.thanks for renew code. But Sorry even your code doesn't run. To AL, Yes, i was wrong, I accept my mistake. Regards, Rajan. On Oct 9, 2:41*pm, "Al Dunbar" <AlanD...@xxxxxx> wrote: Quote: > "Rajan" <rajan.paran...@xxxxxx> wrote in message > > news:c9209add-7eca-4e26-8911-911671016a92@xxxxxx > Quote: > > G'day folks, Quote: > > I don't know why this doesn't works > > On the html page nothing is displayed i know even though m learning i > > cant make such gross error? Quote: > > any clues?? > The first parameter in the call to the DateAdd function is invalid. yyyy is > an apparently undefined variable, whereas you probably intented to specify > the string value of "yyyy". > > /Al > > > Quote: > > <html> Quote: > > <body> > > <script type="text/vbscript"> Quote: > > document.write(now) > > document.write("<br>"&"The system date is "&date()&"<br/>") > > document.write("I wanna check DateAdd function yyyy prototype" & > > DateAdd(yyyy,1,10-Oct-2008) Quote: > > </script> Quote: > > </body> > > </html>- Hide quoted text - > - Show quoted text - |
My System Specs![]() |
| | #5 (permalink) |
| | Re: this code doesn't works why?? "Rajan" <rajan.paranjpe@xxxxxx> wrote in message news:b090eb24-95ee-4b03-b601-65651bad914e@xxxxxx Quote: > To mayayana: > How to enable debugging in IE?? Then uncheck 'disable script debugging..', there are two options, one for IE and one for other. This assumes you have a debugger installed. Visual Studio is probably best but not cheap (not sure if the free one can act as an external debugger). Otherwise there is one with Office as an optional component or a stand-alone one from Microsoft, search for "Script debugger" on msdn.com. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name |
My System Specs![]() |
| | #6 (permalink) |
| | Re: this code doesn't works why?? > Tools > Internet options > Advanced Quote: > Then uncheck 'disable script debugging..', there are two options, one for Quote: > and one for other. - Disable script debugging. - Display a notification about every script error. Both are unchecked. Checking the second has no effect that I can see. Quote: > This assumes you have a debugger installed. Visual Studio is probably best > but not cheap (not sure if the free one can act as an external debugger). > Otherwise there is one with Office as an optional component or a Quote: > one from Microsoft, search for "Script debugger" on msdn.com. > If debugging is enabled then a script error will cause a msgbox from IE that gives a description and line number. (I seem to remember that if it's not enabled then one just sees a yellow exclamation point icon in the status bar.) The description and line # are plenty of information to work with. I've never understood why people install the MS script debugger or talk about using Visual Studio. Personally I've never actually tried using the script debugger, but both WScript and IE will tell you the error and the line # without needing any special debugging tools. I can't think of any information beyond that that might be helpful. |
My System Specs![]() |
| | #7 (permalink) |
| | Re: this code doesn't works why?? "mayayana" <mayaXXyana@xxxxxx> wrote in message news:#Fv20hhKJHA.3744@xxxxxx Quote: Quote: >> Tools > Internet options > Advanced >> Then uncheck 'disable script debugging..', there are two options, one for Quote: >> and one for other. > Looking at my settings in IE 5.00 I see two settings: > > - Disable script debugging. > - Display a notification about every script error. > > Both are unchecked. Checking the second has no > effect that I can see. > Quote: >> This assumes you have a debugger installed. Visual Studio is probably >> best >> but not cheap (not sure if the free one can act as an external debugger). >> Otherwise there is one with Office as an optional component or a Quote: >> one from Microsoft, search for "Script debugger" on msdn.com. >> > I didn't mean that a special debugger is required. > If debugging is enabled then a script error will cause > a msgbox from IE that gives a description and line number. > (I seem to remember that if it's not enabled then one > just sees a yellow exclamation point icon in the status bar.) > The description and line # are plenty of information to > work with. > > I've never understood why people install the MS > script debugger or talk about using Visual Studio. Personally > I've never actually tried using the script debugger, but > both WScript and IE will tell you the error and the line # > without needing any special debugging tools. I can't think > of any information beyond that that might be helpful. > code line by line, inspect and change variables etc. Of course most of the time it's just simple errors that don't need this much detail but if you are struggling to get complex Ajax style applications to work it's much more helpful. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Error Code 81000306 - Internet Works | Live Messenger | |||
| How to read Works 4 .wps files in Vista [Works 9?] | Vista General | |||
| Code 8004888d can't sign in Msnger or install beta 8.5 code 0x8009 | Vista security | |||
| ATI Radeon Drivers - Code 43, Code 37 & Code 10 | Vista hardware & devices | |||
| ATI Display Drivers - Code 43, Code 37, Code 10 | Vista hardware & devices | |||