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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:27:13+00:00 2026-06-08T17:27:13+00:00

I am building a semi dynamic app in html5 w/jquerymobile, target atm. is iOS

  • 0

I am building a semi dynamic app in html5 w/jquerymobile, target atm. is iOS to begin with.
But the problem is that i need to contact a webservice with a (request)header paramater, and this is not doable.

My question might be very elementary, but since i’m developing in netbeans i ran into the problem of not being able to get data from crossdomain.

(Getting to the point). In phonegap/{non native “offline” apps}. How do i set the domain/is there a workaround for making http get/post requests with headerparams?

  • 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-06-08T17:27:15+00:00Added an answer on June 8, 2026 at 5:27 pm

    If you are using Phonegap the web application will run off of the file:// protocol and is not bound by cross domain restrictions.

    EDIT:
    If you are using jQuery Mobile and Phonegap you will need to set $.support.cors and $.mobile.allowCrossDomainPages to true.

    From the jQueryMobile docs:

    Since jQuery Mobile relies on jQuery core’s $.ajax() functionality, $.support.cors must be set to true to tell $.ajax to load cross-domain pages. We’ve heard reports that webviews on some platforms, like BlackBerry, support cross-domain loading, but that jQuery core incorrectly sets $.support.cors value to false which disables cross-domain $.ajax() requests and will cause the page or assets to fail to load.

        $(document).bind( "mobileinit", function(){
            $.support.cors = true;
            $.mobile.allowCrossDomainPages = true;       
        }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building a semi-small ruby app for a project. The problem I'm currently
I am semi-new to ASP.NET MVC. I am building an app that is used
Building a Silverlight 5 app that runs in the browser but getting some nagging
Building my first WP theme and I quickly realized that I need to remove
Building an app with the Facebook JavaScript API that will embedded into a page
I have a semi-complex application i'm building that has various wizards and screens. I
Building a quick view that will display a list of all days but only
Building a lottery scratch-card app in Java. Have allot of it done, just need
I'm building a semi-elaborate RadGrid where within my NestedViewTemplate I want to have a
I am building a website and I would like to add a dark semi-transparent

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.