hello... i would like to know if large codes contribute to bugs? i mean, my form works great, but SOMETIMES after an alert it doesn't focus on the respective field... and one time i was testing my form over on a friend's PC and for no reason one of the form text fields was completely disabled (there is no disabling/enabling function concerning that field)...
my javascript/html code is just short of 3000 lines long, and the .HTML file is about 130kb... i spent MONTHS on this, so i hope i didn't dig myself into a hole by making my form too big...
anyone have any ideas?
8 1344
humm... i guess this was a really dumb question since no one replied... perhaps i missed something with JS basics, like "don't write a form bigger than 1000 lines of code or the script becomes unstable..."???
I haven't seen problems and I have wrote some pretty large scripts and forms.
maybe its your code that is buggy?
i would assume it's buggy, but could it actually be classified as being buggy is it only doesn't work sometimes... like, most of the time it works fine, and when it doesn't work it's always the .focus() part of functions... i still have no idea why one of the text areas was disabled that one time, as it never happened again...it's really strange.
possible post your script here and we can take a look at it.
possible post your script here and we can take a look at it.
i'm not so sure it's a good idea to post 2500+ lines of javascript here... plus, i think it's fine... and perhaps it's not such a big deal if the focus doesn't work for some users, it's not really important, as the alert message always works...
i just though maybe the javascript "engine" (?) or whatever could be unstable with large scripts...
i guess when i publish it to the web i could give you the address and if you wanted to take a look at it and give me some suggestions to tighten up the code that would be great... but that''s not for a while yet.
Sure come back and post your site..
I would really like to know what you need such a large javascript to do! :P
i am using ie 4 i also wrote js which is 4000 and 5000 lines in my project ..
but they are still working .....
ur problem i faced....
to remove this problem i user .focus() after the alert()....
is it true...to have bugs on increasing the the code length in js
thanksss...........
humm... i guess this was a really dumb question since no one replied... perhaps i missed something with JS basics, like "don't write a form bigger than 1000 lines of code or the script becomes unstable..."???
While there's no particular limit for any javascript implementation that I know of, it's a truism in programming that the bigger and more complex your code is, the more likely it is to have bugs, and the harder it will become to find and fix bugs. That's just a fact of life.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: nybble |
last post by:
Hello,
I'm trying to create a form whose onsubmit returns false if the form
should not be submitted. Normally this type of thing works great for
me:
<form onsubmit="return somefunction()">
...
|
by: Andrew Chanter |
last post by:
I am developing my first ADP client for a SQL db, after having used mdb's as
clients in numerous applications previously. I have found that
theoretically the Input Parameters property of a form in...
|
by: Raposa Velha |
last post by:
Any of you ever catch this bug: I made a form and decided to copy it. Then I
modified the cloned form. Then I run it and access start saying "Error
accessing file. Network connection may have been...
|
by: Adam Clauss |
last post by:
This may be more of a Visual Studio question than a C# question, but it came
up within the context of a C# app, so here it is.
In a Windows Form or a Web Form application, you can drag various...
|
by: Colin McGuire |
last post by:
Hi, is there a way to show a form without a titlebar (and therefore no
control box/minimize box/title etc) but still have it appear looking
like 3D?
The property FormBorderStyle to None - this...
|
by: gerryLowry::Ability Business Computer Services {KC |
last post by:
"Getting Back Your Visual Basic 6.0 Goodies" by Billy Hollis, 2003-5-14,
states:
"Getting a Forms Collection
Visual Basic 6.0 developers are often fond of looping through the currently
loaded...
|
by: sam |
last post by:
Do vb.net forms have a maximum height limit of 1212 pixels? I can't seem
to make a form larger than that size, despite the min & max property
values being set to 1 and 2000 respectively....an empty...
|
by: Edwin Smith |
last post by:
I have a form which displays a DataGridView table generated with the VS2005
tools. The database is a Pervasive v.9 with an ODBC driver.
The DataGridView works great except when I'm done and I...
|
by: Don Lancaster |
last post by:
In an existing, tested and working program, I have a form entry that
simplifies to...
<INPUT name ="fp1s" type="text" value=0.000 size=12 >
and a button of...
<input type="button" value="...
|
by: Arthur |
last post by:
Hello.
How might it be possible to change where a form action is directed based on
a selected option.
For example I have this:
<FORM METHOD = "post" ACTION = "">
And a drop down such as
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |