Strange "Element undefined" problem

E

Evertjan.

Mike Duffy wrote on 01 aug 2009 in comp.lang.javascript:
... extreme measures are not necessary by including the js

I asked my ISP for SSI. The response was basically that my question
was not on the list of those for which they had perpared an answer.

Their clients are mostly residential "amateurs" like myself who sign
up for their broad band service (via the TV cable), and the web page
hosting service they provide is primarily just so that they can
legally advertise that they provide such a service. It is
subcontracted to a subsidiary and consists of a limited (5 Meg) space
with no possibility of talking to someone who knows more than how to
reset your password.

Once I sent them a $0.01 piece to pay for my share to double our disk
quotas, but they did not find it amusing. They simply reminded me that
the fine print in the contract says they can suspend this service
without notice at any time when it becomes "in their best interests".

There are two easy solutions:

1 Add the js as conteint ot every html file.

2 Why, if you are a serious programmer, interested in minimalizing server
workload, use the minimalistic included hosting of your ISP?

For less than 100 Euro or Pound a year the most elaborate virtual server
hosting can be rented nowadays, with ssi, serverside scripting in asp and
php, and multigigaBytes of server memory.
 
M

Mike Duffy

Mike Duffy wrote on 01 aug 2009 in comp.lang.javascript:
1 Add the js as conteint ot every html file.

I will keep this in mind for future problems.
2 Why, if you are a serious programmer, interested in minimalizing
server workload, use the minimalistic included hosting of your ISP?

I think I am what you should call a "serious amateur".
For less than 100 Euro or Pound a year the most elaborate virtual
server hosting can be rented nowadays, with ssi, serverside scripting
in asp and php, and multigigaBytes of server memory.

My website has absolutely no monetary components. All of the js programming
I have ever done was purely for the fun of learning something new. There is
no way I can possibly justify spending any real money until I work out some
kind of real agenda for my site as a whole. In any case, I have only used
up 1.5 out of my 5 Mb limit.

Take a look:

http://pages.videotron.com/duffym/
 
M

Mike Duffy

Another solution is to develop your website on your own machine,
running SSI if you wish, and then have 'build to static' and 'deploy
to ISP' scripts.

That would also avoid the problems of other people seeing the results of
"debug" statements when something goes wrong and you need to display stuff
at the screen to troubleshoot the problem.

But sometimes you cannot do it your way. For example, the buttons I added
at the top to translate all my pages using the Google translate service, or
the buttons at the bottom to let people submit my pages to the various
"social bookmarking" services.
 
E

Evertjan.

Mike Duffy wrote on 02 aug 2009 in comp.lang.javascript:
I will keep this in mind for future problems.


I think I am what you should call a "serious amateur".


My website has absolutely no monetary components. All of the js
programming I have ever done was purely for the fun of learning
something new. There is no way I can possibly justify spending any
real money until I work out some kind of real agenda for my site as a
whole. In any case, I have only used up 1.5 out of my 5 Mb limit.

That is fine, many are like you.

In your case however , where the counter shows 783, perhaps you have one
visitor an hour, not 20 a minute, and certainly not 50 a second.

So I would not worry about the added impact on the server by downloading
the javascript on every page.

However, serverside programming giving much more grip on the dynamics of
a page, you should definitly consider it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top