Flamingo MapComponents

app.call("map", "update", 0, true) in IE 8 problem

Beoordeeld door 0 gebruikers
Niet opgelost Deze plaatsing heeft 0 Ge verifieerde antwoorden | 7 Antwoorden | 2 Volgelingen

Top 25 plaatser
6 Plaatsingen
Jan Geplaatst in 13 Aug 2009 10:49

Hallo,

although I know that -unfortunately- this forum is in Dutch only (Flamingo Viewer is a great application and I would like to continue using it), I want to raise a question, if it is still allowed: I have an application that enables the user to click in a Flamingo map and retrieve an ID, this ID is sent to the server and a DB query is made. According to the results, a new map is created and then a second (result-) map is updated according to this code:

var app = document.getElementById("flamingo");
//force an update of component with id='map2'
app.call("map2","update", 0, true);

This works perfectly in Firefox (3.0, 3.5) and Internet Explorer 7, but not in IE 8. Does anybody know what might have changed in IE 8? Do your applications (using "update") work in IE 8? I just tried upgrading to Flamingo 3 but this does not change anything.

Thanks in advance (if it is more convenient for you, I could write in German, unfortunately I do not speak Dutch)

Jan (from Vienna)

 

Alle Antwoorden

Top 25 plaatser
6 Plaatsingen

Update: Safari does not update the map either.

Top 10 plaatser
Man
77 Plaatsingen

Hello Jan,

Do you get a javascript error? Maybe it's caching of the map>> what will happen if you call a moveToExtent function instead of a update function?. What version of flamingo are  you using?

Roy

Top 25 plaatser
6 Plaatsingen

Hi Roy,

thanks for responding so quickly again. You are right, I just encountered that it is a caching problem of IE8 (IEWatch showed that the "update" command lead to a read from the IE cache, IE 7 loads the map "freshly" from the mapserver). After disabling the caching (just for testing purposes) it now updates the map as it should. Is there a workaround? Maybe deleting selectively the "map2" image in the cache? Do you know, how to do that?

 

Best regards and thanks again

Jan

 

PS: I hate spending time to come around problems that we would not have if there was no IE ;)

 

Top 10 plaatser
Man
77 Plaatsingen

Hello Jan,

I had the same problem and added a 'nocache' param to the layerOGWMS. If set to true a timestamp is added to the url (seconds). See the change:

http://svn.flamingo-mc.org/trac/changeset/234

This addition is not available in fmc 3.0 but will be available in 3.1 (released somewhere in september). As for now you can check out the code and build it your self or you can pm me your email adres, then i will build it for you and mail it to you.

Roy

PS: IE...... It's a pain in the ... for every developer. The Microsoft marketing machine is amazing, because I don't understand how such a evil program is used so widely.... Specs? Standards?? What's that?? Lets create our one.....

Top 25 plaatser
6 Plaatsingen

Hi Roy,

if you could build it for me that would be great (I do not have Flash installed so I cannot build ActionScript unfortunately).

Regards from Vienna

Jan

Top 25 plaatser
6 Plaatsingen

Hi Roy,

sorry for posting at the "wrong" spot :) I thought, the link meant "pm" but it was a friendship request :)

Greetings from Vienna

Jan

Top 10 plaatser
Man
77 Plaatsingen

Haha np,

I sent you a pm, i hope.... Otherwise mail me at:

roybraam ( monkey tail ) b3partners.nl

 

Roy

Pagina 1 van 1 (8) | RSS
Copyright © 2006-2009 IPO, GBO-provincies
Stats aangeboden door Mtrack