|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
embedding google mapsHi,
I'm trying to figure out how to embed a google maps map into a qooxdoo application. I found a piece of code in the groups: google.load("maps", "2.x"); this.__view = new qx.ui.embed.Html(); this.__view.addListenerOnce("appear", function(e) { this.map = new google.maps.Map2(this.__view.getContentElement().getDomElement()); this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13); }, this); But this leads to a "doc.body is null" exception in the Viewport.js file. Where does this come from and what's wrong with this code? Also I can't unit test the google maps view class, because it tells me in the unit test that google ist not defined. Which makes sence since it has to be included in the index.html but even putting the <script type="text/javascript" src="http://www.google.com/jsapi? key=MYKEYHERE"></script> in the index-source.html of the test-unit doesn't do the trick. Any idea how you can include other js files into the unit testing framework? Thanks for your help, Michael ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: embedding google mapsHi Michael,
Michael Ochs schrieb: > Hi, > > I'm trying to figure out how to embed a google maps map into a qooxdoo > application. I found a piece of code in the groups: > > google.load("maps", "2.x"); > > this.__view = new qx.ui.embed.Html(); > this.__view.addListenerOnce("appear", function(e) { > this.map = new > google.maps.Map2(this.__view.getContentElement().getDomElement()); > this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13); > }, this); > > But this leads to a "doc.body is null" exception in the Viewport.js > file. Where does this come from and what's wrong with this code? http://www.nabble.com/Attach-google-maps-td19943337.html Is this the thread where you got the code? Did you go through all the steps described there? > Also I can't unit test the google maps view class, because it tells me > in the unit test that google ist not defined. Which makes sence since > it has to be included in the index.html but even putting the <script > type="text/javascript" src="http://www.google.com/jsapi? > key=MYKEYHERE"></script> in the index-source.html of the test-unit > doesn't do the trick. Any idea how you can include other js files into > the unit testing framework? Try including in the script in test/html/tests-source.html, that's the HTML file for the test application. test/index-source.html is for the Test Runner GUI. Regards, Daniel > Thanks for your help, > Michael > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: embedding google mapsHi,
I tried importing the google script into the html/index-source.html and it works fine. Thanks for that. But the firefox is always "waiting for gg.google.com" and doesn't do anything whereas safari is done with the test almost instantly. Any idea on that one? Anyway, there still is the error, that say "doc.body is null" in the Viewport.js on line 83 when I start the main application. But as the test runs well in safari, I'm not sure if this problem has something to do with the embedded html. All I'm doing in my MapView.js (singleton) is the following: construct : function() { this.base(arguments); google.load("maps", "2"); this.__view = new qx.ui.embed.Html(); this.__view.addListenerOnce("appear", function(e) { this.map = new google.maps.Map2(this.__view.getContentElement().getDomElement()); this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13); }, this); }, members: { map : null } For me that seems to be exactly the stuff thats posted on the website you linked in your mail. Thats the whole class. It inherits from my BaseView class but there is nothing used from this class at this point of development. In the Application.js all I'm doing is the following: members : { main : function() { this.base(arguments); if (qx.core.Variant.isSet("qx.debug", "on")) { qx.log.appender.Native; qx.log.appender.Console; } var mapView = mapblog.content.MapView.getInstance(); //.getView(); var doc = this.getRoot(); } } There is a var called doc, but even if I comment it out the error occures, so it seems like another dov var is ment by the error. Any ideas? Best regards, Michael Am 04.08.2009 um 12:32 schrieb Daniel Wagner: > Hi Michael, > > Michael Ochs schrieb: >> Hi, >> >> I'm trying to figure out how to embed a google maps map into a >> qooxdoo >> application. I found a piece of code in the groups: >> >> google.load("maps", "2.x"); >> >> this.__view = new qx.ui.embed.Html(); >> this.__view.addListenerOnce("appear", function(e) { >> this.map = new >> google.maps.Map2(this.__view.getContentElement().getDomElement()); >> this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), >> 13); >> }, this); >> >> But this leads to a "doc.body is null" exception in the Viewport.js >> file. Where does this come from and what's wrong with this code? > > http://www.nabble.com/Attach-google-maps-td19943337.html > Is this the thread where you got the code? Did you go through all the > steps described there? > >> Also I can't unit test the google maps view class, because it tells >> me >> in the unit test that google ist not defined. Which makes sence since >> it has to be included in the index.html but even putting the <script >> type="text/javascript" src="http://www.google.com/jsapi? >> key=MYKEYHERE"></script> in the index-source.html of the test-unit >> doesn't do the trick. Any idea how you can include other js files >> into >> the unit testing framework? > > Try including in the script in test/html/tests-source.html, that's the > HTML file for the test application. test/index-source.html is for the > Test Runner GUI. > > > Regards, > Daniel > > >> Thanks for your help, >> Michael >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@... >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: embedding google mapsHi Michael,
I just tried to create an application using the code from your first post, but I'm getting the same result. Either the browser keeps waiting for gg.google.com or the "doc.body is null" error occurs. I did get it to work by using the old-style Maps API that doesn't use the Google AJAX API loader: Script tag: <script src="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=false" type="text/javascript"></script> Main: ========snip======== var mapCanvas = new qx.ui.embed.Html('<div id="map_canvas" style="height:400px"></div>'); mapCanvas.setWidth(400); mapCanvas.setHeight(400); mapCanvas.setDecorator("main"); mapCanvas.addListener("appear", this.__googleMapInit, this); this.getRoot().add(mapCanvas, {left: 20, top: 20}); ========snip======== Callback function for the listener: __googleMapInit : function(ev) { if (GBrowserIsCompatible()) { this.debug("Initializing GMap2"); var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); map.setUIToDefault(); this.__googleMap = map; } else { alert("Google says your browser isn't compatible!"); } } Hope this helps, Daniel Michael Ochs schrieb: > Hi, > > I tried importing the google script into the html/index-source.html > and it works fine. Thanks for that. But the firefox is always "waiting > for gg.google.com" and doesn't do anything whereas safari is done with > the test almost instantly. Any idea on that one? > > Anyway, there still is the error, that say "doc.body is null" in the > Viewport.js on line 83 when I start the main application. But as the > test runs well in safari, I'm not sure if this problem has something > to do with the embedded html. All I'm doing in my MapView.js > (singleton) is the following: > > construct : function() { > this.base(arguments); > > google.load("maps", "2"); > > this.__view = new qx.ui.embed.Html(); > this.__view.addListenerOnce("appear", function(e) { > this.map = new > google.maps.Map2(this.__view.getContentElement().getDomElement()); > this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13); > }, this); > }, > > members: { > map : null > } > > For me that seems to be exactly the stuff thats posted on the website > you linked in your mail. Thats the whole class. It inherits from my > BaseView class but there is nothing used from this class at this point > of development. > > In the Application.js all I'm doing is the following: > members : > { > main : function() > { > this.base(arguments); > > if (qx.core.Variant.isSet("qx.debug", "on")) > { > qx.log.appender.Native; > qx.log.appender.Console; > } > > var mapView = > mapblog.content.MapView.getInstance(); //.getView(); > > var doc = this.getRoot(); > > } > } > > There is a var called doc, but even if I comment it out the error > occures, so it seems like another dov var is ment by the error. > > Any ideas? > > Best regards, > Michael > > > > > Am 04.08.2009 um 12:32 schrieb Daniel Wagner: > >> Hi Michael, >> >> Michael Ochs schrieb: >>> Hi, >>> >>> I'm trying to figure out how to embed a google maps map into a >>> qooxdoo >>> application. I found a piece of code in the groups: >>> >>> google.load("maps", "2.x"); >>> >>> this.__view = new qx.ui.embed.Html(); >>> this.__view.addListenerOnce("appear", function(e) { >>> this.map = new >>> google.maps.Map2(this.__view.getContentElement().getDomElement()); >>> this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), >>> 13); >>> }, this); >>> >>> But this leads to a "doc.body is null" exception in the Viewport.js >>> file. Where does this come from and what's wrong with this code? >> http://www.nabble.com/Attach-google-maps-td19943337.html >> Is this the thread where you got the code? Did you go through all the >> steps described there? >> >>> Also I can't unit test the google maps view class, because it tells >>> me >>> in the unit test that google ist not defined. Which makes sence since >>> it has to be included in the index.html but even putting the <script >>> type="text/javascript" src="http://www.google.com/jsapi? >>> key=MYKEYHERE"></script> in the index-source.html of the test-unit >>> doesn't do the trick. Any idea how you can include other js files >>> into >>> the unit testing framework? >> Try including in the script in test/html/tests-source.html, that's the >> HTML file for the test application. test/index-source.html is for the >> Test Runner GUI. >> >> >> Regards, >> Daniel >> >> >>> Thanks for your help, >>> Michael >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports >>> 2008 30-Day >>> trial. Simplify your report design, integration and deployment - >>> and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@... >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> >>> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and >> focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@... >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: embedding google mapsThanks, that works perfekt. Even resizing works, hadn't thought about
that ;) Best regards, Michael Am 07.08.2009 um 14:40 schrieb Daniel Wagner: > Hi Michael, > > I just tried to create an application using the code from your first > post, but I'm getting the same result. Either the browser keeps > waiting > for gg.google.com or the "doc.body is null" error occurs. > > I did get it to work by using the old-style Maps API that doesn't use > the Google AJAX API loader: > > Script tag: > <script > src="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=false > " > type="text/javascript"></script> > > Main: > ========snip======== > var mapCanvas = new qx.ui.embed.Html('<div id="map_canvas" > style="height:400px"></div>'); > mapCanvas.setWidth(400); > mapCanvas.setHeight(400); > mapCanvas.setDecorator("main"); > > mapCanvas.addListener("appear", this.__googleMapInit, this); > this.getRoot().add(mapCanvas, {left: 20, top: 20}); > ========snip======== > > Callback function for the listener: > > __googleMapInit : function(ev) > { > if (GBrowserIsCompatible()) { > this.debug("Initializing GMap2"); > var map = new GMap2(document.getElementById("map_canvas")); > map.setCenter(new GLatLng(37.4419, -122.1419), 13); > map.setUIToDefault(); > this.__googleMap = map; > } > else { > alert("Google says your browser isn't compatible!"); > } > } > > > Hope this helps, > Daniel > > Michael Ochs schrieb: >> Hi, >> >> I tried importing the google script into the html/index-source.html >> and it works fine. Thanks for that. But the firefox is always >> "waiting >> for gg.google.com" and doesn't do anything whereas safari is done >> with >> the test almost instantly. Any idea on that one? >> >> Anyway, there still is the error, that say "doc.body is null" in the >> Viewport.js on line 83 when I start the main application. But as the >> test runs well in safari, I'm not sure if this problem has something >> to do with the embedded html. All I'm doing in my MapView.js >> (singleton) is the following: >> >> construct : function() { >> this.base(arguments); >> >> google.load("maps", "2"); >> >> this.__view = new qx.ui.embed.Html(); >> this.__view.addListenerOnce("appear", function(e) { >> this.map = new >> google.maps.Map2(this.__view.getContentElement().getDomElement()); >> this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13); >> }, this); >> }, >> >> members: { >> map : null >> } >> >> For me that seems to be exactly the stuff thats posted on the website >> you linked in your mail. Thats the whole class. It inherits from my >> BaseView class but there is nothing used from this class at this >> point >> of development. >> >> In the Application.js all I'm doing is the following: >> members : >> { >> main : function() >> { >> this.base(arguments); >> >> if (qx.core.Variant.isSet("qx.debug", "on")) >> { >> qx.log.appender.Native; >> qx.log.appender.Console; >> } >> >> var mapView = >> mapblog.content.MapView.getInstance(); //.getView(); >> >> var doc = this.getRoot(); >> >> } >> } >> >> There is a var called doc, but even if I comment it out the error >> occures, so it seems like another dov var is ment by the error. >> >> Any ideas? >> >> Best regards, >> Michael >> >> >> >> >> Am 04.08.2009 um 12:32 schrieb Daniel Wagner: >> >>> Hi Michael, >>> >>> Michael Ochs schrieb: >>>> Hi, >>>> >>>> I'm trying to figure out how to embed a google maps map into a >>>> qooxdoo >>>> application. I found a piece of code in the groups: >>>> >>>> google.load("maps", "2.x"); >>>> >>>> this.__view = new qx.ui.embed.Html(); >>>> this.__view.addListenerOnce("appear", function(e) { >>>> this.map = new >>>> google.maps.Map2(this.__view.getContentElement().getDomElement()); >>>> this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), >>>> 13); >>>> }, this); >>>> >>>> But this leads to a "doc.body is null" exception in the Viewport.js >>>> file. Where does this come from and what's wrong with this code? >>> http://www.nabble.com/Attach-google-maps-td19943337.html >>> Is this the thread where you got the code? Did you go through all >>> the >>> steps described there? >>> >>>> Also I can't unit test the google maps view class, because it tells >>>> me >>>> in the unit test that google ist not defined. Which makes sence >>>> since >>>> it has to be included in the index.html but even putting the >>>> <script >>>> type="text/javascript" src="http://www.google.com/jsapi? >>>> key=MYKEYHERE"></script> in the index-source.html of the test-unit >>>> doesn't do the trick. Any idea how you can include other js files >>>> into >>>> the unit testing framework? >>> Try including in the script in test/html/tests-source.html, that's >>> the >>> HTML file for the test application. test/index-source.html is for >>> the >>> Test Runner GUI. >>> >>> >>> Regards, >>> Daniel >>> >>> >>>> Thanks for your help, >>>> Michael >>>> >>>> ------------------------------------------------------------------------------ >>>> Let Crystal Reports handle the reporting - Free Crystal Reports >>>> 2008 30-Day >>>> trial. Simplify your report design, integration and deployment - >>>> and focus on >>>> what you do best, core application coding. Discover what's new with >>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>> _______________________________________________ >>>> qooxdoo-devel mailing list >>>> qooxdoo-devel@... >>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>>> >>>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> trial. Simplify your report design, integration and deployment - and >>> focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@... >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@... >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: embedding google mapsThanks, that works perfekt. Even resizing works, hadn't thought about
that ;) Best regards, Michael Am 07.08.2009 um 14:40 schrieb Daniel Wagner: > Hi Michael, > > I just tried to create an application using the code from your first > post, but I'm getting the same result. Either the browser keeps > waiting > for gg.google.com or the "doc.body is null" error occurs. > > I did get it to work by using the old-style Maps API that doesn't use > the Google AJAX API loader: > > Script tag: > <script > src="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=false > " > type="text/javascript"></script> > > Main: > ========snip======== > var mapCanvas = new qx.ui.embed.Html('<div id="map_canvas" > style="height:400px"></div>'); > mapCanvas.setWidth(400); > mapCanvas.setHeight(400); > mapCanvas.setDecorator("main"); > > mapCanvas.addListener("appear", this.__googleMapInit, this); > this.getRoot().add(mapCanvas, {left: 20, top: 20}); > ========snip======== > > Callback function for the listener: > > __googleMapInit : function(ev) > { > if (GBrowserIsCompatible()) { > this.debug("Initializing GMap2"); > var map = new GMap2(document.getElementById("map_canvas")); > map.setCenter(new GLatLng(37.4419, -122.1419), 13); > map.setUIToDefault(); > this.__googleMap = map; > } > else { > alert("Google says your browser isn't compatible!"); > } > } > > > Hope this helps, > Daniel > > Michael Ochs schrieb: >> Hi, >> >> I tried importing the google script into the html/index-source.html >> and it works fine. Thanks for that. But the firefox is always >> "waiting >> for gg.google.com" and doesn't do anything whereas safari is done >> with >> the test almost instantly. Any idea on that one? >> >> Anyway, there still is the error, that say "doc.body is null" in the >> Viewport.js on line 83 when I start the main application. But as the >> test runs well in safari, I'm not sure if this problem has something >> to do with the embedded html. All I'm doing in my MapView.js >> (singleton) is the following: >> >> construct : function() { >> this.base(arguments); >> >> google.load("maps", "2"); >> >> this.__view = new qx.ui.embed.Html(); >> this.__view.addListenerOnce("appear", function(e) { >> this.map = new >> google.maps.Map2(this.__view.getContentElement().getDomElement()); >> this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13); >> }, this); >> }, >> >> members: { >> map : null >> } >> >> For me that seems to be exactly the stuff thats posted on the website >> you linked in your mail. Thats the whole class. It inherits from my >> BaseView class but there is nothing used from this class at this >> point >> of development. >> >> In the Application.js all I'm doing is the following: >> members : >> { >> main : function() >> { >> this.base(arguments); >> >> if (qx.core.Variant.isSet("qx.debug", "on")) >> { >> qx.log.appender.Native; >> qx.log.appender.Console; >> } >> >> var mapView = >> mapblog.content.MapView.getInstance(); //.getView(); >> >> var doc = this.getRoot(); >> >> } >> } >> >> There is a var called doc, but even if I comment it out the error >> occures, so it seems like another dov var is ment by the error. >> >> Any ideas? >> >> Best regards, >> Michael >> >> >> >> >> Am 04.08.2009 um 12:32 schrieb Daniel Wagner: >> >>> Hi Michael, >>> >>> Michael Ochs schrieb: >>>> Hi, >>>> >>>> I'm trying to figure out how to embed a google maps map into a >>>> qooxdoo >>>> application. I found a piece of code in the groups: >>>> >>>> google.load("maps", "2.x"); >>>> >>>> this.__view = new qx.ui.embed.Html(); >>>> this.__view.addListenerOnce("appear", function(e) { >>>> this.map = new >>>> google.maps.Map2(this.__view.getContentElement().getDomElement()); >>>> this.map.setCenter(new google.maps.LatLng(37.4419, -122.1419), >>>> 13); >>>> }, this); >>>> >>>> But this leads to a "doc.body is null" exception in the Viewport.js >>>> file. Where does this come from and what's wrong with this code? >>> http://www.nabble.com/Attach-google-maps-td19943337.html >>> Is this the thread where you got the code? Did you go through all >>> the >>> steps described there? >>> >>>> Also I can't unit test the google maps view class, because it tells >>>> me >>>> in the unit test that google ist not defined. Which makes sence >>>> since >>>> it has to be included in the index.html but even putting the >>>> <script >>>> type="text/javascript" src="http://www.google.com/jsapi? >>>> key=MYKEYHERE"></script> in the index-source.html of the test-unit >>>> doesn't do the trick. Any idea how you can include other js files >>>> into >>>> the unit testing framework? >>> Try including in the script in test/html/tests-source.html, that's >>> the >>> HTML file for the test application. test/index-source.html is for >>> the >>> Test Runner GUI. >>> >>> >>> Regards, >>> Daniel >>> >>> >>>> Thanks for your help, >>>> Michael >>>> >>>> ------------------------------------------------------------------------------ >>>> Let Crystal Reports handle the reporting - Free Crystal Reports >>>> 2008 30-Day >>>> trial. Simplify your report design, integration and deployment - >>>> and focus on >>>> what you do best, core application coding. Discover what's new with >>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>> _______________________________________________ >>>> qooxdoo-devel mailing list >>>> qooxdoo-devel@... >>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>>> >>>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> trial. Simplify your report design, integration and deployment - and >>> focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@... >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@... >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
| Free embeddable forum powered by Nabble | Forum Help |