Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6319361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:47:40+00:00 2026-05-24T15:47:40+00:00

How to handle content loading failure in example like this: qtipTo.qtip({ content: { url:

  • 0

How to handle content loading failure in example like this:

 qtipTo.qtip({
            content: { url: 'EditSchedule'}

action method:

   public ActionResult EditSchedule(int? id)
    {
        if (id.HasValue)
        {
            var schedule = _fService.GetSingle(id);
            if (schedule != null)
            {
                return View("EditSchedule", schedule);
            }else
            {
                return Content("Unable to load correct data. Maybe the element has been deleted.");
            }
        }

So basically that’s how it works now, but how can I handle it better? If there is no schedule found, qTip shouldn’t even get opened.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:47:41+00:00Added an answer on May 24, 2026 at 3:47 pm

    I recommend handling this scenario by using the onRender method and doing an ajax call yourself.

    qtipTo.qtip({
                api: {
                    onRender: function () {
                        var api = this;
    
                         $.ajax({
                             type: 'POST',
                             url: '/EditSchedule',
                             success: function (content) {
                                 api.updateContent(content);
                             }
                         });
                     }
                 }
            });
    

    Now you can handle any sort of failure in the success callback.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm loading some HTML via Ajax with this format: <div id=div1> ... some content
Is http/1.0 able to handle deflated and gzip content? I've finished to implement deflate
I have a UIWebView with content populated from a Last.fm API call. This content
I am trying to get a handle on using URL hashes in jQuery to
I got a JQuery/CSS tabcontrol, which currently handle 4 tabs, containing gridviews. I'd like
I've seen code to handle MasterPage events in the content Page, but if I'm
Sup guys. I'm loading data into a table using ajax and jquery. This can
I'm planning on loading multi-paragraph content from a text file and displaying it on
I'm using spring-security and jQuery in my application. Main page uses loading content dynamically
I'm using the FreeImage Library to handle loading images and passing them to OpenGL.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.