Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Other Programming Languages
|
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 1st, 2006, 04:57 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Total newbie to JSCRIPT-101 question

So, here I am, trying to simply display a textbox with jscript.
I have Ultraedit32.
I have one line of code which reads:
window.alert("Welcome! Press OK to continue.");

I click the filename.js, and my WindowsXP o/s echoes this:
Line: 1
Char: 1
Error: 'window' is undefined

someone please enlighten me as to what else needs to happen in order to display text?
Thanks in advance & I hope I didn't miss an existing JScript forum...


Reply With Quote
  #2 (permalink)  
Old February 1st, 2006, 05:40 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by rgouette
 So, here I am, trying to simply display a textbox with jscript.
I have Ultraedit32.
I have one line of code which reads:
window.alert("Welcome! Press OK to continue.");

I click the filename.js, and my WindowsXP o/s echoes this:
Line: 1
Char: 1
Error: 'window' is undefined

someone please enlighten me as to what else needs to happen in order to display text?
Thanks in advance & I hope I didn't miss an existing JScript forum...


Reply With Quote
  #3 (permalink)  
Old February 1st, 2006, 05:40 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Disregard folks.
Sorry.
I just realized I need to place jscript code within a browser
to execute.
I told ya im 101
maybe 100....



Reply With Quote
  #4 (permalink)  
Old October 15th, 2007, 12:28 PM
Authorized User
 
Join Date: Apr 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you don't need to be in a browser to use JScript, you need to be in a browser to use the 'window' object

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question pbb Ajax 0 September 26th, 2006 05:47 AM
Total newbie fallen at first fence mistywindow C++ Programming 2 April 30th, 2006 06:21 PM
total noob xslt question mrscott XSLT 3 February 22nd, 2006 04:35 PM
newbie question Warbird XML 0 May 11th, 2005 08:41 AM
total beginner question kevin777 C++ Programming 5 November 3rd, 2003 11:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.