TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aaron Cronje
NA
256
261.9k
Switch Statement
Nov 30 2011 12:12 PM
Hi...
I am working in ajax and face a problem in switch statement. How can we define switch statement in ajax?
switch(this.xhr.readyState) {
case 3:
var e = new AjaxEvent(this);
this.dispatchEvent('data', e);
break;
case 4:
try {
// Only continue if status OK
if (this.xhr.status == 200) {
var e = new AjaxEvent(this);
this.dispatchEvent('load', e);
}
} catch (ex) {
var e = new AjaxEvent(this);
Reply
Answers (
1
)
Tag in AJAX
Silverlight in AJAX