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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:45:06+00:00 2026-05-26T04:45:06+00:00

I tried gmaps4rails on jQueryMobile Framework. One page is only link to gmaps page.

  • 0

I tried gmaps4rails on jQueryMobile Framework.

One page is only link to gmaps page.
Two page is gmaps4rails page.

jQueryMobile ajax page enabled.
From one page to two page don’t display gmaps.
But Two page direct access is success display gmaps.

This is my repository.
https://github.com/y-hirasawa/sample-jqm-map

I want to use ajax pages, and display gmaps.
Help me.

  • 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-26T04:45:07+00:00Added an answer on May 26, 2026 at 4:45 am
    • You need to include the googlemaps javascript files in your layout:
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.5&sensor=false&amp;libraries=geometry"></script>
    <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.5/src/infobox.js"></script>
    <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.1/src/markerclusterer.js"></script>
    <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/richmarker/src/richmarker-compiled.js"></script>
    
    • the map is created thanks to a window.onload callback. Since the page is already loaded, it fails. So you have to add a jquery mobile callback in your application.js:

    $(‘#gmaps’).live(‘pageshow’,function(event){

      Gmaps.loadMaps(); 
    

    });

    • If you want this to work, you have to set an id to the page containing the google map:
    <div class="page" data-role="page" id="gmaps">
    
    • Last, you must prevent double loading of scripts, so change your call to the gmaps4rails helper:

    <%= gmaps4rails(@json, false, false) %>

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

Sidebar

Related Questions

Tried to configure Spring for tests with hibernate and transactions. Getting bean from app
Tried the link http://railscasts.com/episodes/200-rails-3-beta-and-rvm gokul@gokul-laptop:~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] gokul@gokul-laptop:~$
Tried... <div data-role=page data-cache=30> <div data-role=page data-cache=never> <div data-role=page data-cache=false> <div data-role=page cache=false> Nothing
Tried for several times to get below Javscript to execute on page load. Currently
Tried to map it from Preferences -> Settings -> Keyboard, but the key combo
Tried on Dropbox forum but no luck: I'm reaching Dropbox API from Android, i
Tried this but only works for UIButton: [btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];
Tried using the following: Populate Listview from JSON To make a listview which uses
Tried to set some aliases in my .bashrc file. This one... export alias umusic=/Volumes/180
Tried thus query with SELECT * instead of DELETE FROM and it worked perfectly.

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.