I put the "body" back on the page, but it causes another error -" document type does not allow element "body" here". http://validator.w3.org/check?uri=http://test.lfns.co.uk/%3Fp%3D718&c...
On Nov 22, 6:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 22, 10:14 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Thanks - I've fixed most of the errors - still trying to figure out > > what to do about the <body onload..." one, which is prob related to > > the problem I originally posted about. > > http://validator.w3.org/check?uri=http://test.lfns.co.uk/%3Fp%3D718&c... > > Line 90, Column 9: an attribute specification must start with a name > or name token . > <onload="load()" onunload="GUnload()"> > > I would think you would want <body onload="..." > There is no <onload> tag... > > > > > On 22 Nov, 17:08, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > On Nov 22, 8:32 am, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > > I have a site based on old code that displays a map with a custom > > > > route. The route is loaded from an XML file containing lon/lat data. > > > > > URL -http://www.lfns.co.uk/route.php/20081121 > > > > > The old code that correctly loads the data looks like this: > > > > > <body onLoad="init(); loadMap('./2008/11/21/route.xml',false); > > > > mapResizeEventHandler(); document.getElementById > > > > ('loading').style.visibility='hidden'; mapResize();showStart > > > > ('friday');" style="margin-left:0px; margin-top:0px; margin-right: > > > > 0px"> > > > > > The upgraded site doesn't work with the above code. The best I can get > > > > is a version that displays a map with no route overlayed. > > > > > URL -http://test.lfns.co.uk/?p=718 > > > > > New code looks like this: > > > > > <script src="http://maps.google.com/maps? > > > > file=api&v=2&key=ABQIAAAACB26uG_0RriEw30H5tp6qxQFG8NdP-5B6F3Kx9zSZkddZ8PyZh > > > > Rkh8- > > > > nn8SrgjNhkl348l5FH3jllQ" type="text/javascript"></script> > > > > <script type="text/javascript"> > > > > > //<![CDATA[ > > > > > function load() { > > > > if (GBrowserIsCompatible()) { > > > > var map = new GMap2(document.getElementById("map")); > > > > map.setCenter(new GLatLng(51.5167, -0.1), 13); > > > > GMap2.map.addOverlay('http://test.lfns.co.uk/<?php echo > > > > $thisdate[0] . $thisdate[1] . $thisdate[2] . $thisdate[3] . '/' . > > > > $thisdate[5] . $thisdate[6] . '/' . $thisdate[8] . $thisdate[9]?>/ > > > > route.xml') > > > > } > > > > } > > > > > I'd be grateful for any advice about what I'm doing wrong! > > > > Both pages generate errors. The new page has multiple <html> tags > > > which is > > > invalid:http://validator.w3.org/check?uri=http://test.lfns.co.uk/%3Fp%3D718&c... > > > > -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
