<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 5 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>There may be a timing issue involved. Seems
like there are two windows at play here, and the grandparent in question may
not be ready (it may still be loading) even though your page is already done (your
onPageLoad has fired.)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>JavaScript is pretty compartmentalized, so
there may be security constraints that prevent you from realizing whether
another window has loaded (that’s been true for IE, anyway.)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>One workaround might be to fire off a
setTimeout on page load, where the timeout would call the Zoom, which predicated
on the assumption that all pages finish loading by the time the timeout
expires. Another option is to have the grandparent do the actual ZoomToView
upon its reaching loaded state.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>- Thomas<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Adam Herbert
[mailto:adam@aemsaustralia.com.au] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, September 05, 2006
1:57 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">users@mapguide.osgeo.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [mapguide-users]
Microsoft JScript runtime error</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'>I am running this code:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";
color:blue'><</span></font><font size=2 color=maroon face="Courier New"><span
lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";color:maroon'>script</span></font><font
size=2 face="Courier New"><span lang=EN-AU style='font-size:10.0pt;font-family:
"Courier New"'> <font color=red><span style='color:red'>type</span></font><font
color=blue><span style='color:blue'>="text/javascript"><o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-AU style='font-size:10.0pt;font-family:"Courier New"'>
<font color=blue><span style='color:blue'>function</span></font> onPageLoad()<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-AU style='font-size:10.0pt;font-family:"Courier New"'>
{<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-AU style='font-size:10.0pt;font-family:"Courier New"'>
parent.parent.ZoomToView(<%=x %>, <%=y %>,
110000, <font color=blue><span style='color:blue'>true</span></font>);<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-AU style='font-size:10.0pt;font-family:"Courier New"'>
}<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-AU style='font-size:10.0pt;font-family:"Courier New"'>
<font color=blue><span style='color:blue'></</span></font><font
color=maroon><span style='color:maroon'>script</span></font><font color=blue><span
style='color:blue'>><o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";
color:blue'></</span></font><font size=2 color=maroon face="Courier New"><span
lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";color:maroon'>head</span></font><font
size=2 color=blue face="Courier New"><span lang=EN-AU style='font-size:10.0pt;
font-family:"Courier New";color:blue'>><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Courier New";color:blue'><</span></font><font
size=2 color=maroon face="Courier New"><span lang=EN-AU style='font-size:10.0pt;
font-family:"Courier New";color:maroon'>body</span></font><font size=2
face="Courier New"><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New"'>
<font color=red><span style='color:red'>class</span></font><font color=blue><span
style='color:blue'>="AppFrame"</span></font> <font color=red><span
style='color:red'>onload</span></font><font color=blue><span style='color:blue'>="onPageLoad()"><o:p></o:p></span></font></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Courier New";color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'>And getting this error:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'>Microsoft JScript runtime error: Object doesn't
support this property or method<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Courier New"'>mapFrame.ZoomToView(x,y,scale,refresh);
on Line 213 of ajaxviewer.aspx<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Courier New"'>I can run this fine from a
link on the same page and point it to the scriptFrame but when I try to run the
onPageLoad function it fails.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Courier New"'>Any ideas on what I might be
doing wrong?</span></font><font size=2 face=Arial><span lang=EN-AU
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=3 face="Arial Narrow"><span lang=EN-AU style='font-size:12.0pt;font-family:
"Arial Narrow";font-weight:bold'>Adam Herbert<br>
</span></font></b><font face="Arial Narrow"><span lang=EN-AU style='font-family:
"Arial Narrow"'>IT Manager</span></font><span lang=EN-AU><br>
</span><font size=1><span lang=EN-AU style='font-size:7.5pt'>AEM Solutions Pty
Ltd</span></font><span lang=EN-AU><br>
</span><st1:address w:st="on"><st1:address w:st="on"><st1:Street w:st="on"><font
size=1><span lang=EN-AU style='font-size:7.5pt'>PO Box</span></font></st1:Street></st1:address><font
size=1><span lang=EN-AU style='font-size:7.5pt'> 514</span></font></st1:address><font
size=1><span lang=EN-AU style='font-size:7.5pt'>, Toowoomba Q. 4350</span></font><span
lang=EN-AU><br>
</span><font size=1><span lang=EN-AU style='font-size:7.5pt'>Phone: 07 4613
0455<br>
Cell: 0437 599 907<br>
Website: </span></font><span lang=EN-AU><a
href="http://www.aemsaustralia.com.au"
title="blocked::BLOCKED::http://www.aemsaustralia.com.au blocked::http://www.aemsaustralia.com.au http://www.aemsaustralia.com.au"><font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'><span
title="blocked::BLOCKED::http://www.aemsaustralia.com.au">www.aemsaustralia.com.au</span></span></font></a><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><strong><b><font
size=1 face="Times New Roman"><span lang=EN-AU style='font-size:8.0pt'>Important
Disclaimer and Warning</span></font></b></strong><font size=1 face=Arial><span
lang=EN-AU style='font-size:8.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 face=Arial><span lang=EN-AU style='font-size:7.0pt;font-family:Arial'>AEMS
does not represent or warrant that any attached files are free from computer
viruses or other defects. The attached files are provided, and may only be
used, on the basis that the user assumes all responsibility for any loss,
damage or consequences resulting directly or indirectly from use of the
attached files. The liability of AEMS in any event is limited to either the
re-supply of the attached files or the cost of having the attached files
re-supplied.</span></font><span lang=EN-AU><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><em><i><font
size=1 face=Arial><span lang=EN-AU style='font-size:7.0pt;font-family:Arial'>NOTE:</span></font></i></em><font
size=1><span lang=EN-AU style='font-size:7.0pt'> The views expressed by the
individual in this message do not necessarily reflect those of the
organisation.</span></font><span lang=EN-AU><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 face=Arial><span lang=EN-AU style='font-size:7.0pt;font-family:Arial'>AEMS
is committed to protecting the privacy of individuals, and is bound by the
principles of the Commonwealth Privacy Act (1988).</span></font><span
lang=EN-AU><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 face=Arial><span lang=EN-AU style='font-size:7.0pt;font-family:Arial'>The
information contained in this message is confidential and may be legally
privileged. The message is intended solely for the addressee(s). If you are not
the intended recipient, you are hereby notified that any use, dissemination, or
reproduction is strictly prohibited and may be unlawful. If you are not the
intended recipient, please contact the sender by return e-mail and destroy all
copies of the original message.</span></font><span lang=EN-AU><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-AU
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>