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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:51:50+00:00 2026-06-07T13:51:50+00:00

How to use window.location method in jquery mobile. As am i developing an app

  • 0

How to use window.location method in jquery mobile. As am i developing an app using jquery mobile i need to change from one html page to other html page where i need to use window.location(). I know that to use

  $.mobile.changePage( "page", { transition: "slide"} ); 

But here when using changePage() method getting problem with some js files. So, i thought of going to window.location() method.

As i am using the code is…

index.html

<section id="previewPage" data-role="page">
  <div data-role="content" id="previewId" class="previewScreen">
    <select name="select-choice-0" id="select-choice-1" data-native-menu="false">
        <option value="email">Share via Email</option>
        <option value="bbm" data-location='bbmIntegration.html'>Share via BBM</option>
        <option value="sms">Share via SMS</option>
        <option value="facebook">Share via Facebook</option>
        <option value="twitter">Share via Twitter</option>
        <option value="google">Share via Google</option>
    </select>                       
  </div>
</section>

sharingScreen.js

$('#select-choice-1').change(function() {
     window.location = $(this).data('location');
    //window.location = $('#select-choice-1').data('location')  
  });

When i click on Share via BBM , my html page needs to navigate to bbmIntegration.html page. But when i am running this in chrome browser when i click on Share via BBM it is displaying as “File /BBM/sample/www/undefined not found”. can anyone please help me with this where i am doing the mistake…

Thanks in advance………

  • 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-07T13:51:52+00:00Added an answer on June 7, 2026 at 1:51 pm
    Try this:
    
      $('#select-choice-1').change(function() {
        window.location = $(this).find("option:selected").data('location');
    
      });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my PhoneGap/jQuery Mobile app, I'm currently using PhoneGaps' Camera API to allow the
Usually one would use: document.location = 'http://www.mozilla.org'; or window.frames[0].location.href = 'http://www.google.com/'; But the window
What's the preferred method to use to change the location of the current web
I am using the window location method to redirect a webpage to another after
Normally we use window.location.href=/index.php?querystring; in javascript. Is there a way to send the querystring
When I Use window.location = '<%= Url.Action(DownloadFile, Home) %>?fileId=id, I am getting the contents
when ever i use window.location.href=//some url it always open a new window, this only
I know I can use window.location.pathname to return a url, but how do I
I' trying to use window.pageYOffset & window.scrollMaxY to calculate the current page progress. This
I'm using jQuery to bind to all links on the page (I'm using the

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.