rickert
9 Apr 2012, 11:51 PM
Hello i want a user to be able to click on a button inside a google maps infowindow and after the user pressed the button i want it to go to a detailview how do i do this?
currently this is my code in the view with the map:
infoWindow.content = '<div id=mapDetailviewText><div id=mapname onclick="'+ "var view = Ext.create('senchatest.view.Test'); Ext.Viewport.add(view); "
+'">'+ tank.get('naam')+ '</div>'
but this doesn't work how do i create a new view and make it the current view?
currently this is my code in the view with the map:
infoWindow.content = '<div id=mapDetailviewText><div id=mapname onclick="'+ "var view = Ext.create('senchatest.view.Test'); Ext.Viewport.add(view); "
+'">'+ tank.get('naam')+ '</div>'
but this doesn't work how do i create a new view and make it the current view?