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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:27:39+00:00 2026-06-15T09:27:39+00:00

I have map where a person can click on a marker location to view

  • 0

I have map where a person can click on a marker location to view a building on my University’s campus. http://mypower.herokuapp.com/map

Users can then, click on either the picture or title, which both link to the energy usage graph page.

However, when I try to do this from the maps page, the buildings graph page is missing the graph and other graphics elements. In addition, when I click on the tab on the lower left hand corner that says ‘graph’ of the graph page, it leads me back to the map page, which isn’t supposed to happen.

Now, when I do all of this, but then manually refresh the broken graph page I’m on, the page looks great (the way it should look like).

Using a combination of html and a little ruby, I create a string of the html for the contents of the popup windows of a map marker.

  def gmaps4rails_infowindow
    "<center><a href=\"/halls/#{self.id}/\"> #{self.name}</a>
     <br>
     <a href=\"/halls/#{self.id}\"><img src= \"/smallbuildings/#{self.name}.jpg\"></a></center>"
  end

Clicking on the link goes to the right page. The graphic elements just aren’t rendered for some reason.

  • 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-15T09:27:40+00:00Added an answer on June 15, 2026 at 9:27 am

    Adding target="_parent" fixed everything.

    def gmaps4rails_infowindow
        "<center><a href=\"/halls/#{self.id}/\" target=\"_parent\"> #{self.name}</a>
         <br>
         <a href=\"/halls/#{self.id}\" target=\"_parent\"><img src= \"/smallbuildings/#{self.name}.jpg\"></a></center>"
      end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have image map that can I move, but this map will be so
I have read that I can create an implementation of javax.ws.rs.ext.ExceptionMapper that will map
I have a Django project that has two models: Group and Person. Groups can
This will explain better what I want than my words: http://jquery-image-map.ssdtutorials.com/ Even though the
I have map.resources :posts and I want to be able to serve post bodies
I have map with multiple different colors markers with some info window. Everything works
I want to display google map in Android ,i have map API even map
I have a Map and a List . The List should be sorted based
I have a map of the UK broken down into various geographic regions. I
I have a map that i want to update from a separate thread. Im

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.