473,547 Members | 2,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I hate javascript :-(

Well, what can I say...I really hate Javascript.

I am not programming as profession but I sometimes work with PHP with
MySQL, ASP with Ms Access/SQL Server. I have done something in VB and
when I was jounger I worked with C.

But what happens with Javascript, it happens with no other language.

I work with WinXP SP2 & IIS5, now. But also with Win2k and win98, as
fas as I remember, it was the same. I always keep my PC updated with
Microsoft updates.

If I need to work with Javascript (I try to avoid it, but when it is
necessary...), I normally copy some files from the Internet for not
having to reinvent the wheel myself. Take this script, for example, a
typical form verifier:
http://willmaster.com/possibilities/...edFieldsCheck/

but could also be another script, it makes no difference for what
happens.

I try it online and it works, I download the file to my hard disk. Ok,
it works. I copy the script to my file and it does NOT work at all. Ok,
I might have made a mistake...no way to understand what....
I do not attach here my file because my file is not the problem.

I run again the file downloaded from the internet and...it does not
work any longer !!!! It gives an error message...why if it was working
before and I have not edited it?!?
The error message is not important: it is one of those IE's yellow
triangle alert that refer to unexisting row and column. And you never
understand what's about.

I reboot the PC and same story. The original file downloaded works, my
files does not work (wihout any error message in my case) and the
orginal downloaded file does not work any longer after that!!!!

What the hell happens with javascript? Does it hangs the IIS service?
Does the function get stuck in the cache?

How can I avoid this to happen. How can I debug my scripts as I do for
all the others scrips/languages: without rebooting at the first error
message?

It's really disappointing: yesterday I managed to set up a webform +
page results in ASP + MS Access in a few hours and today I am stuck all
day with a stupid form verifier in Javascript.

Thanks for your ideas and suggestions.

Fabian

Jul 23 '05 #1
19 2099
Fabian wrote:
A long sob story


Initially It really is a bugga to get ones head around the whole DOM thing.
I still hate JavaScript (as I am still learning) but it's just too
useful to disregard.
Jul 23 '05 #2
Lee
Fabian said:
What the hell happens with javascript? Does it hangs the IIS service?
Does the function get stuck in the cache?

How can I avoid this to happen. How can I debug my scripts as I do for
all the others scrips/languages: without rebooting at the first error
message?

Probably the biggest difference between Javascript and other languages
is that most of the examples of Javascript code you're going to find
are bad to begin with and require some degree of customization to make
them work with your HTML.

If you're not willing to understand the language, don't use it, or at
least don't complain when you can't get crap you downloaded to work.

Jul 23 '05 #3

Well, for one thing, you ARE copying/pasting, so, is not that the code
doesn't work, it works, it just that you didn't write it, you're not the
author and on that, we cannot query you on anything on the code issues or
what it's there to do, now, we, for any querying or addressing on it need
the author of it, no the fella doing the copy/pasting, Javascript is Cish,
so, if you do in fact know C, shouldn't be an issue, PHP is a bit Perlish
and so is Javascript, so, if you do in fact know PHP that well, you can
tell pretty much what js is doing.

I've seen those copy/pasted deals, usually is, the fella copy/paste a
few <script> blocks in a page, and each block has their own locals vars
per function and/or their own globals, all locals fall within the
container scope, usually a function, but depending on the runtime it can
collide with another variable on another function with the same name or
branching or addressing the same object over the same runtime over a
recursion or some event listener, but what I've seen often is, global
naming issues, each <script> block define some globals and all globals
fall withing the SAME scope, so, one block defined global, maybe redefined
or reassigned on another. Then again, you're not the author of it. You'd
get the same in any language if you plaster around without auditing from a
file to another.
Danny
On Sun, 26 Jun 2005 10:14:21 -0700, Fabian <ne******@hotma il.com> wrote:
Well, what can I say...I really hate Javascript.

I am not programming as profession but I sometimes work with PHP with
MySQL, ASP with Ms Access/SQL Server. I have done something in VB and
when I was jounger I worked with C.

But what happens with Javascript, it happens with no other language.

I work with WinXP SP2 & IIS5, now. But also with Win2k and win98, as
fas as I remember, it was the same. I always keep my PC updated with
Microsoft updates.

If I need to work with Javascript (I try to avoid it, but when it is
necessary...), I normally copy some files from the Internet for not
having to reinvent the wheel myself. Take this script, for example, a
typical form verifier:
http://willmaster.com/possibilities/...edFieldsCheck/

but could also be another script, it makes no difference for what
happens.

I try it online and it works, I download the file to my hard disk. Ok,
it works. I copy the script to my file and it does NOT work at all. Ok,
I might have made a mistake...no way to understand what....
I do not attach here my file because my file is not the problem.

I run again the file downloaded from the internet and...it does not
work any longer !!!! It gives an error message...why if it was working
before and I have not edited it?!?
The error message is not important: it is one of those IE's yellow
triangle alert that refer to unexisting row and column. And you never
understand what's about.

I reboot the PC and same story. The original file downloaded works, my
files does not work (wihout any error message in my case) and the
orginal downloaded file does not work any longer after that!!!!

What the hell happens with javascript? Does it hangs the IIS service?
Does the function get stuck in the cache?

How can I avoid this to happen. How can I debug my scripts as I do for
all the others scrips/languages: without rebooting at the first error
message?

It's really disappointing: yesterday I managed to set up a webform +
page results in ASP + MS Access in a few hours and today I am stuck all
day with a stupid form verifier in Javascript.

Thanks for your ideas and suggestions.

Fabian


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #4
If you're not willing to understand the language, don't use it, or at
least don't complain when you can't get crap you downloaded to work.


Maybe I have not made myself correctly understood.

In my opinion, it's not a question of language or od coding, it's a
question of operating system or IIS or Javascript service or IE that
'hangs up' or something because the "crap" as you call it works but
after a certain event for wich I need to reboot.

Did I make myself understood? Any idea?

Jul 23 '05 #5


Danny wrote:
Well, for one thing, you ARE copying/pasting, so, is not that the code
doesn't work, it works, it just that you didn't write it, you're not the

Definitely I must have written something wrong in my original message
because I have not made myself understood at all.

The code I downloaded *****works****.

Then I mess up with my file and here it can be that I make a mess in
cutting and pasting. let's pretend that I do a complete mess.

Then I go back my originally downloaded file and this second time it
does not work any longer !!! I need to reboot my PC to see it working
again! Tell me how can 1 file influences another file for ever..

I suspect that there are bugs in the operating system/IIS5 service, IE
I do not know. I wondered if you had any idea and if you had ever noted
this yourself.

I have always noted it...with javascript...th at I need to reboot to
have something working again.

Jul 23 '05 #6


bmgz wrote:
Fabian wrote:
A long sob story


Initially It really is a bugga to get ones head around the whole DOM thing.
I still hate JavaScript (as I am still learning) but it's just too
useful to disregard.


I didn't get your point.

Jul 23 '05 #7

"Fabian" <ne******@hotma il.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .


bmgz wrote:
Fabian wrote:
A long sob story


Initially It really is a bugga to get ones head around the whole DOM thing. I still hate JavaScript (as I am still learning) but it's just too
useful to disregard.


I didn't get your point.

I think his Point is something on the order of:
JavaScript may not be easy, but it is too useful to just not try.

Jul 23 '05 #8
Lee
Fabian said:

If you're not willing to understand the language, don't use it, or at
least don't complain when you can't get crap you downloaded to work.


Maybe I have not made myself correctly understood.

In my opinion, it's not a question of language or od coding, it's a
question of operating system or IIS or Javascript service or IE that
'hangs up' or something because the "crap" as you call it works but
after a certain event for wich I need to reboot.

Did I make myself understood? Any idea?


It sounds like there's something wrong with your debugging procedure.
You haven't told us if running the downloaded code twice fails on
the second try. You haven't told us if it works in another browser
other than IE. I find Internet Explorer to be a lousy browser,
particularly for debugging code. Try Firefox.

Jul 23 '05 #9
> It sounds like there's something wrong with your debugging procedure.
You haven't told us if running the downloaded code twice fails on
the second try.
Thanks Lee. Luckily, you got my point now. :-)

