Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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
 
Old November 1st, 2004, 01:39 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default You Want Infuriating? I'll Show You Infuriating!

This problem is really getting on my nerves.

I'm working on a project where I have to have a scrolling message appear in a form text box. Before, I could see the srolling message ok without problems but now, I'm getting errors:

This is the JS code:

Code:
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--Hide from old browsers
var scrollMsg = "Mortgage rates are at their LOWEST"
var msgSpace = "---  ---"
var beginPos = 0          
function scrollingMsg() {
   document.msgForm.scrollingMsg.value = 
scrollMsg.substring(beginPos,scrollMsg.length)+msgSpace+scrollMsg.substring(0,beginPos)
       beginPos = beginPos + 1
       if (beginPos > scrollMsg.length) {
          beginPos = 0
       }
       window.setTimeout("scrollingMsg()",200)
    }


//-->            
</SCRIPT>
</HEAD>
<BODY onload="scrollingMsg()">
The error I am getting is as follows:

Error: document.msgForm.scrollingMsg has no properties
Source File: file:///C:/4693-0/home.htm
Line: 11



I should note that I am testing the page using Firefox

Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.

Welcome to the New Age
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
 
Old November 1st, 2004, 04:34 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Never mind. I got the code fixed. It was all due to human error;)

Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age





Similar Threads
Thread Thread Starter Forum Replies Last Post
messagebox.show bikki_suresh ASP.NET 1.0 and 1.1 Basics 3 March 20th, 2008 04:26 AM
You Want Infuriating? I'll Show You Infuriating! Ben Horne Javascript 2 November 22nd, 2004 04:49 PM
Show WebForm johanyu ASP.NET 1.0 and 1.1 Basics 5 October 14th, 2004 01:07 AM
SHOW THE BOX yami56 Javascript 4 July 12th, 2004 11:18 PM
How to show picture phoenixcu Access 1 June 10th, 2003 11:26 AM





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