HighDots Forums  

Re: Clear Button

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Clear Button in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
davaze webforumsuser@macromedia.com
 
Posts: n/a

Default Re: Clear Button - 07-14-2003 , 12:30 PM






I don't know what is going wrong but my browser keeps telling me that there's an error on the page. I included the javascript function between the <Head> tag and the <script language="javascript" type="text/javascript"> and called it with the onclick="clearText()".

I get the error: form1.textfield is no object
from my browser.

What is wrong??





Reply With Quote
  #2  
Old   
SamMan
 
Posts: n/a

Default Re: Clear Button - 07-14-2003 , 05:36 PM






"form1" & "textfield" should be the name of your form & textfield,
respectively. They can be named *anything* that you want, you just have to
make sure they are the same in *both* your HTML page & JavaScript function.

Sam


"davaze" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I don't know what is going wrong but my browser keeps telling me that
there's an error on the page. I included the javascript function between the
<Head> tag and the <script language="javascript" type="text/javascript"> and
called it with the onclick="clearText()".
Quote:
I get the error: form1.textfield is no object
from my browser.

What is wrong??






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.