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
Javascript on HTML Component Page not working
-
- Posts: 0
- Joined: Wed Nov 19, 2014 5:15 pm
-
- 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.
I really need help.
Javascript on HTML Component Page not working
Poll you can do try this.
Method 1: Comment this out
code
<script src="https://maps.googleapis.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.maps.event.addDomListener(window, 'load', initialize);
/code
change this to
code
google.maps.event.addDomListener(window, 'load', initialize());
/code
wherever you have used it
Method 1: Comment this out
code
<script src="https://maps.googleapis.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.maps.event.addDomListener(window, 'load', initialize);
/code
change this to
code
google.maps.event.addDomListener(window, 'load', initialize());
/code
wherever you have used it
-
- 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
-
- 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