yes the performance is horrid. thanks!<br>I will look into compressing this all and making it tight.<br>it will all be hosted on the server, no need for cross site stuff.<br>thanks,<br>mike<br><br><div class="gmail_quote">
On Fri, Feb 26, 2010 at 10:35 PM, Emilie Laffray <span dir="ltr"><<a href="mailto:emilie.laffray@gmail.com">emilie.laffray@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 26/02/2010 20:59, <a href="mailto:jamesmikedupont@googlemail.com">jamesmikedupont@googlemail.com</a> wrote:<br>
> OK<br>
> I have updated the server here :<br>
> <a href="http://119.161.80.223:3000/Controller" target="_blank">http://119.161.80.223:3000/Controller</a><br>
> It is running the lastest code.<br>
> You can see my demo controller, now I want to change the url of the<br>
> top frame based on the selection in the bottom one. I guess it might<br>
> be very easy.<br>
> there is a great plugin that just allows you to right click on<br>
> something and show it in a map.<br>
> the minimap plugin for firefox. Something like that is what I want.<br>
> but it would be great to be able to also select the location in the<br>
> map and update the lat /lon. Even to select a street and attach it<br>
> (data mode osm)<br>
><br>
> this will be a great tool for osm, please help with it.<br>
> we can use it to create databases of addresses and pull them up in the<br>
> map, like select a street and find all data rows with the street name<br>
> in it in that current town.<br>
<br>
</div>You might want to check the parent functionality in Javascript. In the<br>
iframe, you may want to use code like this:<br>
var firstiframe = parent.getElementById("addresses");<br>
firstiframe.src = "http://www.mynewurl";<br>
<br>
Please note that this code won't work on your current page as you have a<br>
name field instead of an id field, which is what getElementById is<br>
getting. Of course, you could use getElementsByName() but the<br>
compatibility is not as good. Please check the following page for more<br>
information:<br>
<a href="http://www.quirksmode.org/dom/w3c_core.html" target="_blank">http://www.quirksmode.org/dom/w3c_core.html</a><br>
<br>
However, cross scripting prevention tools might balk at it.<br>
Also, for some reason, all files from openlayer are being loaded. YSlow<br>
is reporting the following:<br>
This page has 205 external Javascript scripts. Try combining them into one.<br>
<br>
The main openstreetmap site is using only 5 external javascript scripts,<br>
so you might want to investigate this for performance reason.<br>
<font color="#888888"><br>
Emilie Laffray<br>
<br>
</font></blockquote></div><br>