Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

Javascript on HTML Component Page not working

Hello Poll.
We do not recommend our users to change source files of the project, cause it can lead to unpredictable behavior.

You need to place all js code to page show event handler

Poll David
Posts: 0
Joined: Sat Jan 24, 2015 5:22 am

Javascript on HTML Component Page not working

So what might be your suggestion on how am i going to implement this?

I really need help.

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Javascript on HTML Component Page not working

Poll you can do try this.

Method 1: Comment this out
code
<script src="https:&#47;&#47;maps&#46;googleapis&#46;com/maps/api/js?sensor=false&libraries=geometry,places"></script>
/code

  • That is don't include the libraries and give it a try. I guess once you include the map component it is taken care of. Alternatively you can also experiment by adding the library as an external resource. That'll need some experimentation.

    And 2)
    code
    google&#46;maps&#46;event&#46;addDomListener(window, 'load', initialize);
    /code

    change this to
    code
    google&#46;maps&#46;event&#46;addDomListener(window, 'load', initialize());
    /code

    wherever you have used it

Poll David
Posts: 0
Joined: Sat Jan 24, 2015 5:22 am

Javascript on HTML Component Page not working

place.geometry.location).toFixed(2) +"" meters/td/tr""; map.fitBounds(bounds); } google.maps.event.addDomListener(window

Poll David
Posts: 0
Joined: Sat Jan 24, 2015 5:22 am

Javascript on HTML Component Page not working

the HTML table looks fine.. But if I search again

Return to “Issues”