[OSM-dev] need some javascript help

jamesmikedupont at googlemail.com jamesmikedupont at googlemail.com
Fri Feb 26 21:40:22 GMT 2010


yes the performance is horrid. thanks!
I will look into compressing this all and making it tight.
it will all be hosted on the server, no need for cross site stuff.
thanks,
mike

On Fri, Feb 26, 2010 at 10:35 PM, Emilie Laffray
<emilie.laffray at gmail.com>wrote:

> On 26/02/2010 20:59, jamesmikedupont at googlemail.com wrote:
> > OK
> > I have updated the server here :
> > http://119.161.80.223:3000/Controller
> > It is running the lastest code.
> > You can see my demo controller, now I want to change the url of the
> > top frame based on the selection in the bottom one. I guess it might
> > be very easy.
> > there is a great plugin that just allows you to right click on
> > something and show it in a map.
> > the minimap plugin for firefox. Something like that is what I want.
> > but it would be great to be able to also select the location in the
> > map and update the lat /lon. Even to select a street and attach it
> > (data mode osm)
> >
> > this will be a great tool for osm, please help with it.
> > we can use it to create databases of addresses and pull them up in the
> > map, like select a street  and find all data rows with the street name
> > in it in that current town.
>
> You might want to check the parent functionality in Javascript. In the
> iframe, you may want to use code like this:
> var firstiframe = parent.getElementById("addresses");
> firstiframe.src = "http://www.mynewurl";
>
> Please note that this code won't work on your current page as you have a
> name field instead of an id field, which is what getElementById is
> getting. Of course, you could use getElementsByName() but the
> compatibility is not as good. Please check the following page for more
> information:
> http://www.quirksmode.org/dom/w3c_core.html
>
> However, cross scripting prevention tools might balk at it.
> Also, for some reason, all files from openlayer are being loaded. YSlow
> is reporting the following:
> This page has 205 external Javascript scripts. Try combining them into one.
>
> The main openstreetmap site is using only 5 external javascript scripts,
> so you might want to investigate this for performance reason.
>
> Emilie Laffray
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20100226/0fa34348/attachment.html>


More information about the dev mailing list