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

  • Home
  • SEARCH
  • 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 5957947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:28:24+00:00 2026-05-22T18:28:24+00:00

Ext.util.JSONP.request({ url: ‘/Home/GetMessagesMobile’, callbackKey: ‘callback’, params: { lat: geoip_latitude(), lng: geoip_longitude(), rad: 1, sType:

  • 0
Ext.util.JSONP.request({
                url: '/Home/GetMessagesMobile',
                callbackKey: 'callback',
                params: {
                    lat: geoip_latitude(),
                    lng: geoip_longitude(),
                    rad: 1,
                    sType: 0,
                    flow: 1,
                    lastId: 0,
                    lastRow: 0,
                    uniqueify: Math.random()
                },
                callback: function (data) {
                    var messages = data;
                    alert(messages);
                    home.update(messages); // refresh messages
                }
            });

I can debug and hit the breakpoint of my MVC action, and confirm that data is being returned by the action, however, the alert never gets shown, and nothing happens on the client side. Looks like it’s not entering the callback for some reason.

Do I need to make this request different? I’m returning a Json result from the action. Here is the code:

return Json(retval);

Where retval is a list of objects that match the html template parameters elsewhere in the sencha code. Even if that part doesn’t match though, I should at least be able to see the alert right?

  • 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-22T18:28:24+00:00Added an answer on May 22, 2026 at 6:28 pm

    You are probably make a cross-domain request, in that case, you must use JSONP.

    And using JSONP, makes impossible to use return Json(object) from the controller.

    Check the JSONP class in the API. There is a example for ASP.NET.
    You can use in JavaScriptSerializer class to serialize an object to JSON.
    (In fact, Json method is using this class in the back).

    The idea is you have to return something like this:

    var myJson = {success:true};
    someRandomMethod(myJson); // someRandomMethod is the callback parameter
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Ext.util.json.encode to encode the column model from a jqgrid, and passing that
Using ExtJS 4.0.2 , I can type the following into the console: Ext.util.Format.date('2012-01-13', m-d-Y);
import cgi from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app
The Store var timesheet = new Ext.data.JsonStore( { root: 'timesheetEntries', url: 'php/scripts/timecardEntry.script.php', storeId: 'timesheet',
Ext-js Chart, I have a line graph, and I wish to add a single
Using ext/ldap I'm trying to add entries to an Active Directory. As long as
In EXT.Panel, there are two methods for collapsing/expanding a Panel. collapse(Boolean animate) and expand
ExtJS has Ext.each() function, but is there a map() also hidden somewhere? I have
I use Ext.form.ComboBox in very similar way as in this example: http://extjs.com/deploy/dev/examples/form/forum-search.html What annoys
I have an Ext TreePanel which I'm trying to add some server-side pagination to.

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.