[Mapserver-users] Mapclient - create new window

Jan Hartmann jhart at frw.uva.nl
Thu Oct 9 03:21:23 PDT 2003


Interesting. I still can't duplicate it in my IE6-browser. Could you 
send the exact, complete HTML code? It looks like a syntax error that 
Mozilla passes by but IE doesn't.


Apart from that, I should expect instabilities when using standalone 
iframes next to windows. The reason for that is that the mouse behaves 
differently within an iframe: it sends back different coordinates in a 
different way. Windows contain iframes, and one of the hairiest issue of 
the program was to make the mouse behave exactly the same way within a 
window and outside. In fact, 300 of the 2000 lines of code are spent on 
that issue alone; it is just a great amount of keeping track of mouse 
events. Standalone iframes fall outside this bookkeeping mechanism, so 
they will interfere with regular windows.

I realized that this problem could occur, but I didn't expect that 
someone would try to make an application with both static iframes and 
movable windows. For myself, I either work with static pages (using 
invisible serverFrames to fill in the HTML elements of the page, 
including iframes), or with complete windowed applications, using 
windows and buttons on a static background. This background can contain 
all kinds of HTML, but no iframes. As a rule, I don't put very much in 
this background. The main purpose of movable/hideable windows and menus 
is to diminish the overcrowding you see in traditional web pages. What 
kind of application are you thinking of?

Jan

Lars-goran Edholm wrote:
> I found that the problem with creating a new window dynamical is a browser
> problem. 
> It doesnt work in Internet Explorer 6.0 but it works fine in Netscape 7.1.
> 
> In IE6.0:
> with
> function newwin(){
> w1 = new win(10,200,600,450,"Karta 1")
> }
> The page is cleared out from all menus etc and only a
> new ILayer is showing,  the whole code for the remaining page is:
> <iframe id=iframe0 name=iframe0></iframe>
> 
> with
> function newwin(){
> w1 = new win(10,200,9,9,"Karta 1")
> }
> 
> The page is cleared out from all menus etc and a window in size aprox  3x3
> pixels is created.
> 
> with
> function newwin(){
> w1 = new win(10,200,10,10,"Karta 1")
> }
> The page is cleared out from all menus etc and only a
> new ILayer is showing,  the whole code for the remaining page is:
> <iframe id=iframe0 name=iframe0></iframe>
> 
> with
> function newwin(){
> w1 = new win(10,200,600,450)
> }
> Menus etc is showing and a new window is created but it cant be moved or
> resized.
> 
> 
>  Mvh
> Lars-Göran Edholm    tel 026/24 14 36
> 1:e byggnadsinspektör
> Bygg- och miljökontoret
> 811 80 Sandviken
> lars-goran.edholm at sandviken.se
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 




More information about the MapServer-users mailing list