Sampsa Sohlman Il y a 13 années Why do you do you namespace "<portlet:namespace />" javascript local variables? Porlet namespacing is only required for global variables.- Sampsa Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Sampsa Sohlman Il y a 13 années - Edité Hi Sampsa, Thanks. Good point. Namespace "<portlet:namespace />" is not required for JavaScript local variables. But in the portlet Google Maps V3, it would be better to have global variables using Porlet namespace in order to avoid any potential conflicts. Do you agree?Jonas Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sampsa Sohlman Jonas X. Yuan Il y a 13 années Hi JonasI agree with you that portlet namespace has to be used, but ONLY where needed ;) The svn attachment view.jsp is good code because it is dealing portlet namespace requirements, but code little bit ugly because there are too much <portlet:namespace /> pollution. To write cleaner code and avoid portlet namespace pollution you can wrap your code with closure.Wrapping to portlet JavaScript code to closure example:(function(window, namespace) { var wn = window[namespace]; wn.globalvariable = "I'm global variable"; var myValue = "I'm only visible inside closure"; wn.getMyValue = function() { return myValue; };})(window, "<portlet:namespace />");This also makes good minified result. I like to see all of my portlet JavaScript logic also to separated to own JavaScript file - Liferay has excellent .js file binding to portlet support. Because of that I have written a little framework http://code.google.com/p/jquery-portlet/ - but that is another story.Anyway, writing clean javascript portlet code could be good subject - Sampsa Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Sampsa Sohlman Il y a 13 années Nice! Thank you, Sampsa. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jonas X. Yuan Sampsa Sohlman Il y a 13 années - Edité Hi Sampsa, Thanks. Good point. Namespace "<portlet:namespace />" is not required for JavaScript local variables. But in the portlet Google Maps V3, it would be better to have global variables using Porlet namespace in order to avoid any potential conflicts. Do you agree?Jonas Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sampsa Sohlman Jonas X. Yuan Il y a 13 années Hi JonasI agree with you that portlet namespace has to be used, but ONLY where needed ;) The svn attachment view.jsp is good code because it is dealing portlet namespace requirements, but code little bit ugly because there are too much <portlet:namespace /> pollution. To write cleaner code and avoid portlet namespace pollution you can wrap your code with closure.Wrapping to portlet JavaScript code to closure example:(function(window, namespace) { var wn = window[namespace]; wn.globalvariable = "I'm global variable"; var myValue = "I'm only visible inside closure"; wn.getMyValue = function() { return myValue; };})(window, "<portlet:namespace />");This also makes good minified result. I like to see all of my portlet JavaScript logic also to separated to own JavaScript file - Liferay has excellent .js file binding to portlet support. Because of that I have written a little framework http://code.google.com/p/jquery-portlet/ - but that is another story.Anyway, writing clean javascript portlet code could be good subject - Sampsa Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Sampsa Sohlman Il y a 13 années Nice! Thank you, Sampsa. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Sampsa Sohlman Jonas X. Yuan Il y a 13 années Hi JonasI agree with you that portlet namespace has to be used, but ONLY where needed ;) The svn attachment view.jsp is good code because it is dealing portlet namespace requirements, but code little bit ugly because there are too much <portlet:namespace /> pollution. To write cleaner code and avoid portlet namespace pollution you can wrap your code with closure.Wrapping to portlet JavaScript code to closure example:(function(window, namespace) { var wn = window[namespace]; wn.globalvariable = "I'm global variable"; var myValue = "I'm only visible inside closure"; wn.getMyValue = function() { return myValue; };})(window, "<portlet:namespace />");This also makes good minified result. I like to see all of my portlet JavaScript logic also to separated to own JavaScript file - Liferay has excellent .js file binding to portlet support. Because of that I have written a little framework http://code.google.com/p/jquery-portlet/ - but that is another story.Anyway, writing clean javascript portlet code could be good subject - Sampsa Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Sampsa Sohlman Il y a 13 années Nice! Thank you, Sampsa. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jonas X. Yuan Sampsa Sohlman Il y a 13 années Nice! Thank you, Sampsa. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Sravani M Il y a 13 années How to install an OpenXava application on Liferay......?If i am follow the instructions given the liferay , but i am unable to integrate the liferay with openxava.I will follow the instruction of the following links as followshttp://www.liferay.com/community/wiki/-/wiki/Main/How+to+install+an+OpenXava+application+on+Liferayhttp://openxava.wikispaces.com/tomcat-liferay-setupIf any body integrate liferay with Openxava , Please Guide me the Detailed steps to integrate liferay with Openxava . Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Sravani M Il y a 13 années Hi Sravani, Thanks. Do you get any responses on your question - OpenXava application on Liferay? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sravani M Jonas X. Yuan Il y a 13 années Hi Jonas , I didn't get any response to that , if know the solution please Guide me the steps to get solution ........ Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jonas X. Yuan Sravani M Il y a 13 années Hi Sravani, Thanks. Do you get any responses on your question - OpenXava application on Liferay? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sravani M Jonas X. Yuan Il y a 13 années Hi Jonas , I didn't get any response to that , if know the solution please Guide me the steps to get solution ........ Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Sravani M Jonas X. Yuan Il y a 13 années Hi Jonas , I didn't get any response to that , if know the solution please Guide me the steps to get solution ........ Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Xinsheng Robert Chen Il y a 13 années Hi, Jonas, this is very interesting. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Markus Mueller Il y a 13 années Hi Jonas,thank you for that. But i cannot refer to view.jsp as mentioned above. Could you please provide a full Version of view.jsp because my Integrations seems to have some css z-layer issues ;-)Markus Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Markus Mueller Il y a 13 années Hi Markus, you can find view.jsp at http://www.liferay.com/c/document_library/get_file?p_l_id=5624309&groupId=31578&folderId=6815235&name=DLFE-85603.jsp. Note that above view.jsp is used for Google Maps JavaScript API V2 only.Thanks Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,I followed your example for Google Maps V3 integration with Liferay 6.0-EE, am unable to veiw or load the map with basic configuration, the issue am facing is that the Liferay portal gets struck and its unable to load the page further The code of my view.jsp as follows,<%@include file="mapInit.jsp"%><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><aui:script use="aui-base"> var map; /* * */ function intitialize() { alert("init map"); var latlng = new google.maps.LatLng(13.066202, 80.250263); var mapOptions = { zoom : 12, center : latlng, mapTypeId : google.maps.MapTypeId.ROADMAP, mapTypeControl : true, panControl : true }; map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); } google.load("maps", "3", { callback : intitialize });</aui:script><div id="map_canvas"></div>Am i missing something here ?ThanksKamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Kamesh Sampath Il y a 13 années Hi kamesh, thanks.You should use <script type="text/javascript">instead of <aui:script use="aui-base">Hope that it helps,Jonas Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,Thanks very much for the reply, after changing that to script it did work and i finally made it to work with the following code which will be part of view.jsp,<%@include file="mapInit.jsp"%><script> var map; function initialize() { //alert("Intialzing the maps working ...."); var myLatlng = new google.maps.LatLng(-34.397, 150.644); var storeMapOptions = { zoom : 8, center : myLatlng, mapTypeId : google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), storeMapOptions); } function initLoader() { var script = document.createElement("script"); script.src = "http://maps.google.com/maps/api/js?v=3.1&sensor=false&callback=initialize"; script.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(script); } </script><div id="map_canvas"></div><script>initLoader();</script>Dont know why didn't wok the previous way I also added the following css modification to make it work, otherwise the map gets loaded and not displayedCSS.map-portlet #map_canvas { height: 480px; width: 640px;}You can now later this to display the size its needed to beAnother questions1. I have is how do we contribute to the blogs ? I dont see any link to activate or register for the blog. 2. Any documentation available on usage of aui:script i have seen some wikis but really dont understand its importance and usage Thanks.Kamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Huy Nguyen Quang Kamesh Sampath Il y a 11 années Hello Kamesh. I write my portlet the same as you. But the maps cannot be displayed. So would you send me your sample project for me? I need it just for reference. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Carlos Fdo. Afanador M. Huy Nguyen Quang Il y a 11 années Hi Jonas...I'm wondering if you can help me with this issue. I'm trying to build a portlet in LF 6.1 as a plugin liferay ide and the simplest way of use the google map api v3 didn't not work for me...i have a portlet using Liferay MVC.In a simple jsp (and all the portlet is just this lines :S) i have:12<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=false" ></script>3<script type="text/javascript">45AUI().ready('event', 'node', function(A){6 var mapOptions = {7 center: new google.maps.LatLng(-34.397, 150.644),8 zoom: 8,9 mapTypeId: google.maps.MapTypeId.SATELLITE10 };11 var map = new google.maps.Map(A.one("#<portlet:namespace />map"), mapOptions);12});13 14</script>15<aui:form name="fm">16 <aui:fieldset>17 <aui:layout>18 <div class="maps-content" id="<portlet:namespace />map"></div>19 </aui:layout>20 </aui:fieldset>21</aui:form>Thanks in advance!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jonas X. Yuan Markus Mueller Il y a 13 années Hi Markus, you can find view.jsp at http://www.liferay.com/c/document_library/get_file?p_l_id=5624309&groupId=31578&folderId=6815235&name=DLFE-85603.jsp. Note that above view.jsp is used for Google Maps JavaScript API V2 only.Thanks Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,I followed your example for Google Maps V3 integration with Liferay 6.0-EE, am unable to veiw or load the map with basic configuration, the issue am facing is that the Liferay portal gets struck and its unable to load the page further The code of my view.jsp as follows,<%@include file="mapInit.jsp"%><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><aui:script use="aui-base"> var map; /* * */ function intitialize() { alert("init map"); var latlng = new google.maps.LatLng(13.066202, 80.250263); var mapOptions = { zoom : 12, center : latlng, mapTypeId : google.maps.MapTypeId.ROADMAP, mapTypeControl : true, panControl : true }; map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); } google.load("maps", "3", { callback : intitialize });</aui:script><div id="map_canvas"></div>Am i missing something here ?ThanksKamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Kamesh Sampath Il y a 13 années Hi kamesh, thanks.You should use <script type="text/javascript">instead of <aui:script use="aui-base">Hope that it helps,Jonas Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,Thanks very much for the reply, after changing that to script it did work and i finally made it to work with the following code which will be part of view.jsp,<%@include file="mapInit.jsp"%><script> var map; function initialize() { //alert("Intialzing the maps working ...."); var myLatlng = new google.maps.LatLng(-34.397, 150.644); var storeMapOptions = { zoom : 8, center : myLatlng, mapTypeId : google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), storeMapOptions); } function initLoader() { var script = document.createElement("script"); script.src = "http://maps.google.com/maps/api/js?v=3.1&sensor=false&callback=initialize"; script.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(script); } </script><div id="map_canvas"></div><script>initLoader();</script>Dont know why didn't wok the previous way I also added the following css modification to make it work, otherwise the map gets loaded and not displayedCSS.map-portlet #map_canvas { height: 480px; width: 640px;}You can now later this to display the size its needed to beAnother questions1. I have is how do we contribute to the blogs ? I dont see any link to activate or register for the blog. 2. Any documentation available on usage of aui:script i have seen some wikis but really dont understand its importance and usage Thanks.Kamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Huy Nguyen Quang Kamesh Sampath Il y a 11 années Hello Kamesh. I write my portlet the same as you. But the maps cannot be displayed. So would you send me your sample project for me? I need it just for reference. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Carlos Fdo. Afanador M. Huy Nguyen Quang Il y a 11 années Hi Jonas...I'm wondering if you can help me with this issue. I'm trying to build a portlet in LF 6.1 as a plugin liferay ide and the simplest way of use the google map api v3 didn't not work for me...i have a portlet using Liferay MVC.In a simple jsp (and all the portlet is just this lines :S) i have:12<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=false" ></script>3<script type="text/javascript">45AUI().ready('event', 'node', function(A){6 var mapOptions = {7 center: new google.maps.LatLng(-34.397, 150.644),8 zoom: 8,9 mapTypeId: google.maps.MapTypeId.SATELLITE10 };11 var map = new google.maps.Map(A.one("#<portlet:namespace />map"), mapOptions);12});13 14</script>15<aui:form name="fm">16 <aui:fieldset>17 <aui:layout>18 <div class="maps-content" id="<portlet:namespace />map"></div>19 </aui:layout>20 </aui:fieldset>21</aui:form>Thanks in advance!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,I followed your example for Google Maps V3 integration with Liferay 6.0-EE, am unable to veiw or load the map with basic configuration, the issue am facing is that the Liferay portal gets struck and its unable to load the page further The code of my view.jsp as follows,<%@include file="mapInit.jsp"%><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><aui:script use="aui-base"> var map; /* * */ function intitialize() { alert("init map"); var latlng = new google.maps.LatLng(13.066202, 80.250263); var mapOptions = { zoom : 12, center : latlng, mapTypeId : google.maps.MapTypeId.ROADMAP, mapTypeControl : true, panControl : true }; map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); } google.load("maps", "3", { callback : intitialize });</aui:script><div id="map_canvas"></div>Am i missing something here ?ThanksKamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Jonas X. Yuan Kamesh Sampath Il y a 13 années Hi kamesh, thanks.You should use <script type="text/javascript">instead of <aui:script use="aui-base">Hope that it helps,Jonas Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,Thanks very much for the reply, after changing that to script it did work and i finally made it to work with the following code which will be part of view.jsp,<%@include file="mapInit.jsp"%><script> var map; function initialize() { //alert("Intialzing the maps working ...."); var myLatlng = new google.maps.LatLng(-34.397, 150.644); var storeMapOptions = { zoom : 8, center : myLatlng, mapTypeId : google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), storeMapOptions); } function initLoader() { var script = document.createElement("script"); script.src = "http://maps.google.com/maps/api/js?v=3.1&sensor=false&callback=initialize"; script.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(script); } </script><div id="map_canvas"></div><script>initLoader();</script>Dont know why didn't wok the previous way I also added the following css modification to make it work, otherwise the map gets loaded and not displayedCSS.map-portlet #map_canvas { height: 480px; width: 640px;}You can now later this to display the size its needed to beAnother questions1. I have is how do we contribute to the blogs ? I dont see any link to activate or register for the blog. 2. Any documentation available on usage of aui:script i have seen some wikis but really dont understand its importance and usage Thanks.Kamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Huy Nguyen Quang Kamesh Sampath Il y a 11 années Hello Kamesh. I write my portlet the same as you. But the maps cannot be displayed. So would you send me your sample project for me? I need it just for reference. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Carlos Fdo. Afanador M. Huy Nguyen Quang Il y a 11 années Hi Jonas...I'm wondering if you can help me with this issue. I'm trying to build a portlet in LF 6.1 as a plugin liferay ide and the simplest way of use the google map api v3 didn't not work for me...i have a portlet using Liferay MVC.In a simple jsp (and all the portlet is just this lines :S) i have:12<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=false" ></script>3<script type="text/javascript">45AUI().ready('event', 'node', function(A){6 var mapOptions = {7 center: new google.maps.LatLng(-34.397, 150.644),8 zoom: 8,9 mapTypeId: google.maps.MapTypeId.SATELLITE10 };11 var map = new google.maps.Map(A.one("#<portlet:namespace />map"), mapOptions);12});13 14</script>15<aui:form name="fm">16 <aui:fieldset>17 <aui:layout>18 <div class="maps-content" id="<portlet:namespace />map"></div>19 </aui:layout>20 </aui:fieldset>21</aui:form>Thanks in advance!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Jonas X. Yuan Kamesh Sampath Il y a 13 années Hi kamesh, thanks.You should use <script type="text/javascript">instead of <aui:script use="aui-base">Hope that it helps,Jonas Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,Thanks very much for the reply, after changing that to script it did work and i finally made it to work with the following code which will be part of view.jsp,<%@include file="mapInit.jsp"%><script> var map; function initialize() { //alert("Intialzing the maps working ...."); var myLatlng = new google.maps.LatLng(-34.397, 150.644); var storeMapOptions = { zoom : 8, center : myLatlng, mapTypeId : google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), storeMapOptions); } function initLoader() { var script = document.createElement("script"); script.src = "http://maps.google.com/maps/api/js?v=3.1&sensor=false&callback=initialize"; script.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(script); } </script><div id="map_canvas"></div><script>initLoader();</script>Dont know why didn't wok the previous way I also added the following css modification to make it work, otherwise the map gets loaded and not displayedCSS.map-portlet #map_canvas { height: 480px; width: 640px;}You can now later this to display the size its needed to beAnother questions1. I have is how do we contribute to the blogs ? I dont see any link to activate or register for the blog. 2. Any documentation available on usage of aui:script i have seen some wikis but really dont understand its importance and usage Thanks.Kamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Huy Nguyen Quang Kamesh Sampath Il y a 11 années Hello Kamesh. I write my portlet the same as you. But the maps cannot be displayed. So would you send me your sample project for me? I need it just for reference. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Carlos Fdo. Afanador M. Huy Nguyen Quang Il y a 11 années Hi Jonas...I'm wondering if you can help me with this issue. I'm trying to build a portlet in LF 6.1 as a plugin liferay ide and the simplest way of use the google map api v3 didn't not work for me...i have a portlet using Liferay MVC.In a simple jsp (and all the portlet is just this lines :S) i have:12<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=false" ></script>3<script type="text/javascript">45AUI().ready('event', 'node', function(A){6 var mapOptions = {7 center: new google.maps.LatLng(-34.397, 150.644),8 zoom: 8,9 mapTypeId: google.maps.MapTypeId.SATELLITE10 };11 var map = new google.maps.Map(A.one("#<portlet:namespace />map"), mapOptions);12});13 14</script>15<aui:form name="fm">16 <aui:fieldset>17 <aui:layout>18 <div class="maps-content" id="<portlet:namespace />map"></div>19 </aui:layout>20 </aui:fieldset>21</aui:form>Thanks in advance!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Kamesh Sampath Jonas X. Yuan Il y a 13 années Hi Jonas,Thanks very much for the reply, after changing that to script it did work and i finally made it to work with the following code which will be part of view.jsp,<%@include file="mapInit.jsp"%><script> var map; function initialize() { //alert("Intialzing the maps working ...."); var myLatlng = new google.maps.LatLng(-34.397, 150.644); var storeMapOptions = { zoom : 8, center : myLatlng, mapTypeId : google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), storeMapOptions); } function initLoader() { var script = document.createElement("script"); script.src = "http://maps.google.com/maps/api/js?v=3.1&sensor=false&callback=initialize"; script.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(script); } </script><div id="map_canvas"></div><script>initLoader();</script>Dont know why didn't wok the previous way I also added the following css modification to make it work, otherwise the map gets loaded and not displayedCSS.map-portlet #map_canvas { height: 480px; width: 640px;}You can now later this to display the size its needed to beAnother questions1. I have is how do we contribute to the blogs ? I dont see any link to activate or register for the blog. 2. Any documentation available on usage of aui:script i have seen some wikis but really dont understand its importance and usage Thanks.Kamesh Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Huy Nguyen Quang Kamesh Sampath Il y a 11 années Hello Kamesh. I write my portlet the same as you. But the maps cannot be displayed. So would you send me your sample project for me? I need it just for reference. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Carlos Fdo. Afanador M. Huy Nguyen Quang Il y a 11 années Hi Jonas...I'm wondering if you can help me with this issue. I'm trying to build a portlet in LF 6.1 as a plugin liferay ide and the simplest way of use the google map api v3 didn't not work for me...i have a portlet using Liferay MVC.In a simple jsp (and all the portlet is just this lines :S) i have:12<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=false" ></script>3<script type="text/javascript">45AUI().ready('event', 'node', function(A){6 var mapOptions = {7 center: new google.maps.LatLng(-34.397, 150.644),8 zoom: 8,9 mapTypeId: google.maps.MapTypeId.SATELLITE10 };11 var map = new google.maps.Map(A.one("#<portlet:namespace />map"), mapOptions);12});13 14</script>15<aui:form name="fm">16 <aui:fieldset>17 <aui:layout>18 <div class="maps-content" id="<portlet:namespace />map"></div>19 </aui:layout>20 </aui:fieldset>21</aui:form>Thanks in advance!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Huy Nguyen Quang Kamesh Sampath Il y a 11 années Hello Kamesh. I write my portlet the same as you. But the maps cannot be displayed. So would you send me your sample project for me? I need it just for reference. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Carlos Fdo. Afanador M. Huy Nguyen Quang Il y a 11 années Hi Jonas...I'm wondering if you can help me with this issue. I'm trying to build a portlet in LF 6.1 as a plugin liferay ide and the simplest way of use the google map api v3 didn't not work for me...i have a portlet using Liferay MVC.In a simple jsp (and all the portlet is just this lines :S) i have:12<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=false" ></script>3<script type="text/javascript">45AUI().ready('event', 'node', function(A){6 var mapOptions = {7 center: new google.maps.LatLng(-34.397, 150.644),8 zoom: 8,9 mapTypeId: google.maps.MapTypeId.SATELLITE10 };11 var map = new google.maps.Map(A.one("#<portlet:namespace />map"), mapOptions);12});13 14</script>15<aui:form name="fm">16 <aui:fieldset>17 <aui:layout>18 <div class="maps-content" id="<portlet:namespace />map"></div>19 </aui:layout>20 </aui:fieldset>21</aui:form>Thanks in advance!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Carlos Fdo. Afanador M. Huy Nguyen Quang Il y a 11 années Hi Jonas...I'm wondering if you can help me with this issue. I'm trying to build a portlet in LF 6.1 as a plugin liferay ide and the simplest way of use the google map api v3 didn't not work for me...i have a portlet using Liferay MVC.In a simple jsp (and all the portlet is just this lines :S) i have:12<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=my_key&sensor=false" ></script>3<script type="text/javascript">45AUI().ready('event', 'node', function(A){6 var mapOptions = {7 center: new google.maps.LatLng(-34.397, 150.644),8 zoom: 8,9 mapTypeId: google.maps.MapTypeId.SATELLITE10 };11 var map = new google.maps.Map(A.one("#<portlet:namespace />map"), mapOptions);12});13 14</script>15<aui:form name="fm">16 <aui:fieldset>17 <aui:layout>18 <div class="maps-content" id="<portlet:namespace />map"></div>19 </aui:layout>20 </aui:fieldset>21</aui:form>Thanks in advance!! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Sohui Gu Carlos Fdo. Afanador M. Il y a 11 années Nice article. It's very helpful. Thanks, Jonas. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Ashish Sharma Il y a 9 années Hi Jonas,nice blog.how can i display alpha numeric values for captcha in liferay? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler