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 8 1728
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.
"Ian Collins" <ia******@hotma il.com> kirjoitti viestissä
news:4a******** ****@individual .net... You're SOL if JavaScript is disabled. -- Ian Collins.
SOL? google gave over one million hits.
optimistx wrote: "Ian Collins" <ia******@hotma il.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.
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.
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.
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!
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 "Asynchrono us Javascript and XML".
Therefore, without Javascript there can be no AJAX.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 from within an
inline function.
Within the AJAX object:
this.xmlhttp = new XMLHttpRequest();
this.response = ''; //to contain the response text OR xml
var that = this; //since we cannot reference this within the
|
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, and lets say I have a button as a trigger which
runs a function in my code behind to add a textbox to the updatePanel, when
the form is submitted does this control actually "exist" as such on the
|
by: Arjen |
last post by:
Hi,
I want to reload 2 divs at one click. Ive tried:
<a href = "javascript:void(0);"
onclick="show('ajaxrequest.php?action=removefield','div1');show('ajaxrequest.php?action=reloaddiv2','div2')">verwijderen</a>
While both seperate actions work they dont when I put them together.
Anyone know how to fix this ?
My ajax.js with funcition show
|
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 functioning as desired when I
test it on my machine using Visual Studio 2005. From what I have determined,
the files I am forgetting are the JavaScript files from the Microsoft AJAX
Library (See "To install Microsoft AJAX Library" at the bottom of...
|
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 javascript to disable the fields
or should I be using Ajax do that? As probably can be seen from my post I
have never used Ajax yet.
Bill
| |
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 lack some JavaScript solid knowdlege)
The problem is that when I try to send a form's content with Ajax (I'm using the prototype library), for some reason the latin characters (accents and stuff, like áéíóú) turn a mess when I try to store them in...
|
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 value.
Why is it that the updatepanel one still seems to "flicker" on postback? I
would think that because I have it in an updatepanel taht it wouldn't.
(Yes, I have scriptmanager before it.)
Thanks.
|
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 controls on the page via some JavaScript before the request is sent. This function takes some time to execute because it has to communicate with hardware that is rather slow. This slowness combined with a little bit of lag sometimes results in a ...
|
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 person
clicks the button and enable everything after the processing is completed?
Thanks!
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |