text widget not showing html and javascript.
-
my website is 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.
-
try the code widget
http://wordpress.org/extend/plugins/php-code-widget/I was hopeful samboll but it still comes up with the words Form Object.
any other suggestions?
You could try using absolute (full) urls instead of relative urls in your Flash code.
thanks.
have I got urls in the code then?
Yes.
src="swfobject.js"
`contactform.swf”, “contactform.xml”etc
esmi.
i put absolute paths for contact form but that didn’t work either.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.
good call esmi
More like a happy guess. 🙂
The topic ‘text widget not showing html and javascript.’ is closed to new replies.