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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:57:30+00:00 2026-06-02T18:57:30+00:00

I have a pretty basic jquery mobile page, it’s 3 data-role:page divs in one

  • 0

I have a pretty basic jquery mobile page, it’s 3 data-role:page divs in one index.php. The first page is simply a background image and an input type="tel" with position:fixed in the center of the screen. If I load the site directly on the iPhone the style and positioning are all correct.

However, people will reach the site through an external link that passes in a parameter (e.g. ?event=123123123, a random string). When loading this way, the first page ALWAYS loads un-styled, i.e. the input box is ignoring all css, both the jquery.css and my own, whether it’s inline, declared in the head, loaded from an external file, etc. If I refresh the page, then the style kicks in and it looks like it’s supposed to.

I’ve tried basically everything I can think of (and lots of things that probably don’t even make sense) like binding to pagebeforeload, pageinit, pageshow etc. like for example:

$( '#step1' ).live( 'pagebeforecreate',function(event){
 // alert( 'This page was just enhanced by jQuery Mobile!' );

 $('<div id="formbox"><form><input type="tel" name="number" id="number" value="" style="width:87%; height:40px; font-size:36px; font-weight: bold; left:14px; position:relative; text-align:center;" /></form></div>').appendTo('#formboxouter');
 // var $container = $('#step1');
 // refreshStyles($container);
 $('#formbox').trigger('create');
 // $( window.document ).trigger( "mobileinit" );
});

I’ve reached the ‘throw everything at the wall and see what sticks’ phase of frustration and, well, nothing has stuck.

I’ve found lots of info about ways to modify internal links (e.g. rel=external) but I’ve found nothing that seems to explain why this could happen.

Why is it that passing an external parameter would cause the styles not to load?

  • 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-02T18:57:31+00:00Added an answer on June 2, 2026 at 6:57 pm

    You may want to read the documentation for JQM regarding parameters. Also try $('.ui-page').trigger('create'); instead of $('#formbox').trigger('create');

    Passing parameters between pages

    jQuery Mobile does not support query
    parameter passing to internal/embedded pages. For example, if the
    framework sees a link to "#somePage?someId=1" it interpret that as
    "#somePage" and navigate to the internal page div with an ID of
    somePage and apply a data-url of #somePage?someId=1 to that page
    container. Subsequent calls to other params such as
    "#somePage?someId=2" will find the same div because jQuery Mobile
    refers to the data-url on the div which is only set once and will
    remain at #somePage?someId=1.

    There are two plugins that you can add to your project if query
    parameters are needed between pages. There is a lightweight page
    params plugin
    and a more fully featured jQuery Mobile router plugin
    for use with backbone.js or spine.js.

    info source

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

Sidebar

Related Questions

Pretty basic programming question, I know PHP have a function for it, but does
I have a pretty basic jquery script which uses an h2 as a trigger
I have a pretty basic jQuery ajax thing happening, but I want to mix
i have a pretty basic jquery question. im trying to add jscrollpane to my
I have some pretty basic jQuery code: ... $(this).find('img').load(function(){ loadedImages++; if(loadedImages == $this.find('img').length){ ...
I have a pretty basic problem I can't figure out when using jQuery simplemodal:
I might have pretty basic question about regex. I have the following regex, which
I have a pretty basic windows form app in .Net. All the code is
I have a pretty basic challenge-based iPhone game, and I wanted to know what
I have a pretty basic doubt on dirty read/writes to a value stored in

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.