• evanomics

    (@evanomics)


    i am working on https://www.genesselect.com/blog and am trying to insert a stock ticker into the header. this is the ticker I am attempting to use:
    https://www.stockapplets.com/led-stock-quotes-ticker-applet.php

    the applet code is:

    <body bgcolor=#555555>
    
    <applet
      archive="LedTicker.jar"
      code="overload.ledticker.LedTickerApplet"
      width="400" height="27">
      <param name="pauseOnMouseOver" value="yes">
      <param name="preload" value="no">
      <param name="message" value="STOCKAPPLETS.COM">
      <param name="bgColor" value="30,30,30">
      <param name="offDotColor" value="50,50,50">
      <param name="downColor" value="255,0,0">
      <param name="scriptFields" value="SYMBOL,LAST,CHANGE,CHANGE%">
      <param name="upColor" value="0,255,0">
      <param name="stayColor" value="255,255,200">
      <param name="messageColor" value="255,255,0">
      <param name="symbolColor" value="250,250,220">
      <param name="symbols" value="GOOG=GOOGLE,YHOO,MSFT">
    
      <param name="refreshPeriod" value="1000">
      <param name="rotationSleep" value="15">
      <param name="letterSpacing" value="2">
      <param name="feed" value="https://genesisselect.com/blog/ticker/feed-random.php">
      <param name="vSpace" value="3">
      <param name="displayFields" value="NAME,LAST,CHANGE,CHANGE%,ARROW">
    </applet>
    
    </body>
    </html>

    you can see it running here: https://genesisselect.com./blog/ticker/ledticker.html

    As you can see, it runs fine by itself on an html page, but when I try inserting that html applet code in anywhere, it does not work. I created a div and tried it in the header, tried inserting an opening html tag, tested it on a normal page in the html section, and have had no success. Does anyone have any idea of how to get this running?

    Or, if you know of a stock ticker that runs in php that would be acceptable as well.

    I will buy you dinner if you can help me figure this out.

    Thanks

Viewing 1 replies (of 1 total)
  • because of the rewrite rules I have in my .htaccess file on my wordpress host-server (apache) the java applet I use (ptviewer.jar) is not working but gives errors like this:

    java.lang.NullPointerException
    	at ptviewer.extractParameter(Unknown Source)
    	at ptviewer.myGetParameter(Unknown Source)
    	at ptviewer.ReadParameters(Unknown Source)
    	at ptviewer.init(Unknown Source)

    etc.
    Although it used to work.

    I think you can avoid this by either rewriting the rules in:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    or changing the permalinks to standard and deleting the rewrite section in the .htaccess file

    Maybe this gives you some ideas in which direction you should look to solve your problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Running a java applet from an HTML page’ is closed to new replies.