--- nfo/php/libs/org.netfrag.glib/DataSource/Generic.php 2003/04/04 02:37:14 1.13 +++ nfo/php/libs/org.netfrag.glib/DataSource/Generic.php 2003/04/04 21:19:21 1.14 @@ -12,9 +12,12 @@ * Cvs-Log: * *
- * $Id: Generic.php,v 1.13 2003/04/04 02:37:14 jonen Exp $ + * $Id: Generic.php,v 1.14 2003/04/04 21:19:21 joko Exp $ * * $Log: Generic.php,v $ + * Revision 1.14 2003/04/04 21:19:21 joko + * modified exception handling (enhanced, purged redundant code) + * * Revision 1.13 2003/04/04 02:37:14 jonen * _query[action] == write * @@ -732,6 +735,7 @@ case 'schema': //print "Testing schema:" . "
"; $command = 'querySchema'; + $args = array( $this->_query[filter] ); break; } @@ -817,24 +821,6 @@ $box = container(); - // box client code (javascript) - $code_js = " - - "; - //$script = html_script($code_js); - //print $script->render(); - $box->add( $code_js ); - // box style $style = container( html_style("text/css", '.boxlabel_darkgreen { color: darkgreen; font-weight:bold; }'), @@ -848,10 +834,12 @@ $locatorbox = html_div('box_dsg'); $locatorbox->set_id("locatorbox_$boxcount"); $locatorbox->add( Dumper($this->_locator) ); + + // FIXME: ie/mozilla? //$locatorbox->set_style('visibility:false;'); $locatorbox->set_style('display:none;'); - $statusbox->add( html_span('boxlabel_darkgreen', "Locator:"), html_a("javascript:toggle_vis('locatorbox_$boxcount');", '[show]'), $locatorbox, html_br() ); + $statusbox->add( html_span('boxlabel_darkgreen', "Locator:"), jsAnchor( 'toggle_vis', array("locatorbox_$boxcount"), '[show]'), $locatorbox, html_br() ); $call = $this->_locator->get_call(); $statusbox->add( html_span('boxlabel_darkgreen', "Method:"), $call[method], html_br() ); if (sizeof($call[args])) { @@ -860,7 +848,8 @@ $statusbox->add( html_span('boxlabel_darkgreen', "Count:"), $this->get_result_count(), html_br() ); $box->add( $statusbox ); - print $box->render(); + //print $box->render(); + trace( $box ); }