473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

What does This Error Mean?

KC
I am using JavaScript on an Acrobat form. the script stops at the line "else
if (f32.value == "")"shown below. I get the following error message:
SyntaxError: syntax error 133:(null) at line 134.

Can someone give me an idea of what needs to be corrected?

Thanks in advance for any help you can offer.

else
// Email form and data.
this.mailDoc(true, "re*********@whereiwork.com", "", "", "ROP Request Form
Submission");
else if (f32.value == "")

Jul 23 '05 #1
4 2198
KC wrote:
I am using JavaScript on an Acrobat form. the script stops at the line "else
if (f32.value == "")"shown below. I get the following error message:
SyntaxError: syntax error 133:(null) at line 134.

Can someone give me an idea of what needs to be corrected?

Thanks in advance for any help you can offer.

else
// Email form and data.
this.mailDoc(true, "re*********@whereiwork.com", "", "", "ROP Request Form
Submission");
else if (f32.value == "")


Is f32 a text input on a form? Did you try using something like:

if (document.forms["formname"].f32.value=="")

If that wasn't it, how about posting the url or the whole page.
Mike

Jul 23 '05 #2
KC wrote:
I am using JavaScript on an Acrobat form. the script stops at the
line "else if (f32.value == "")"shown below. I get the following
error message: SyntaxError: syntax error 133:(null) at line 134.

Can someone give me an idea of what needs to be corrected?

Thanks in advance for any help you can offer.

else
// Email form and data.
this.mailDoc(true, "re*********@whereiwork.com",
"", "", "ROP Request Form Submission");
else if (f32.value == "")


The syntax for an - if - statement (ECMA 262 3rd edition Section 12.5)
is:-

if ( Expression) Statement else Statement

- or -

if ( Expression ) Statement

- and because those - if - statements are statements they may be
inserted into the syntax of an - if - statement at the points where -
Statement - appears.

However, the syntax you have used is:-

if ( Expression) Statement else Statement else Statement

(with the final Statement being - if (f32.value == "") ... )

- and you cannot replace - Statement - in either of the - if - syntaxes
and get the form that you have used.

Richard.
Jul 23 '05 #3
> I am using JavaScript on an Acrobat form. the script stops at the line "else
if (f32.value == "")"shown below. I get the following error message:
SyntaxError: syntax error 133:(null) at line 134.

Can someone give me an idea of what needs to be corrected?

Thanks in advance for any help you can offer.

else
// Email form and data.
this.mailDoc(true, "re*********@whereiwork.com", "", "", "ROP Request Form
Submission");
else if (f32.value == "")


You have a syntax error in your program. Try running your script through
jslint. It may give you a better error message.

http://www.crockford.com/javascript/lint.html
Jul 23 '05 #4
kc

Thanks for the help. After reviewing my script, I realize that it is a
mess partly because I am repeating a large portion of the script over
and over vs using a function.

I'm going to reconfigure it, and hopefully that will solve the problem.
If not, it will make it easier to find.

Kenn
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for...
6
by: WindAndWaves | last post by:
Hi Folks I have inhereted a script that I understand reasonably well, I just do not understand !/^\d+$/.test(el.value) what the hell does that mean? Below is the script (there are really...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
13
by: Protoman | last post by:
I'm getting an error: 10 C:\Dev-Cpp\Enigma.cpp no match for 'operator<' in 'i < (+cleartext)->std::basic_string<_CharT, _Traits, _Alloc>::end ()' Code: Enigma.hpp...
5
by: prabu | last post by:
Hi all, I want to know, what does the value of the array in the following statement mean and How to print the content of the array SMB_Negotiate using printf? unsigned char SMB_Negotiate = ...
6
by: Bint | last post by:
I'm getting this returned from a PHP script. What does this mean? <b>Parse error</b>: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in <b>/ho Thanks B
2
by: Lambda | last post by:
The code is simple: // Token.h #ifndef TOKEN_H #define TOKEN_H #include <vector> #include <string> class Token
5
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.