Title: broken JAVA application
Last modified: August 18, 2016

---

# broken JAVA application

 *  [george71](https://wordpress.org/support/users/george71/)
 * (@george71)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/)
 * It would be so cool if I can use this java application in a blogpost (not the
   menu). How can I enable java in wordpress. (no it’s not the provider blocking
   the script)
    See here the code working: [http://www.calculatorcat.com/moon_phases/phasenow.php](http://www.calculatorcat.com/moon_phases/phasenow.php)
   The code below I need to paste in a blog post to get it working: <!– // Begin
   Current Moon Phase HTML (c) CalculatorCat.com // –><script language=”JavaScript”
   type=”text/javascript”> var ccm_cfg = { n:’1′, pof:’1′, dt:’1′, tc:’#FFFFFF’,
   pth:” } </script><table width=”140″ bgcolor=”#000000″ style=”background-color:
   bgcolor=”#000000″ ” cellpadding=”0″ cellspacing=”3″ border=”0″><tr><td align=”
   center” style=”border: 1px solid #FFFFFF;color:#FFFFFF;padding-top:5px;padding-
   bottom:5px;” bgcolor=”#000000″><font face=”arial,verdana,sans-serif” size=”1″
   color=”#FFFFFF”><span style=”font-size:10px;font-family:arial,verdana,sans-serif;
   color:#FFFFFF”>CURRENT MOON<script language=”JavaScript” type=”text/javascript”
   src=”[http://www.moonmodule.com/cs/ccm_b.js”></script><script](http://www.moonmodule.com/cs/ccm_b.js”></script><script)
   language=”JavaScript” type=”text/javascript” src=”[http://www.moonmodule.com/cs/ccm_v.js”></script><span](http://www.moonmodule.com/cs/ccm_v.js”></script><span)
   style=”display:block;padding-top:5px”>[moon info](http://www.calculatorcat.com/moon_phases/moon_phases.phtml)
   </span></span></font></td></tr></table><!– // end moon phase HTML // –>

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [jwurster](https://wordpress.org/support/users/jwurster/)
 * (@jwurster)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/#post-266453)
 * I have the same code working on my blog in the sidebar. I just pasted it in my
   sidebar.php and it work. [http://www.jwurster.us/blog](http://www.jwurster.us/blog).
   
   What is the error you are getting?
 *  Thread Starter [george71](https://wordpress.org/support/users/george71/)
 * (@george71)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/#post-266457)
 * Hi Jim, I don’t want it in my sidebar but in a blogpost. The error is that the
   moon picture and information is not loeaded. from the moonphases website
    <b-
   qoute>Q: The moon isn’t showing up. I’m sure I copied all the code exactly as
   shown above. What is wrong? A: This rarely happens — the module is very simple
   to add to your site and works 99% of the time. Sometimes website-editing software
   can mess up the code, but most likely the problem is that your webhost does not
   allow 3rd party Javascript, which is required for this module to work. This occasionally
   happens with free website providers, and sometimes with weblogs … but try it 
   out before coming to that conclusion. If you are seeing a black box area but 
   no moon, you can be almost certain it is your webhost blocking the Javascript.
   Contact your webhost to verify. </b-qoute>
 * So I wonder isn’t there a way to work around this.
 *  [jwurster](https://wordpress.org/support/users/jwurster/)
 * (@jwurster)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/#post-266458)
 * You know, it also didn’t work for me on a page I created in WP. You can click
   on the Astronomy page on my blog. However, it definitely works on the main blog.
   I wish I knew why this seems to happen when using Pages. What I have done to 
   get Pages to work is to use the redirectify plugin. Maybe I will try this with
   the astronomy page I have made. You might want to try it, too.
 *  Thread Starter [george71](https://wordpress.org/support/users/george71/)
 * (@george71)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/#post-266459)
 * does it have to do with the doctype of those pages?
    [http://wordpress.org/support/topic/33953](http://wordpress.org/support/topic/33953)
 *  [jwurster](https://wordpress.org/support/users/jwurster/)
 * (@jwurster)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/#post-266461)
 * I took the code I had on my Astronomy page and put it into a file called astronomy.
   php. I deleted it from the code on that page and added the custom field redirect
   which points to the astronomy.php. It now works fine.
 * I guess I really need to learn more about the WP script flow to help me better
   understand why certain things work and others don’t.
 * This should solve your problem as it did mine.
 *  Thread Starter [george71](https://wordpress.org/support/users/george71/)
 * (@george71)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/#post-266463)
 * nevermind I did decide to put it in the sidebar and not use it in a blogpost 
   anymore…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘broken JAVA application’ is closed to new replies.

## Tags

 * [java](https://wordpress.org/support/topic-tag/java/)

 * 6 replies
 * 2 participants
 * Last reply from: [george71](https://wordpress.org/support/users/george71/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/broken-java-application/#post-266463)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
