javascript XAMPP problem, minixampp OK

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

javascript XAMPP problem, minixampp OK

Postby andijota » 26. February 2006 18:43

javascript XAMPP problem, minixampp OK


[edit]
triviale loesung:: in php....ini's (habe es in 4 files gefunden)..

register_globals = on

..setzen, dann klappt's auch mit XAMPP und Treedoc.org
.. .. ..dann Treedoc bisschen umproggen.. :-)
[/edit]

unter minixampp funzt javascript fuer treedoc von treedoc.org, aber unter XAMPP nit. habe dann XAMPP deinstalliert und minixampp installiert: geht alles.

wuerde aber gern XAMPP nehmen, weil mercury gleich mit drinn ist.

vermute ich muesste in einer config oder ini was aendern um javascript mit XAMPP zu benutzen?

zB: apache bin php.ini
[Java]
;java.class.path = .\php_java.jar
;java.home = c:\jdk
;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
;java.library.path = .\

aber JAVA is kein JAVAscript :-(
Last edited by andijota on 27. February 2006 21:58, edited 1 time in total.
andijota
 
Posts: 6
Joined: 29. January 2005 13:20

Postby Wiedmann » 26. February 2006 18:50

JavaScript ist ja völlig unabhängig vom Server, da es ja nur im Client ausgeführt wird.

Bleibt also die Frage was nicht geht (evtl. mit einem kurzen Testbeispiel)?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby andijota » 27. February 2006 08:46

genau das document, bei dem unter XAMPP der fehler auftritt:
der eingebettete text klappt nicht auf
sieht man hier mit einem klick. [ ein klick auf die hellgruene zeile oeffnet den eingebetteten text , zweiter klick zum schliessen ]

http://www.treedoc.org

und das ist auch gleichzeitig die beschreibung wie treedoc funzt.


Code: Select all
 // the the javascript stuff
      // is for both NS and MSIE javascript, to keep track of scroll locations, but only
      // applies if javascript is enabled
      if ( !$GLOBALS[ "noJS"]){
   echo "<form name=\"scrollForm\" action=\"$mySelf\" method=\"get\">\n";
   echo "<input name=\"scrollTarg\" type=\"hidden\" value=\"-1\">\n";
   echo "<input name=\"s\" type=\"hidden\" value=\"\">\n";
   echo "<input name=\"c\" type=\"hidden\" value=\"\">\n";
   echo "<input name=\"noJS\" type=\"hidden\" value=\"\">\n";
     
   // the <noscript> part below gives non-JS users a chance to use the old anchor-based
   // almost-scrolling by creating the form variable noJS, which is then passed page-to-page
    echo "<NOSCRIPT><font color='red'>\n";
    echo "ATTENTION: Your browser seems not to use Javascript...so if the links below don't
               work, try clicking this button: \n";
    echo "   <input type=\"hidden\" name=\"noJS\" value=\"1\">\n";
    echo "   <input type=\"submit\" value=\"Try w/o Javascript\"><br>\n";
    echo " (Unfortunately, you may also miss out on link-highlighting,
                 the most potent visual trick of TreeDoc.  Sorry...I don't understand
                 why, so I can't fix it.)<br>\n";
    echo "</font></NOSCRIPT>\n";
    echo "   </form>\n";
   }

      echo "<script language=\"javascript\" >\n";

      // scrollTarget is the place to scroll back to (where the page was upon clicking)
      echo "var scrollTarget = -1;\n";



This page reminds you how to use the TreeDoc functions. For full explanations, see the folder pages on the grey folder-tabs above; for full examples, look at the TreeDoc documentation page source. To view this page separately, hit the "+" link at the very bottom.
inlink( LINK TEXT/SRC, EXPANDED TEXT/SRC, [optional: pagelink, astext, start=open])

For example,


<? inlink( "my link tab", "Some text which will appear in-place") ?>
<? inlink( "myIcon.gif", "fancyPage.php", "pagelink") ?>

tabRow( LINK_ARRAY, [optional: nobar, narrow, pagelink, astext, start=open])

For example,


$linkArray2 = array( "A real link" => "This one works, right?",
"text w/o link" => "",
"Another real link" => "Yup, this works too." );
tabRow( $linkArray2, "nobar start=open2" ); ?>

headWrapper( TITLE, [optional: META DESCRIPTION], [optional: META KEYWORDS])

For example


headWrapper( "TreeDoc Documenation",
"TreeDoc is a method for making HTML tree-control documents",
"HTML, PHP, tree, HCI, GUI, UI, graphical, interface, hypertext," );
or
headWrapper( "TreeDoc Documenation",
"TreeDoc is a method for making HTML tree-control documents" );
or
headWrapper( "TreeDoc Documenation" );


footWrapper()

For example


footWrapper();

setBG( FONTDEPTH )

For example


setBG( 1 );

will let a page hit directly have the same background color as the same page hit as a top-level inlink (i.e. depth = 1). Use this function before headWrapper().
andijota
 
Posts: 6
Joined: 29. January 2005 13:20

Postby Wiedmann » 28. February 2006 23:06

Das Script ist ja schon etwas älter und verlässt sich noch auf "register_globals = On".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 36 guests