473,385 Members | 1,890 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,385 software developers and data experts.

Replacing client side javacript

Hi,

The application we are developing will be used worldwide by various
individuals and organizations . As part of the security restrictions ,
some of the organization will disable client side javscript in their
browsers. SO currently we are in the process of replacing client side
javascript with server side javascript. There are some pages we have
used eventtriggers like onchange,onclick, etc . When a user restricts
scripts as part of the security restrictions , these event triggers
are not working. So is there any way to handle these type of
situations. Also, please let me know if anyone has a alternative
solution to replace client side javascript.

thanks in advance,
Prashanth C N
pr*********@yahoo.com
Jul 20 '05 #1
2 2069
Prashanth wrote on 06 aug 2003 in comp.lang.javascript:
The application we are developing will be used worldwide by various
individuals and organizations . As part of the security restrictions ,
some of the organization will disable client side javscript in their
browsers. SO currently we are in the process of replacing client side
javascript with server side javascript.


1
<script>location.href="js-index.html"</script>
<noscript>
You seem to have disabled your browser's javascript,<br>
so you cannot use this site.<br>
Bye.
</noscript>

or:

2
Use serverside scripting exclusively, without clientside event trapping
like onclick. All click-events must be <a href=""> and all
mousover/mousout replaced by css-styles a:hover

=============

I prefer solution 1, because you should expect some involvement from your
audience. Tell them that the only safe internet connection is no
connection at all, only leased line intranet.

That is not to say that I prefer to use serverside scripting as much as
possible, because you can depend more on your debugging than with all the
browsers and browserversions available.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
pr*********@yahoo.com (Prashanth) writes:
The application we are developing will be used worldwide by various
individuals and organizations . As part of the security restrictions ,
some of the organization will disable client side javscript in their
browsers.
Predictable.
SO currently we are in the process of replacing client side
javascript with server side javascript.
I assume you are using ASP w/ JScript on the server then. That
is the only kind of server-side Javascript I know of.
There are some pages we have used eventtriggers like
onchange,onclick, etc . When a user restricts scripts as part of the
security restrictions , these event triggers are not working. So is
there any way to handle these type of situations.
Nothing except the principles that you should always follow on
professional pages: If Javascript is not *essential* to your page
(i.e., it cannot ever work without it and the computation cannot be
performed server-side), then make sure it works without Javascript. If
Javascript is essential, say so to people without it.
Also, please let me know if anyone has a alternative solution to
replace client side javascript.


For simple things like mouseovers, you can use CSS. Sadly, IE's CSS
is not very advanced, so you probably cannot do your menues entirely
in CSS.

For things like form validation, it should be performed serverside
already (never trust the client!)

For actual computations (e.g., adding numbers), there is no
alternative to doing it on the server. There is only the client and
the server involved, and the client won't do it.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3

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

Similar topics

9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
3
by: MAL | last post by:
Hi I need to Replace the current entry in the History list with a new randomly genrated URL BEFORE following the link being clicked. I want to use the onclick property, replace the current...
11
by: Tom Leylan | last post by:
(I posted this in languages.vb also... I can't figure out where things go if you use a little of a lot of things) Hi all... I'm looking for an example (or a pointer to one) related to the...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
2
by: Terry | last post by:
Hi, Using javascript, I would like to replace the contents of a DIV with new, arbitrary HTML markup. I want to write a W3C-compliant function for doing so; it would look something like this: ...
3
by: Muntz | last post by:
Hi - we are MSDN Enterprise subscribers, our no-spam address is munter@computershare.com We are currently trying to replace a SoapToolkit web-service with a .NET WebMethod implementation, but...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
14
by: Adnan Siddiqi | last post by:
Hi Suppose I have following URLs comming from an HTML document <a href="http://mydomain1.com">Domain1</a> <a...
1
by: =?Utf-8?B?QU5lZWxpbWE=?= | last post by:
I have been reading about asp.net 2.0's client callbacks using the ICallbackEventHandler interface. I have also read that it is pretty much a light-weight AJAX type methodology and that it uses...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
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...

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.