Google maps not showing when clicking on href link - javascript

I have integrated google maps in one of my web app page(Say, pageA). Web app is implemented in RoR and I am working on localhost/development phase for now.
Interesting thing is that google map does not display correctly when I reach to pageA by clicking on some href link but it displays correctly when I refresh the page(pageA)
I do not know in which direction I should start by debugging. Is it browser or cache or something else?
I hope that code part does not have anything to do with this problem since it is opening while refreshing the page. Having said that, I would be happy to share the code part in case someone want to have a look at it.

Related

How to found which script is run when i click anywhere in website?

Actually, I am working on a WordPress website and I use a theme for it. The problem is that daily I open first time my website and click anywhere in the body it open google ads in new browser window like facebook, jabong and all. So how to remove that. And also after every cleaning browser cookies and history process same issue, I get. Please let me know how to fix it and how to determine what function run when I click?
Thanks in Advance.

Make Google Bot detect AJAX contents

I'm developing a site (not mine) and I encountered a big trouble!
In this website I've got some modals that will open after a user clicks on a product, but I need to do so Google Bot detects these modals like pages. When a modal opens, a JS Function adds a # parameter to the URL like "#abc=modal_one".
I want that in Google Result appears this page as "www.test.com/page.php?#abc=modal_one". I've tried (and I'm trying) to render the page like Google Bot in Google Search Console, but GSC opens only the page and not the modal. I also added a ES6 (JS) code that just edits the page title when the modal is showing to the user (after user clicks to open the modal) but nothing, Google does not detect the page title set after the page is loaded.
If you can't understand something just tell me and I will try to explain my trouble newly.
Thanks in advance to all the StackOverflow community :)
Try exporting the various pages to a dynamic sitemap that Google can read.
View the Categorize parameters with the URL Parameters tool page for more information.

web app opening external URL without leaving web app

I have a web app. The web app is added to home screen on iPhone. I have many external resources(Links) in my web app. Every time a link is clicked, it opens the web browser because target is set to _blank and there is no way for the user to go back. is it possible that the user will be able to open any of these resources without leaving my web app?
I was thinking of doing the following:
creating an iframe and have the links open within that iframe. I am hoping that there is something better out there.
If you still not sure what is it that I want?
a good example would be, if you look at facebook's native app for iPhone when you click on an article that someone posted, it opens the link within a frame that allow you to go back to your last page. In other words, you never leave their app. I understand that it is a native app and it is completely different but I believe that with JQuery Mobile or just JQuery it is possible. Am I wrong?

Can google crawl my website if I change link urls with javascript on the front end

I am building a website with buttons. When a user clicks a button, the URLs of other links and buttons are changed with jQuery.
Would Google be able to crawl my site effectively, or would I have to use forms?
You can't expect Google crawlers to click all your buttons and discover every URL you want to be searchable. You CAN, however, submit a sitemap to google that tells them explicitly how your site is organized.
Search around online for Google webmaster tools. I'm not an expert on it, but I suspect you'll find what you're looking for.
Google can navigate through your hrefs, but it won't crawl dynamically loaded content resulting from button clicks.
Here's a link that explains how to create/submit a sitemap through Google. This is your best bet for making sure you cover all your bases: https://support.google.com/sites/answer/100283?hl=en

Facebook Like Button Grabbing Content From Wrong Page

On my site, I've implemented some facebook like buttons on the articles which works for all of them but one. If you 'like' an article, such as this one then it works fine and grabs the right image, right content and puts them on my facebook profile. However, when I 'like' this one it grabs the content and the url of the home page, made worse by the carousel on the homepage which means that it gets content from that and not even the intro text there.
This has been driving me crazy. Please help me.
Next time this happens, use the Facebook Linter tool to debug it and clear any info Facebook has cached. I did this for your URL and it should be working now.

Categories

Resources