Is index.php redirecting parameters to overviewtask.php?<br><br>
<div><span class="gmail_quote">2007/4/11, Krunoslav &lt;<a href="mailto:a_krunoslav@gmx.net">a_krunoslav@gmx.net</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi all. I&#39;m trying to run my first php script, based on gotopoint.php, but so<br>far without success. I&#39;m sure someone will see what I&#39;m doing wrong and give
<br>me a hint: I&#39;m trying to set up link from another page, outside of Mapguide,<br>with something like this:<br><br><a href="http://127.0.0.1/mapguide/index.php?X=5000&amp;Y=3000&amp;Scale=500">http://127.0.0.1/mapguide/index.php?X=5000&amp;Y=3000&amp;Scale=500
</a><br><br>My right frame (overviewtask.php in example) has code like this:<br><br>&lt;html&gt;<br><br>&lt;head&gt;<br>&nbsp;&nbsp; &lt;title&gt;Welcome&lt;/title&gt;<br>&nbsp;&nbsp; &lt;meta content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot;&gt;
<br>&nbsp;&nbsp; &lt;meta http-equiv=&quot;content-script-type&quot; content=&quot;text/javascript&quot; /&gt;<br>&nbsp;&nbsp; &lt;meta http-equiv=&quot;content-style-type&quot; content=&quot;text/css&quot; /&gt;<br>&nbsp;&nbsp; &lt;link href=&quot;styles/globalstyles.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
<br>&nbsp;&nbsp; &lt;link href=&quot;styles/alphastyles.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;<br>&nbsp;&nbsp; &lt;link rel=&quot;stylesheet&quot; href=&quot;../viewerfiles/viewer.css&quot; type=&quot;text/css&quot;&gt;
<br><br>&lt;script language=&quot;javascript&quot;&gt;<br><br>function OnPageLoad()<br>{<br>&nbsp;&nbsp; parent.parent.ZoomToView(&lt;?echo $X;?&gt;,&lt;?echo $Y;?&gt;,&lt;?echo $Scale;?&gt;,<br>true);<br>}<br><br>&lt;/script&gt;<br>
<br>&lt;/head&gt;<br><br><br>&lt;?php<br><br>&nbsp;&nbsp;if (isset($_GET[&#39;X&#39;])) {<br>$X=$_GET[&#39;X&#39;];<br>$Y=$_GET[&#39;Y&#39;];<br>$Scale=$_GET[&#39;Scale&#39;];<br>echo&quot;<br>&lt;body onLoad=\&quot;OnPageLoad()\&quot;&gt;
<br>&lt;h1&gt;Zooming...&lt;/h1&gt;<br>&lt;/body&gt;&quot;;<br>} else {<br><br>echo&quot;<br>&lt;body class=\&quot;AppFrame\&quot;&gt;<br>&lt;h1 class=\&quot;AppHeading\&quot;&gt;Something&lt;/h1&gt;<br>&lt;/body&gt;&quot;;
<br>}?&gt;<br><br>&lt;/html&gt;<br><br>But, obviously, variables from URL are not passed to the right frame,<br>because output produced by this is:<br><br>parent.parent.ZoomToView(,,, true);<br><br>And, of&nbsp;&nbsp;course, httpd error log about Undefined X,Y,Scale variables.
<br><br>So, how can I pass the $_GET variable from url to the Task Pane, and finally<br>to ZoomToView function?<br><br>I read examples, but still don&#39;t quite understand this...<br><br><br>--<br>View this message in context: 
<a href="http://www.nabble.com/Trying-to-run-my-first-script-tf3558874s16610.html#a9937978">http://www.nabble.com/Trying-to-run-my-first-script-tf3558874s16610.html#a9937978</a><br>Sent from the MapGuide Users mailing list archive at 
<a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>mapguide-users mailing list<br><a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">
http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Lic. Jorge Rubio