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

ajax but disable javascript

Hi I am very new to this two

If the browser disable the javascript, what happen to Ajax? can i slove
the problem by using server side script? any suggestion for this?

i currently do some dirty projects with perl/cgi, and I would like to
add more client side features which relate to ajax, and do some
validation on the client side with javascript. but it is possible that
the javascript may be disable with some browsers. what can i do if the
client's broweer disable the javascript.

thank you

Apr 12 '06 #1
8 1701
jpaul wrote:
Hi I am very new to this two

If the browser disable the javascript, what happen to Ajax? can i slove
the problem by using server side script? any suggestion for this?
You're SOL if JavaScript is disabled.
i currently do some dirty projects with perl/cgi, and I would like to
add more client side features which relate to ajax, and do some
validation on the client side with javascript. but it is possible that
the javascript may be disable with some browsers. what can i do if the
client's broweer disable the javascript.

Fall back to conventional server side processing.

--
Ian Collins.
Apr 12 '06 #2

"Ian Collins" <ia******@hotmail.com> kirjoitti viestissä
news:4a************@individual.net...
You're SOL if JavaScript is disabled.
--
Ian Collins.


SOL? google gave over one million hits.
Apr 12 '06 #3
optimistx wrote:
"Ian Collins" <ia******@hotmail.com> kirjoitti viestissä
news:4a************@individual.net...
You're SOL if JavaScript is disabled.
--
Ian Collins.

SOL? google gave over one million hits.

Sorry, I think it's an Americanism, the last two letters are Out of Luck.

--
Ian Collins.
Apr 12 '06 #4
jpaul wrote:
If the browser disable the javascript, what happen to Ajax?
Ajax is a buzzword that basically means "Using JavaScript to make
requests to the server and process the response".

If JavaScript is disabled you can't use it to make such requests.
can i slove the problem by using server side script?
That depends what the problem is. Ajax is just a technology. It might
be used in a solution to a problem, but it isn't a solution in and of
itself.
i currently do some dirty projects with perl/cgi, and I would like to
add more client side features which relate to ajax, and do some
validation on the client side with javascript.
Never ever depend on the client to ensure data integrity / sanity. You
are effectively asking the user to police themselves. By all means use
it as a convienience to the user, but check the data again when it gets
to the server.
but it is possible that the javascript may be disable with some browsers.
what can i do if the client's broweer disable the javascript.


If its fluff, just forget about it, the user will get a slightly less
nice experience (well, depending on the fluff, sometimes things work
better without the JS).

If it does something useful, have a server side fallback.

Apr 12 '06 #5
I usually code javascript which embed in Html form before I call the
server side script, I do all the validation in client side before it
goes to Server side. But it isn't possible for me to know if the client
already disable javascript. What method should I use to check for
browser and javascript, so incase I will not send the Html form with
Javascript that can not run in the client? The answer that I already
think off is, using server side script to check and if the client isn't
disable the javascript, then print the html form with javascript embed,
else I should use all the server side script.

Apr 12 '06 #6
Pondering the eternal question of "Hobnobs or Rich Tea?", jpaul finally
proclaimed:
I do all the validation in client side before it goes to Server side.
But it isn't possible for me to know if the client already disable
javascript.


I'd just have the server-side scripting re-validate the user input
anyway. That way people with Javascript support will have their input
validated quickly without them having to wait for the server to respond,
but as a fall back users without scripting enabled will still have their
input validated, but in a slightly longer process.

I wouldn't waste time trying to figure out whether the client supports
scripting or not, and sending different pages. That's just counter
productive.

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!
Apr 12 '06 #7
jpaul wrote:
Hi I am very new to this two

If the browser disable the javascript, what happen to Ajax? can i slove
the problem by using server side script? any suggestion for this?

Simple answer: AJAX stands for "Asynchronous Javascript and XML".
Therefore, without Javascript there can be no AJAX.
Apr 12 '06 #8
Rich wrote:
I wouldn't waste time trying to figure out whether the client supports
scripting or not, and sending different pages. That's just counter
productive.
As a task of getting a project complete it can be counter productive, but
as an end result the javascript validation can make the experience more
polished and professional if done right.


So? Write one page that degrades gracefully if JavaScript isn't supported.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Apr 12 '06 #9

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

Similar topics

4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
4
by: Rob Meade | last post by:
Hi all, I played with my first bit of AJAX the other week and was pleasantly surprised that I achieved my goal..now I'd like to try something else.. Question... If I have an updatePanel,...
17
by: Arjen | last post by:
Hi, I want to reload 2 divs at one click. Ive tried: <a href = "javascript:void(0);"...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
7
by: Bill Gower | last post by:
I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using...
7
xNephilimx
by: xNephilimx | last post by:
lHi guys! I'm having a little problem that's getting on my nerves, I couldn't find a solution, I also tryed googling it and I found nothing... (my field of expertise is in AS 2 and 3, but I still...
3
by: Cirene | last post by:
I have a simple page - 2 dropdowns, 2 textboxes. 1 set of dropdown/textbox is in the updatepanel. 1 set of dropdown/textbox is not. When I select a dropdown the textbox is updated with teh...
0
Frinavale
by: Frinavale | last post by:
I have a peculiar problem... Background: I have a function that I don't want the user to execute more than once while they are waiting for it to process; therefore, I disable all of the...
2
by: Cirene | last post by:
I have an ajax enabled asp.net webform. I coded a button that does a bunch of stuff. It could take up to 30 seconds to process. How can I disable everything on the screen immediately when the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
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.