This project is read-only.

Working with ajax calls

Topics: Administration, Customizing Orchard, General
Feb 11, 2013 at 9:58 AM
Can somebody help me with 2 situations:
  1. When calling method with ajax I want to display some loading animation or something like that which is predefined in Orchard. Is there something like that and how to do this?
  2. When getting response from server method if error occurred or something went wrong I want to display error as it is when doing post back call. How to show that no matter if from onSuccess or onError?
So how to do these two things.
Feb 11, 2013 at 5:27 PM
  1. is mostly a client-side concern. Orchard won't help you much with that. Look in the direction of jQuery plug-ins for that sort of thing, or just display an animated gif while disabling some UI elements as needed.
  2. Same thing: jQuery allows you to handle error conditions. There really isn't much that Orchard has to do with this.