Yes it works many times. It works until I run a "buggy"(?) script.

You haven't told us if it works in another browser other than IE.
I will try it: good idea.

I find Internet Explorer to be a lousy browser, particularly for debugging code. Try Firefox.


And Opera?

Thanks for the suggestion. Will let you know the outcome.

Cheers,
Fabian

Jul 23 '05 #10

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

Similar topics

10
1684
by: in | last post by:
I hate static variables and methods. Hate them. HATE THEM AAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
1524
by: Alexa | last post by:
Hi Everyone, As a user, which ad format you hate the most and which you like the most? A) Top banner B) Google AdSense C) In-content rich media box D) Vibrant Media IntelliTxt I will summarize findings here when I got enough votes.
92
7558
by: Jeffrey P via AccessMonster.com | last post by:
Our IT guys are on a vendetta against MS Access (and Lotus Notes but they've won that fight). What I can't understand is, what's the problem? Why does IT hate MS Access so much. I have tried to find out who it is that actually wants to get rid of it, but I can't find anyone who will admit to trying to get rid of it. Nevertheless, I'm...
10
1473
by: Steven T. Hatton | last post by:
#
0
1978
by: Scott Abel | last post by:
Tuesday, December 12, 2006 -- 10:00AM EST / 3:00 PM GMT X-Pubs presents: CMS & Change - Love it, Hate it, Master it (Scott Abel & Emma Hamer) Reserve your Webinar seat now at: https://www.gotomeeting.com/register/952419737 In this interactive online event, you the participants, and content management strategist Scott Abel, will be...
40
3096
by: PJ6 | last post by:
I want to rant, but I'm too busy at the moment. Who else hates working in C#? What's your biggest pet peeve? Paul
15
4803
by: Jon Davis | last post by:
Bill Wagner posted something here .. http://msdn2.microsoft.com/en-us/vcsharp/default.aspx "Local Type Inference, Anonymous Types, and var" "Of all the features in C# 3.0, local type inference is generating the most questions and misunderstanding. You know, 'var'. The fact is local type inference is not as scary as it seems. In fact,...
0
7510
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7437
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7947
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5362
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3493
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1923
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1050
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
748
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.