TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 103
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 96
  • Total: 96

trying to get a "contact your state rep" script to work in an html & javascript

Started by srmmedia, November 25, 2009, 10:59:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

srmmedia

I am trying to get the following code to work in a block on my page here: http://420movement.com

you can see it on the lower left  panel

its not loading , i tried it on my same server with Wordpress and it worked.


Code:


<script>if (WIDGETBOX) WIDGETBOX.renderWidget('eeec449b-4f1d-4e3e-b36d-7548ff00de64');</script><noscript>Get the &lt;a href="http://www.widgetbox.com/widget/findrep"&gt;Find Your U.S. Representative&lt;/a&gt; widget and many other &lt;a href="http://www.widgetbox.com/"&gt;great free widgets&lt;/a&gt; at &lt;a href="http://www.widgetbox.com"&gt;Widgetbox&lt;/a&gt;! Not seeing a widget? (&lt;a href="http://docs.widgetbox.com/using-widgets/installing-widgets/why-cant-i-see-my-widget/"&gt;More info&lt;/a&gt;)</noscript>


End

IchBin

That code is not correct. Some of your characters have been changed to html entities. When you paste the html code into the editor, you must select the <> button first. This puts the editor into a code mode where you can then paste the HTML into the box, and then save it.

srmmedia


JPDeni

This is the code you should be using:


<div id="cqp-findrep"></div><script src="http://widgets.cqpress.com/findrep/
getfindrep.ashx" type="text/javascript"></script>

srmmedia

Quote from: JPDeni on November 25, 2009, 11:44:07 PM
This is the code you should be using:


<div id="cqp-findrep"></div><script src="http://widgets.cqpress.com/findrep/
getfindrep.ashx" type="text/javascript"></script>

thats still not working, i thank you for your effort....but jeesh what gives here?

srmmedia

Quote from: JPDeni on November 25, 2009, 11:44:07 PM
This is the code you should be using:


<div id="cqp-findrep"></div><script src="http://widgets.cqpress.com/findrep/
getfindrep.ashx" type="text/javascript"></script>

whenever i insert that code , i click "save" then go back to the <> and the code is not there anymore

JPDeni

I'm not sure if that's a bug with the editor or not.

Try turning off the editor altogether and see what happens.

srmmedia

Quote from: JPDeni on November 26, 2009, 12:36:29 AM
I'm not sure if that's a bug with the editor or not.

Try turning off the editor altogether and see what happens.
how do you turn off the editor? im sorry im a novice here but doing the best i can.

ZarPrime

That code that JPDeni posted works fine in an HTML and Javascript block.  See my beta 4 test site, top block on the left panel ...
http://talesofthehavenexpanse.com/smf1test/index.php

What kind of block are you using and what is happening with the block?

ZarPrime

srmmedia

Quote from: ZarPrime on November 26, 2009, 01:03:44 AM
That code that JPDeni posted works fine in an HTML and Javascript block.  See my beta 4 test site, top block on the left panel ...
http://talesofthehavenexpanse.com/smf1test/index.php

What kind of block are you using and what is happening with the block?

ZarPrime
im also using an html javascript block.  I dunno when i insert her code then click save , it doesnt show anything in the block , then when i go back to the block to view it the code is gone .  and yes i am clicking into the <>

This website is proudly hosted on Crocweb Cloud Website Hosting.