<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (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]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.balloontextchar0
        {mso-style-name:balloontextchar;
        font-family:"Tahoma","sans-serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.balloontextchar00
        {mso-style-name:balloontextchar0;
        font-family:"Tahoma","sans-serif";}
span.emailstyle21
        {mso-style-name:emailstyle21;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>The problem isn’t passing
variables in a form.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>The issues is that I have a page
with 2 frames. A title bar, and the mapguide viewer. I want to
execute some code based on this original page’s URL.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>However, the map loads after
this page loads. So it would be worthless to try and execute code (zoom
to a parcel) in the original page. The task pane’s default page
would be a great place to do this. Just one problem. How do I get
variables from the original page to the task pane?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>When the map loads, it actually
loads about 6 pages. So passing variables to the first page means nothing
because those variables aren’t being passed to the next page, or the page
after that, or the page after that. Hence my issues is that I can’t
pass variables from the original page containing the map viewer to the task
pane or scriptframe which are frames embedded within frames embedded within
frames embedded within the original page.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Hope that wasn’t too
confusing. Here’s a diagram of my issue.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Original Page w/ variables being
passed to it. (e.g. mga.aspx?JobNo=12345)<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -titleFrame<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:.5in'><span style='color:#1F497D'>-ViewerFrame<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -Unamed
2 row frame<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -Unamed
2 column frame<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -mapArea<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -taskArea<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -taskBar<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -taskFrame<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -taskListFrame<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -taskPaneFrame
</span><span style='color:#632423'>(this is where the code should execute,
using variables from the original page)</span><span style='color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> -statusbarFrame<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Ivan
Milicevic<br>
<b>Sent:</b> Friday, October 12, 2007 4:01 PM<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> RE: [mapguide-users] Pass variables<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div id=idOWAReplyText11397>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>why don't you try put some values into hidden forms and then pass
it via javascript to the other frame... just suggestion.</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</div>
</div>
<div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> mapguide-users-bounces@lists.osgeo.org on
behalf of Mark Pendergraft<br>
<b>Sent:</b> pet 12.10.2007 22:53<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> RE: [mapguide-users] Pass variables</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='color:#1F497D'>A little bit.</span><o:p></o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>I think I have solved this by putting
some javascript code into my taskpane default page, which gets the url for the
top frame (top.location.href)</span><o:p></o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>Then I split it by the
‘?’ character, and divide from there.</span><o:p></o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>Of course, all this requires
that the original page uses explicit paths to the pages being opened in the
original 2 frames (took me a while to get that figured out).</span><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>Seems to work okay, but
I’m definitely open to suggestions/hints.</span><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>-Mark Pendergraft</span><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mapguide-users-bounces@lists.osgeo.org [mailto:mapguide-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Ivan Milicevic<br>
<b>Sent:</b> Friday, October 12, 2007 12:45 PM<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> RE: [mapguide-users] Pass variables</span><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal> <o:p></o:p></p>
<div id=idOWAReplyText70327>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Familiar with using ajax?</span><o:p></o:p></p>
</div>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> mapguide-users-bounces@lists.osgeo.org on
behalf of Mark Pendergraft<br>
<b>Sent:</b> pet 12.10.2007 18:38<br>
<b>To:</b> mapguide-users@lists.osgeo.org<br>
<b>Subject:</b> [mapguide-users] Pass variables</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Is there a way to pass variables from my default page (which
creates two frames – titleFrame and viewerFrame) to the task page page?<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>I’m having trouble storing session variables when the
map loads and retrieving them from the task pane afterwards. It’s
as if the session variables are expiring due to the fact that a new frame has
been created. And seeing as mapguide opens a bunch of pages once it
loads, I don’t think it would be feasible to rewrite the viewer code just
to continue passing along a few custom variables to the following pages.<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><b>Error! Filename not specified.</b><o:p></o:p></p>
<p class=MsoNormal><b><span style='font-size:8.0pt'>Ph: (425) 486-1252
Fx: (425) 486-6108 </span></b><a href="http://www.meadgilman.com/"><b><span
style='font-size:8.0pt'>www.meadgilman.com</span></b></a><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>