Is index.php redirecting parameters to overviewtask.php?<br><br>
<div><span class="gmail_quote">2007/4/11, Krunoslav <<a href="mailto:a_krunoslav@gmx.net">a_krunoslav@gmx.net</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi all. I'm trying to run my first php script, based on gotopoint.php, but so<br>far without success. I'm sure someone will see what I'm doing wrong and give
<br>me a hint: I'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&Y=3000&Scale=500">http://127.0.0.1/mapguide/index.php?X=5000&Y=3000&Scale=500
</a><br><br>My right frame (overviewtask.php in example) has code like this:<br><br><html><br><br><head><br> <title>Welcome</title><br> <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<br> <meta http-equiv="content-script-type" content="text/javascript" /><br> <meta http-equiv="content-style-type" content="text/css" /><br> <link href="styles/globalstyles.css" rel="stylesheet" type="text/css">
<br> <link href="styles/alphastyles.css" rel="stylesheet" type="text/css"><br> <link rel="stylesheet" href="../viewerfiles/viewer.css" type="text/css">
<br><br><script language="javascript"><br><br>function OnPageLoad()<br>{<br> parent.parent.ZoomToView(<?echo $X;?>,<?echo $Y;?>,<?echo $Scale;?>,<br>true);<br>}<br><br></script><br>
<br></head><br><br><br><?php<br><br> if (isset($_GET['X'])) {<br>$X=$_GET['X'];<br>$Y=$_GET['Y'];<br>$Scale=$_GET['Scale'];<br>echo"<br><body onLoad=\"OnPageLoad()\">
<br><h1>Zooming...</h1><br></body>";<br>} else {<br><br>echo"<br><body class=\"AppFrame\"><br><h1 class=\"AppHeading\">Something</h1><br></body>";
<br>}?><br><br></html><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 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'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