Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-26-2004, 07:02 PM   PM User | #1
x-factor
New to the CF scene

 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
x-factor is an unknown quantity at this point
strange invalid syntax error in IE6

I have an HTML form with many elements (about 30). Each element is either text or a select drop down list, and each is preceded by a checkbox. There is a button, in the form, with the onclick event linked to a javascript function that checks whether at least one box is checked. If so, the form is submitted, otherwise throws up an alert dialog.

The issue here is that the form works without issue in Firefox/Mozilla (the javascript console in Mozilla shows no javascript errors) and Opera. However, in IE, it throws an "Invalid Syntax" javascript error, and the line it refers to contains only the closing brace for an if block.

I've narrowed the problem down to the number of elements in the form. Beyond a certain number (I believe 20), the error pops up in IE, but anything less there is no issue. I'm absolutely certain of this since I cut and pasted in the elements in one by one into the form, and in random order several times to make sure it wasn't just one specific element causing the problem.

Does anyone know if this is a known bug in IE? I know the simple solution is to just not use IE, but unfortunately, the people who are using this use IE exclusively. Any help appreciated. Thanks. Attached is the html. The javascript and stylesheet follow.

-NS
Attached Files
File Type: txt error.txt (32.7 KB, 235 views)
File Type: txt standard.txt (9.3 KB, 109 views)
File Type: txt findSimilar.txt (2.5 KB, 158 views)
x-factor is offline   Reply With Quote
Old 08-26-2004, 07:26 PM   PM User | #2
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
Oh... I started looking at your codes here and just now had the time to take your numerous files, remove the Google Adsense crap and put them together so I could run them... But I see you got tired of waiting... Sorry but I was trying to help as I could find time between the other things I need to be doing, such as running my business...

Good Luck....
.....Willy
Willy Duitt is offline   Reply With Quote
Old 08-26-2004, 07:32 PM   PM User | #3
x-factor
New to the CF scene

 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
x-factor is an unknown quantity at this point
heh, funny. Didn't realize you were also involved in this forum also well. I was just looking for other people to look at it since I'm fairly certain this is not going to be an easy bug to track down (if it is a bug on my part). I appreciate the help in any case. I spent two days trying to figure out what was going on .
x-factor is offline   Reply With Quote
Old 09-14-2004, 10:49 AM   PM User | #4
espen-d
New to the CF scene

 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
espen-d is an unknown quantity at this point
Lightbulb Use method="post"

Hi, I found a solution which worked for me.
In the form tag use method="post" instead og "get". The get method is restricted to 255 characters or so.

espen-d
espen-d is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 03:31 AM.


Advertisement
Log in to turn off these ads.