[TYPO3-mvc] ODP: Fluid objects inside javascript doesn't work

Dawid Pacholczyk dpacholczyk at gmail.com
Sun Nov 14 00:51:44 CET 2010


Check the viewhelper. Does he returns correct value?

Best regards,
Dawid Pacholczyk


----- Wiadomosc oryginalna -----
Od: Fernando Arconada <falcifer2001 at yahoo.es>
Wyslano: niedziela, 14 lis 2010 00:14
Do: typo3-project-typo3v4mvc at lists.typo3.org
Temat: [TYPO3-mvc]  Fluid objects inside javascript doesn't work

My fluid variable {map.zoom} inside this block of javascript doesnt work 
(doesnt return its value). Ideas? Alternative syntax?

<script type="text/javascript">
(function() {
	window.onload = function() {
		var mapDiv = document.getElementById
('map-39c3b9f0d181f0eb9e89531043148975');
		var latlng = new google.maps.LatLng(0,0);
		var options = {
			 center: latlng,
			 zoom: {map.zoom},
			 mapTypeId: google.maps.MapTypeId.ROADMAP,
			 mapTypeControlOptions: {
				style: 
google.maps.MapTypeControlStyle.DROPDOWN_MENU,
				position: google.maps.ControlPosition.TOP,
				},
			navigationControl: true,
			navigationControlOptions: {
			style: google.maps.NavigationControlStyle.ANDROID
			 }
		};
		var map = new google.maps.Map(mapDiv, options);
		// Adding a marker to the map
		var marker = new google.maps.Marker(Array);

	}
})();
</script>
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list