Title: text widget not showing html and javascript.
Last modified: August 19, 2016

---

# text widget not showing html and javascript.

 *  [drewcam](https://wordpress.org/support/users/drewcam/)
 * (@drewcam)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/)
 * my website is [http://www.comedyimpressionist.com](http://www.comedyimpressionist.com)
 * I have a widget down the right side showing a contact form.
 * I’m using Display Widget to show on certain pages.
 * I have it set to show on the homepage and Videos.
 * However, although it shows properly on the homepage, in Videos there is just ‘
   Form Object’ written.
 * If I just write text in the widget it does show up on both pages.
 * the code I’m using for the form is –
 * <script type=”text/javascript” src=”swfobject.js”></script><div id=”CC6258465″
   >Form Object</div><script type=”text/javascript”>var so = new SWFObject(“contactform.
   swf”, “contactform.xml”, “201”, “445”, “7,0,0,0”, “#ffffff”);so.addParam(“classid”,“
   clsid:d27cdb6e-ae6d-11cf-96b8-444553540000”);so.addParam(“quality”, “high”);so.
   addParam(“scale”, “noscale”);so.addParam(“salign”, “lt”);so.addParam(“FlashVars”,“
   xmlfile=contactform.xml&w=201&h=445”);so.write(“C C6258465”);</script>
 * so why will the html show properly on the homepage and not the others? They are
   both static pages.
 * following another thread I installed HTML javascript Adder plugin but that had
   the same results.
 * really tried to work it out myself but can’t.

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493552)
 * try the code widget
    [http://wordpress.org/extend/plugins/php-code-widget/](http://wordpress.org/extend/plugins/php-code-widget/)
 *  Thread Starter [drewcam](https://wordpress.org/support/users/drewcam/)
 * (@drewcam)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493692)
 * I was hopeful samboll but it still comes up with the words Form Object.
 * any other suggestions?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493701)
 * You could try using absolute (full) urls instead of relative urls in your Flash
   code.
 *  Thread Starter [drewcam](https://wordpress.org/support/users/drewcam/)
 * (@drewcam)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493730)
 * thanks.
 * have I got urls in the code then?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493731)
 * Yes.
 * `src="swfobject.js"`
    `contactform.swf”, “contactform.xml”
 * etc
 *  Thread Starter [drewcam](https://wordpress.org/support/users/drewcam/)
 * (@drewcam)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493734)
 * esmi.
    i put absolute paths for contact form but that didn’t work either.
 *  Thread Starter [drewcam](https://wordpress.org/support/users/drewcam/)
 * (@drewcam)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493743)
 * apologies esmi. I didnt put the absolute path to swobject.js or contactform.xml
 * I am now a happy person because it now works.
 * truly you are the oracle esmi!
 * seriously. thank you for your help.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493752)
 * good call esmi
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493852)
 * More like a happy guess. 🙂

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

The topic ‘text widget not showing html and javascript.’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [text widget](https://wordpress.org/support/topic-tag/text-widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/text-widget-not-showing-html-and-javascript/#post-1493852)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
