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

Error Message in AJAX

I have a form in jsp that inserts data into the table,after inserting successful message and error message should be shown in the design page thr ajax.

I have the error messge value in my jsp page. I do not know how to show this in ajax.
May 22 '10 #1
3 1909
gits
5,390 Expert Mod 4TB
?? the XMLHttpRequest just gets the response from your serverside script ... so you would just need to add the error message to the response and handle that in the request's callback ... without seeing any code that is involved ... it would be just guesswork to give a more precise answer ...
May 22 '10 #2
Iam inserting data into the table thr ajax in java.

After inserting the value ,if there is any error in inserting the return value should be displayed from that java program thr ajax.


how to display error message from java program in ajax.
May 24 '10 #3
gits
5,390 Expert Mod 4TB
as i said ... when you make an ajax-call the XMLHttpRequestObject waits for a response ... the response could be any text that you want to have transported to the client ... just handle the text in the requests callback function ... there is nothing special. what do you currently do with the response? or don't you handle it at all?
May 24 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
0
by: WebDev2 | last post by:
I can't get AJAX.NET Pro to work. I keep getting a Compiler Error Message: CS0246: The type or namespace name 'AjaxPro' could not be found (are you missing a using directive or an assembly...
8
by: Taras_96 | last post by:
Hi everyone, We' ve come to the conclusion that we wish the user to be directed to an error page if javascript is disabled <enter comment about how a webpage shouldn't rely on javascript here :)...
3
by: =?Utf-8?B?bWNpbWFnaW5n?= | last post by:
We have recently applied AJAX to our web site, nothing particularly fancy, just some update panel, progress images and collapsible panels, just the basics to improve the user experience. The...
6
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I have been developing with AJAX since the release. Now I received a new client computer and had to install all software again. Everything went fine except AJAX installation where I received an odd...
5
by: =?Utf-8?B?RGlubw==?= | last post by:
I created a page with the updatepanel, works on my laptop and on a production server, however, I get a java scrip error null is null or not a object when i run it from a dev server. written in...
0
by: Lloyd Sheen | last post by:
In design view of an aspx page I have an Ajax Toolkit ToolkitScriptManager control. The markup for this is <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"...
2
by: dnnddane | last post by:
Hi All, I try to create a sample asp.net ajax application in visual studio 2005. I have 1 textbox, 1 requirefieldvalidator and 1 button. All are in updatepanel. When I click the button and the...
7
by: rajkumarbathula | last post by:
Hi I am creating a usercontrol in .net and using that as webpart in sharepoint site. i want to make use of ajax in my user control. and hence i added scriptmanager, updatepannel and update...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.