<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" 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)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=HR link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText>Hi,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Frameset sucks, use iframe, it's more flexibile.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>In C# code create two mgSession's and define two
differen weblayout's.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-family:"Courier New";color:#32A9CB;background:black;
mso-highlight:black'>MgUserInformation</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>userInfo</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:white;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:red;background:
black;mso-highlight:black'>new</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:#32A9CB;background:black;mso-highlight:
black'>MgUserInformation</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>(</span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>defaultUser</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'>, </span><span style='font-family:"Courier New";
color:white;background:black;mso-highlight:black'>defaultPassword</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-family:"Courier New";color:#32A9CB;background:black;
mso-highlight:black'>MgSite</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>site</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:white;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:red;background:
black;mso-highlight:black'>new</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:#32A9CB;background:black;mso-highlight:
black'>MgSite</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-family:"Courier New";color:white;background:black;
mso-highlight:black'>site.Open</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>(</span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>userInfo</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-family:"Courier New";color:white;background:black;
mso-highlight:black'>sessionId</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:white;background:black;mso-highlight:black'>site.CreateSession</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-family:"Courier New";color:white;background:black;
mso-highlight:black'>sessionId2</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:white;background:black;mso-highlight:black'>site.CreateSession</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-family:"Courier New";color:white;background:black;
mso-highlight:black'>webLayout</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:red;background:black;mso-highlight:black'>"Library://PROJEKTI/PRIKAZI/1.WebLayout"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'>
</span><span style='font-family:"Courier New";color:white;background:
black;mso-highlight:black'>weblayout2</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:white;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:red;background:black;mso-highlight:black'>"Library://PROJEKTI/PRIKAZI/1mm.WebLayout"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>;</span><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Here, after <body>..<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#2B91AF;background:black;mso-highlight:black'><div><</span><span
style='font-family:"Courier New";color:#FFA346;background:black;mso-highlight:
black'>iframe</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:#30C9AE;background:black;mso-highlight:black'>id</span><span
style='font-family:"Courier New";color:#D0D0D0;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:salmon;background:
black;mso-highlight:black'>"viewerFrame"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:#30C9AE;background:
black;mso-highlight:black'>width</span><span style='font-family:"Courier New";
color:#D0D0D0;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:salmon;background:black;mso-highlight:
black'>"100%"</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:#30C9AE;background:black;mso-highlight:
black'>height</span><span style='font-family:"Courier New";color:#D0D0D0;
background:black;mso-highlight:black'>=</span><span style='font-family:"Courier New";
color:salmon;background:black;mso-highlight:black'>"100%"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:#30C9AE;background:
black;mso-highlight:black'>frameborder</span><span style='font-family:"Courier New";
color:#D0D0D0;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:salmon;background:black;mso-highlight:
black'>"0"</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:#30C9AE;background:black;mso-highlight:black'>marginwidth</span><span
style='font-family:"Courier New";color:#D0D0D0;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:salmon;background:
black;mso-highlight:black'>"0"</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:#30C9AE;background:black;mso-highlight:
black'>marginheight</span><span style='font-family:"Courier New";color:#D0D0D0;
background:black;mso-highlight:black'>=</span><span style='font-family:"Courier New";
color:salmon;background:black;mso-highlight:black'>"0"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:#30C9AE;background:
black;mso-highlight:black'>scrolling</span><span style='font-family:"Courier New";
color:#D0D0D0;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:salmon;background:black;mso-highlight:
black'>"no"</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:#30C9AE;background:black;mso-highlight:black'>src</span><span
style='font-family:"Courier New";color:#D0D0D0;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:salmon;background:
black;mso-highlight:black'>"../mapviewernet/ajaxviewer.aspx?SESSION=</span><span
style='font-family:"Courier New";background:yellow;mso-highlight:yellow'><%</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>=sessionId</span><span style='font-family:"Courier New";background:yellow;
mso-highlight:yellow'>%></span><span style='font-family:"Courier New";
color:salmon;background:black;mso-highlight:black'>&WEBLAYOUT=</span><span
style='font-family:"Courier New";background:yellow;mso-highlight:yellow'><%</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>=webLayout</span><span style='font-family:"Courier New";color:salmon;
background:black;mso-highlight:black'>"</span><span style='font-family:
"Courier New";background:yellow;mso-highlight:yellow'>%></span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:#2B91AF;background:
black;mso-highlight:black'>></</span><span style='font-family:"Courier New";
color:#FFA346;background:black;mso-highlight:black'>iframe</span><span
style='font-family:"Courier New";color:#2B91AF;background:black;mso-highlight:
black'>><div><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#2B91AF;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#2B91AF;background:black;mso-highlight:black'><div><</span><span
style='font-family:"Courier New";color:#FFA346;background:black;mso-highlight:
black'>iframe</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:#30C9AE;background:black;mso-highlight:black'>id</span><span
style='font-family:"Courier New";color:#D0D0D0;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:salmon;background:
black;mso-highlight:black'>"viewerFrame2"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:#30C9AE;background:
black;mso-highlight:black'>width</span><span style='font-family:"Courier New";
color:#D0D0D0;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:salmon;background:black;mso-highlight:
black'>"100%"</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:#30C9AE;background:black;mso-highlight:
black'>height</span><span style='font-family:"Courier New";color:#D0D0D0;
background:black;mso-highlight:black'>=</span><span style='font-family:"Courier New";
color:salmon;background:black;mso-highlight:black'>"100%"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:#30C9AE;background:
black;mso-highlight:black'>frameborder</span><span style='font-family:"Courier New";
color:#D0D0D0;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:salmon;background:black;mso-highlight:
black'>"0"</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:#30C9AE;background:black;mso-highlight:black'>marginwidth</span><span
style='font-family:"Courier New";color:#D0D0D0;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:salmon;background:
black;mso-highlight:black'>"0"</span><span style='font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-family:"Courier New";color:#30C9AE;background:black;mso-highlight:
black'>marginheight</span><span style='font-family:"Courier New";color:#D0D0D0;
background:black;mso-highlight:black'>=</span><span style='font-family:"Courier New";
color:salmon;background:black;mso-highlight:black'>"0"</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'> </span><span style='font-family:"Courier New";color:#30C9AE;background:
black;mso-highlight:black'>scrolling</span><span style='font-family:"Courier New";
color:#D0D0D0;background:black;mso-highlight:black'>=</span><span
style='font-family:"Courier New";color:salmon;background:black;mso-highlight:
black'>"no"</span><span style='font-family:"Courier New";color:#E0E0E0;
background:black;mso-highlight:black'> </span><span style='font-family:"Courier New";
color:#30C9AE;background:black;mso-highlight:black'>src</span><span
style='font-family:"Courier New";color:#D0D0D0;background:black;mso-highlight:
black'>=</span><span style='font-family:"Courier New";color:salmon;background:
black;mso-highlight:black'>"../mapviewernet/ajaxviewer.aspx?SESSION=</span><span
style='font-family:"Courier New";background:yellow;mso-highlight:yellow'><%</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>=sessionId2</span><span style='font-family:"Courier New";background:
yellow;mso-highlight:yellow'>%></span><span style='font-family:"Courier New";
color:salmon;background:black;mso-highlight:black'>&WEBLAYOUT=</span><span
style='font-family:"Courier New";background:yellow;mso-highlight:yellow'><%</span><span
style='font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>=webLayout2</span><span style='font-family:"Courier New";background:
yellow;mso-highlight:yellow'>%></span><span style='font-family:"Courier New";
color:#2B91AF;background:black;mso-highlight:black'>></</span><span
style='font-family:"Courier New";color:#FFA346;background:black;mso-highlight:
black'>iframe</span><span style='font-family:"Courier New";color:#2B91AF;
background:black;mso-highlight:black'>><div><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#2B91AF;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New";
color:#2B91AF;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>Put iframes into div’s so you can
place it absolutely, moving maps, ect…<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>The point is that you must have two
mgSessionId’s and two weblayout’s.<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>Hope this helps.<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>-----Original Message-----<br>
From: mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Mark Pendergraft<br>
Sent: Wednesday, January 21, 2009 5:15 PM<br>
To: MapGuide Users Mail List<br>
Subject: RE: [mapguide-users] Two maps in the same layout</span><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Roldolfo,<o:p></o:p></p>
<p class=MsoPlainText>Sorry I didn't look at your code. It's pretty much
exactly the same as<o:p></o:p></p>
<p class=MsoPlainText>what I posted. Why would you need to modify any of
the viewer files in<o:p></o:p></p>
<p class=MsoPlainText>order to have 2 pages in your map?<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>I was able to create a 2 map page using framesets in the
same manner<o:p></o:p></p>
<p class=MsoPlainText>that you did.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>-Mark<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>-----Original Message-----<o:p></o:p></p>
<p class=MsoPlainText>From: mapguide-users-bounces@lists.osgeo.org<o:p></o:p></p>
<p class=MsoPlainText>[mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf
Of Mark<o:p></o:p></p>
<p class=MsoPlainText>Pendergraft<o:p></o:p></p>
<p class=MsoPlainText>Sent: Wednesday, January 21, 2009 8:10 AM<o:p></o:p></p>
<p class=MsoPlainText>To: MapGuide Users Mail List<o:p></o:p></p>
<p class=MsoPlainText>Subject: RE: [mapguide-users] Two maps in the same layout<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Many people have their page in a frameset. Here is
an example which has<o:p></o:p></p>
<p class=MsoPlainText>two frames, 1 for a title.html page and 1 for the
mapguide viewer. Here<o:p></o:p></p>
<p class=MsoPlainText>is an example of what your frameset page might look like
(in VB.NET)<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>**********************************<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><%@ Page Language="VB"
Debug="true" %><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><%@ Import Namespace="OSGeo.MapGuide" %><o:p></o:p></p>
<p class=MsoPlainText><!-- #Include File="UtilityFunctions.aspx"
--><o:p></o:p></p>
<p class=MsoPlainText><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"<o:p></o:p></p>
<p class=MsoPlainText>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><script runat="server"><o:p></o:p></p>
<p class=MsoPlainText> Private webLayout As String =
"Library://MGA/Layout/MGA Web<o:p></o:p></p>
<p class=MsoPlainText>Layout.WebLayout"<o:p></o:p></p>
<p class=MsoPlainText> Private defaultUser As String =
"Anonymous"<o:p></o:p></p>
<p class=MsoPlainText> Private defaultPassword As String =
""<o:p></o:p></p>
<p class=MsoPlainText> Private SessionId As String =
""<o:p></o:p></p>
<p class=MsoPlainText> Private addRequests As String =
""<o:p></o:p></p>
<p class=MsoPlainText> Private Parameters As String =
""<o:p></o:p></p>
<p class=MsoPlainText></script><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><% <o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> Try<o:p></o:p></p>
<p class=MsoPlainText> ' Initialize a
session and register a variable to hold the<o:p></o:p></p>
<p class=MsoPlainText> ' session id,
then initialize the Web Extensions, connect<o:p></o:p></p>
<p class=MsoPlainText> ' to the site,
and create a session.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>
InitializeWebTier()<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> Dim userInfo
As New MgUserInformation(defaultUser,<o:p></o:p></p>
<p class=MsoPlainText>defaultPassword)<o:p></o:p></p>
<p class=MsoPlainText> Dim site As
New MgSite()<o:p></o:p></p>
<p class=MsoPlainText> site.Open(userInfo)<o:p></o:p></p>
<p class=MsoPlainText> SessionId =
site.CreateSession()<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> Catch ex As Exception<o:p></o:p></p>
<p class=MsoPlainText>
Response.Write(ex.Message)<o:p></o:p></p>
<p class=MsoPlainText> End Try<o:p></o:p></p>
<p class=MsoPlainText> <o:p></o:p></p>
<p class=MsoPlainText>%><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><frameset rows="50,*"><o:p></o:p></p>
<p class=MsoPlainText> <frame id="titleFrame"
frameborder="0" marginwidth="0"<o:p></o:p></p>
<p class=MsoPlainText>marginheight="0" scrolling="no"<o:p></o:p></p>
<p class=MsoPlainText>
src="http://localhost/mapguide/mga/title.html"><o:p></o:p></p>
<p class=MsoPlainText> <frame id="viewerFrame"
frameborder="0" marginwidth="0"<o:p></o:p></p>
<p class=MsoPlainText>marginheight="0" scrolling="no"<o:p></o:p></p>
<p class=MsoPlainText> <o:p></o:p></p>
<p class=MsoPlainText>src="http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=s<o:p></o:p></p>
<p class=MsoPlainText>essionId%>&WEBLAYOUT=<%=webLayout%>&LOCALE=en"><o:p></o:p></p>
<p class=MsoPlainText></frameset><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>****************************<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>This page creates a horizontal split page with two pages
in it. If you<o:p></o:p></p>
<p class=MsoPlainText>adjusted frameset rows="50,*" to "frameset
cols="*,*" you would get a<o:p></o:p></p>
<p class=MsoPlainText>page split in half vertically. Then change the
src="" element to the<o:p></o:p></p>
<p class=MsoPlainText>two pages you want shown.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Hope that clears it up a bit.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>-Mark Pendergraft<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>-----Original Message-----<o:p></o:p></p>
<p class=MsoPlainText>From: mapguide-users-bounces@lists.osgeo.org<o:p></o:p></p>
<p class=MsoPlainText>[mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf
Of Rodolfo<o:p></o:p></p>
<p class=MsoPlainText>Moreno<o:p></o:p></p>
<p class=MsoPlainText>Sent: Wednesday, January 21, 2009 7:47 AM<o:p></o:p></p>
<p class=MsoPlainText>To: mapguide-users@lists.osgeo.org<o:p></o:p></p>
<p class=MsoPlainText>Subject: Re: [mapguide-users] Two maps in the same layout<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Hi Jackie,<o:p></o:p></p>
<p class=MsoPlainText>I don't understand what you want to tell me, could you
elaborate on your<o:p></o:p></p>
<p class=MsoPlainText>idea?<o:p></o:p></p>
<p class=MsoPlainText>this the code of my beginning page<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><script runat="server"><o:p></o:p></p>
<p class=MsoPlainText>String webLayout =<o:p></o:p></p>
<p class=MsoPlainText>"Library://Samples/Sheboygan/Layouts/SheboyganAspTest.WebLayout";<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>String defaultUser = "Anonymous";<o:p></o:p></p>
<p class=MsoPlainText>String defaultPassword = "";<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>String sessionId1 = "";<o:p></o:p></p>
<p class=MsoPlainText>String sessionId2 = "";<o:p></o:p></p>
<p class=MsoPlainText></script><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><%<o:p></o:p></p>
<p class=MsoPlainText> try<o:p></o:p></p>
<p class=MsoPlainText> {<o:p></o:p></p>
<p class=MsoPlainText> // Initialize
a session and register a variable to hold the<o:p></o:p></p>
<p class=MsoPlainText> // session id,
then initialize the Web Extensions, connect<o:p></o:p></p>
<p class=MsoPlainText> // to the
site, and create a session.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> InitializeWebTier();<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>
MgUserInformation userInfo = new MgUserInformation(defaultUser,<o:p></o:p></p>
<p class=MsoPlainText>defaultPassword);<o:p></o:p></p>
<p class=MsoPlainText> MgSite site =
new MgSite();<o:p></o:p></p>
<p class=MsoPlainText>
site.Open(userInfo);<o:p></o:p></p>
<p class=MsoPlainText> sessionId1 =
site.CreateSession();<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> site = new
MgSite();<o:p></o:p></p>
<p class=MsoPlainText> site.Open(userInfo);<o:p></o:p></p>
<p class=MsoPlainText> sessionId2 =
site.CreateSession();<o:p></o:p></p>
<p class=MsoPlainText> }<o:p></o:p></p>
<p class=MsoPlainText> catch (Exception e)<o:p></o:p></p>
<p class=MsoPlainText> {<o:p></o:p></p>
<p class=MsoPlainText>
Response.Write(e.Message);<o:p></o:p></p>
<p class=MsoPlainText> }<o:p></o:p></p>
<p class=MsoPlainText>%><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><html><o:p></o:p></p>
<p class=MsoPlainText><head><o:p></o:p></p>
<p class=MsoPlainText> <title>Viewer Sample
Application</title><o:p></o:p></p>
<p class=MsoPlainText></head><o:p></o:p></p>
<p class=MsoPlainText><frameset rows="30,*"
frameborder="no" framespacing="0"><o:p></o:p></p>
<p class=MsoPlainText> <frame id="titleFrame"
frameborder="no" marginwidth="0"<o:p></o:p></p>
<p class=MsoPlainText>marginheight="0"<o:p></o:p></p>
<p class=MsoPlainText>scrolling="no" src="title.html"> <o:p></o:p></p>
<p class=MsoPlainText> <frameset cols="50%,50%"><o:p></o:p></p>
<p class=MsoPlainText> <frame id="viewer1Frame"
frameborder="no" marginwidth="0"<o:p></o:p></p>
<p class=MsoPlainText>marginheight="0" scrolling="no"<o:p></o:p></p>
<p class=MsoPlainText>src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=sessionId1%>&WEBL<o:p></o:p></p>
<p class=MsoPlainText>AYOUT=<%=webLayout%>&THEMINGTYPE=1"><o:p></o:p></p>
<p class=MsoPlainText>
<frame id="viewer2Frame" frameborder="no"
marginwidth="0"<o:p></o:p></p>
<p class=MsoPlainText>marginheight="0" scrolling="no"<o:p></o:p></p>
<p class=MsoPlainText>src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=sessionId2%>&WEBL<o:p></o:p></p>
<p class=MsoPlainText>AYOUT=<%=webLayout%>&THEMINGTYPE=2"><o:p></o:p></p>
<p class=MsoPlainText> </frameset><o:p></o:p></p>
<p class=MsoPlainText></frameset><o:p></o:p></p>
<p class=MsoPlainText></html><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>thanks,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Jackie Ng wrote:<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> The easiest way is to have an outer frameset (or 2
outer iframes) that<o:p></o:p></p>
<p class=MsoPlainText>> points to your individual ajax viewers.<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> - Jackie<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> Rodolfo Moreno wrote:<o:p></o:p></p>
<p class=MsoPlainText>>> <o:p></o:p></p>
<p class=MsoPlainText>>> I want to put two maps in the same layout and
moreover each map must<o:p></o:p></p>
<p class=MsoPlainText>be<o:p></o:p></p>
<p class=MsoPlainText>>> themed in different way just after of that the
application to be<o:p></o:p></p>
<p class=MsoPlainText>loaded<o:p></o:p></p>
<p class=MsoPlainText>>> (the theming must be done automatically
according to a placed<o:p></o:p></p>
<p class=MsoPlainText>preference<o:p></o:p></p>
<p class=MsoPlainText>>> in the first time that the application to be
loaded).<o:p></o:p></p>
<p class=MsoPlainText>>> <o:p></o:p></p>
<p class=MsoPlainText>>> I did a test application usign ajax viewer and I
got it, however I<o:p></o:p></p>
<p class=MsoPlainText>have<o:p></o:p></p>
<p class=MsoPlainText>>> modified many files of the mapguide extensions
(MAINFRAME.ASPX,<o:p></o:p></p>
<p class=MsoPlainText>>> FRAMESETTASKBAR.TEMPL, FRAMESETNOTASKBAR.TEMPL,
MAPFRAME.ASPX,<o:p></o:p></p>
<p class=MsoPlainText>>> AJAXMAPPANE.TEMPL). <o:p></o:p></p>
<p class=MsoPlainText>>> I would like to know if it's possible to achieve
it without the need<o:p></o:p></p>
<p class=MsoPlainText>of<o:p></o:p></p>
<p class=MsoPlainText>>> modifying that files?<o:p></o:p></p>
<p class=MsoPlainText>>> Also I'd like to know if it's possible to do it
in FUSION viewer (I<o:p></o:p></p>
<p class=MsoPlainText>>> prefer FUSION than AJAXVIEWER).<o:p></o:p></p>
<p class=MsoPlainText>>> <o:p></o:p></p>
<p class=MsoPlainText>>> I am attaching a image of my test application.<o:p></o:p></p>
<p class=MsoPlainText>>> <o:p></o:p></p>
<p class=MsoPlainText>>> thanks in advance, <o:p></o:p></p>
<p class=MsoPlainText>>> <o:p></o:p></p>
<p class=MsoPlainText>>>
http://n2.nabble.com/file/n2189508/testApp.jpg <o:p></o:p></p>
<p class=MsoPlainText>>> <o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>-----<o:p></o:p></p>
<p class=MsoPlainText>Rodolfo Moreno<o:p></o:p></p>
<p class=MsoPlainText>CivilEng<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>-- <o:p></o:p></p>
<p class=MsoPlainText>View this message in context:<o:p></o:p></p>
<p class=MsoPlainText>http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2192823.html<o:p></o:p></p>
<p class=MsoPlainText>Sent from the MapGuide Users mailing list archive at
Nabble.com.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>_______________________________________________<o:p></o:p></p>
<p class=MsoPlainText>mapguide-users mailing list<o:p></o:p></p>
<p class=MsoPlainText>mapguide-users@lists.osgeo.org<o:p></o:p></p>
<p class=MsoPlainText>http://lists.osgeo.org/mailman/listinfo/mapguide-users<o:p></o:p></p>
<p class=MsoPlainText>_______________________________________________<o:p></o:p></p>
<p class=MsoPlainText>mapguide-users mailing list<o:p></o:p></p>
<p class=MsoPlainText>mapguide-users@lists.osgeo.org<o:p></o:p></p>
<p class=MsoPlainText>http://lists.osgeo.org/mailman/listinfo/mapguide-users<o:p></o:p></p>
<p class=MsoPlainText>_______________________________________________<o:p></o:p></p>
<p class=MsoPlainText>mapguide-users mailing list<o:p></o:p></p>
<p class=MsoPlainText>mapguide-users@lists.osgeo.org<o:p></o:p></p>
<p class=MsoPlainText>http://lists.osgeo.org/mailman/listinfo/mapguide-users<o:p></o:p></p>
</div>
</body>
</html>