Click here to Skip to main content
15,888,070 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I am using both client and Server side validation in my application. I just wanted to know if there is any alternative to Alert box if Client has disabled so that I can display validation message from server side
Posted
Updated 29-Aug-13 1:39am
v2
Comments
ZurdoDev 29-Aug-13 7:40am    
I suppose you would have to put a message in a label then.
Kunal Ved 29-Aug-13 8:13am    
Can I use Ajax Modal Popup .. does it work if java script is disabled
vinay.tatipamula 29-Aug-13 8:28am    
No.. use css to accomplish this.... by taking a div display none, and show that div with message when u want to show.. style that particular div like modal popup using only CSS.. hope this helps.
Dholakiya Ankit 29-Aug-13 8:31am    
what is the use of alternative alert box you told that you already have client/server validations
Kunal Ved 29-Aug-13 8:43am    
I have alert box to display client side validation message box in javascript .. I want to display server side validation messages . I do not wish to put label coz I am using iframe and in that I am calling Asp.net page in that and I do not have enough space to put label in that

1 solution

Not quite sure how "AJAX" and "Javascript-Disabled" can go together in a single sentence in this context!!

If you can't show an alert box because javascript is disabled, then guess what? You sure as hell aint going to be able to do an ajax call!!

How about you take the opposite approach?
(always)Generate a message that says there's no javascript enabled and that functionality is reduced. Then, after the page has loaded, use javascript to remove these messages and to attach the relevant event handlers..

Seems like the clear and obvious approach to me. ¯\_(ツ)_/¯
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900