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 450363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:51:42+00:00 2026-05-12T21:51:42+00:00

I’m building a mobile web application that may or may not rely on ajax,

  • 0

I’m building a mobile web application that may or may not rely on ajax, depending on whether the user’s browser supports javascript. Since I’m using JQuery, I want to make sure the mobile browser supports AJAX through JQuery before enabling my AJAX functionality.

I’m running into a problem with Opera Mini because of the way it renders pages, and I’m not sure how to check it. Here’s the code I’m using to test for AJAX:

$(document).ready(function () {
    $.get(
        'test.txt',
        function() {
            init_ajax();
        }
    );
});

Where init_ajax() enables my ajax functionality and disables my static functionality.

The problem is, Opera Mini runs this code successfully before outputting the page to the browser, but then ajax does not actually work on the rendered page. I tried running this function in a setTimeout instead of on document.ready, but encountered the same problem.

Is there a universal way to accurately test for the presence of AJAX in mobile browsers?

P.S. If you want to test your solution in Opera Mini, there’s a fully functional emulator here:

http://www.opera.com/mini/demo/

[Edit] I should mention that this application needs to make an ajax call approximately once per minute using setInterval, so even though Opera Mini does support some ajax when it is triggered by an onclick, I don’t believe there’s any way to make it support ajax calls made at a certain interval. If we could test for this, that would likely solve the problem above.

  • 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-12T21:51:42+00:00Added an answer on May 12, 2026 at 9:51 pm

    Doesn’t Opera Mini retrieve web requests on Operas’ servers render the pages and then deliver the output (in the form of images and text) to the target with reduced functionality? With the rendering happening on the Opera Mini Server farm hence no real back and forth communication between the client and the Web server, you can’t actually do ajax.

    You probably need another method of performing the check for Opera Mini, looking at the user-agent for “Opera Mini/1.2” would be ideal. As for performing a check for mobile browsers, well, it depends upon the scope of the functionality provided by the mobile browser. Sometimes you just can’t check and will have to pull out particular mobile browsers by name.

    More info here Designing With Opera Mini in Mind.

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

Sidebar

Ask A Question

Stats

  • Questions 259k
  • Answers 259k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can easily host a Windows Communication Foundation Web service… May 13, 2026 at 11:13 am
  • Editorial Team
    Editorial Team added an answer As well as adding the CSS style background-color:transparent; to the… May 13, 2026 at 11:13 am
  • Editorial Team
    Editorial Team added an answer I've got a full example working from there and adapted… May 13, 2026 at 11:13 am

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.