Page 1 of 1

Phova Maps Javasript Bug

Posted: 04 Jun 2021, 16:26
by Goggo
Hello Jan,

we have had the following problem with the Phocamaps extension for a few days:

If the address window can be seen (is switched to /opened) on the map, the browser jumps to this opened window as if it were a jump label.
But this is not wanted - we have identified the following Javascript in the Phoca Maps extension.
May you help us to fix the problem - for testing feel free to look at test.im-muenchen.de - the map-adress-window is now opened…

function initMapPlgPM1() {
tstPhocaMapPlgPM1.setAttribute("oldValuePlgPM1",0);
tstPhocaMapPlgPM1.setAttribute("refreshMapPlgPM1",0);
tstIntPhocaMapPlgPM1 = setInterval("CheckPhocaMapPlgPM1()",500);
}
//]]></script>
<noscript><p class="p-noscript">JavaScript must be enabled in order for you to use Google Maps. However, it seems JavaScript is either disabled or not supported by your browser. To view Google Maps, enable JavaScript by changing your browser options, and then try again.</p><p>&nbsp;</p></noscript>

<div style="clear:both"></div></div> </div></div></div></div></section> <script type="text/javascript">//<![CDATA[
function initMapsComcontentarticle89() {
initMapPlgPM1();
}
//]]></script>

Best regards

Gregor

Re: Phova Maps Javasript Bug

Posted: 07 Jun 2021, 17:09
by Jan
Hi, can you paste a screenshot or animated gif, what do you exactly mean?

I don't fully understand this:
"If the address window can be seen (is switched to /opened) on the map, the browser jumps to this opened window as if it were a jump label."

Jan

Re: Phova Maps Javasript Bug

Posted: 07 Jun 2021, 22:45
by christine
Hi Gregor,

Tried something and saw, that if I remove temporarily position:fixed; from this CSS: template-16.css, line 8974

Code: Select all

.affix {
    position: fixed;
    display: flex;
    align-items: center;
    width: 100%;
    top: 0px;
    left: inherit;
    height: 50px;
}
than it will not jump.

Also: if you click on:
Image

it works. It's like an "Anker", you see it in browser: .......de/#

Kind regards
Christine

Re: Phova Maps Javasript Bug

Posted: 08 Jun 2021, 22:06
by christine
Hallo Gregor,

wir haben einen ähnlichen Fall (unterhalb von Deinem Thread). Vielleicht hilft Dir dieser:
viewtopic.php?f=38&t=62520&start=10, also:

Image

Image

Liebe Grüße
Christine