[mapguide-users] function ShowFirstClass() in displayschema.php

carls carlshe at 163.com
Mon Nov 5 02:40:23 PST 2012


while previewing a featuresource with displayschema.php, by clicking
'preview' button in Maestro, there will be a warning message at
ShowFirstClass()

       *function Toggle(objId)
        {
            if(document.getElementById(objId).style.display == 'none')
            {
               
document.getElementById(objId).previousSibling.firstChild.src =
"./images/collapse_pane.png";
                document.getElementById(objId).style.display = 'block';
            }
            else
            {
               
document.getElementById(objId).previousSibling.firstChild.src =
"./images/expand_pane.png";
                document.getElementById(objId).style.display = 'none';
            }
        }
        function ShowFirstClass()
        {
            document.getElementById("Data_"+"<?php echo
$firstClass?>").previousSibling.firstChild.src =
"./images/collapse_pane.png";
            document.getElementById("Data_"+"<?php echo
$firstClass?>").style.display = 'block';
            document.getElementById("Geom_"+"<?php echo
$firstClass?>").previousSibling.firstChild.src =
"./images/collapse_pane.png";
            document.getElementById("Geom_"+"<?php echo
$firstClass?>").style.display = 'block';
        }*


While tracing the code, it could be found the objId in Toggle includes the
schema name, but $firstClass in ShowFirstClass doesn't.

So I wonder the $firstClass is not parsed correctly, or the schema name
should be inserted before $firstClass.




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/function-ShowFirstClass-in-displayschema-php-tp5013964.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list