<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags" xmlns:u2 XMLNS:U4><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE>font-face {
        FONT-FAMILY: Tahoma
}
font-face {
        FONT-FAMILY: "Trebuchet MS"
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2>I've put the source listings here:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2>This one works<SPAN class=646104116-15052006> for
me</SPAN>:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2><A
href="BLOCKED::http://earth.nanaimo.ca/outbound/test_ajax.php.txt">http://earth.nanaimo.ca/outbound/test_ajax.php.txt</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2>This one, with the only change being in the application the
frameset calls, does not:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2><A
href="http://earth.nanaimo.ca/outbound/test_dwf.php.txt">http://earth.nanaimo.ca/outbound/test_dwf.php.txt</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><SPAN
class=646104116-15052006><FONT face=Arial color=#0000ff size=2>I'm wondering if
the timer is somehow getting invalidated when I have to activate the ActiveX
control (by clicking on it or hitting space).</FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><SPAN
class=646104116-15052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=490083816-15052006><SPAN
class=646104116-15052006><FONT face=Arial color=#0000ff
size=2>Jason</FONT></SPAN></SPAN></DIV></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Walt Welton-Lair
[mailto:walt.welton-lair@autodesk.com] <BR><B>Sent:</B> Friday, May 12, 2006
07:59<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] Autodesk Help - OnSelectionChanged<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2>I spent some time investigating this to see if I could
reproduce what you were seeing (the selection event working for AJAX but
not for DWF).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006></SPAN><SPAN
class=394014002-12052006><FONT face=Arial color=#0000ff size=2>I
fir</FONT></SPAN><SPAN class=394014002-12052006><FONT face=Arial color=#0000ff
size=2>st tried it with the latest code (in the OSGEO vault), and the
mainframe's OnSelectionChanged handler was getting called for me when
using DWF Viewer. </FONT></SPAN><SPAN class=394014002-12052006><FONT
face=Arial color=#0000ff size=2>I then </FONT></SPAN><SPAN
class=394014002-12052006><FONT face=Arial color=#0000ff size=2>reverted to the
MGO 1.0 code, and it still worked. Finally I tried RC1, and it also
worked.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2>For the tests above I was using </FONT></SPAN><SPAN
class=394014002-12052006><FONT face=Arial color=#0000ff size=2>a pre-release
build of DWF Viewer 7 (which addresses the ActiveX activation issue).
Thinking that could be a factor, I reverted to DWF Viewer 6.5. Once again
it was working in all cases (latest code, 1.0, RC1).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2>For my test all I did was add some alerts statements to the
OnSelectionChanged handlers and verified these were popping
up.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2>I'm not sure why you guys are having problems with
this. I covered all the cases I could think of and didn't have any
problems.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2>Note that adding code to the mainframe's OnSelectionChanged
handler is correct, since this handler is common to both AJAX /
DWF.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2>BTW, if you do get it to work you'll find
there's a bug with the current DWF Viewer's OnSelectionChanged event: the
event gets raised every time you click in the map (the selection object stored
by the viewer is getting replaced, but no check is done to see if the set's
contents are actually different). This is fixed in DWF Viewer
7.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=394014002-12052006><FONT face=Arial
color=#0000ff size=2>Walt</FONT></SPAN></DIV><U4:PLACE u5:st="on">
<DIV>
<DIV class=Section1>
<DIV id=idSignature93560>
<DIV>
<DIV>
<DIV style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt">
<P class=MsoNormal><FONT face=Arial color=#0000ff
size=2></FONT> </P></DIV></DIV></DIV></DIV></DIV></DIV></U4:PLACE></BODY></HTML>