Using Jscript in _HTML Block

I'd like to put a jscript (see below) on the homepage.

I was able to use Chrome to edit the _HTML BLOCK to OPENCONGRESS

then I put the code in the html block and saved.

 

When i reloaded homepage it shows the scripting not the widget.

Any idea what I'm doing wrong?

 

<script type="text/javascript">
oc_host_url = "http://www.opencongress.org/";
oc_num_items = "5";
oc_item_type = "news-bill";
oc_bgcolor = "ffffff";
oc_textcolor = "333333";
oc_bordercolor = "999999";
</script>
<script type="text/javascript" src="http://www.opencongress.org/javascripts/syndicator.js">
</script>

Quote · 4 Jun 2009

Sorry  .....  got sidetracked  .....  Enter it as HTML as shown in next post  ..... 
Works fine for me with FireFox 3.0.10 and v6.1.6  .....  

HTH
.

Quote · 4 Jun 2009

Did you put it in as pure html? To use javascript you need to put the code in using the html button. It needs to be entered as raw html code.


https://www.deanbassett.com
Quote · 4 Jun 2009

Interesting.  I was going to say just edit your HTML block in page builder and be sure to select HTML in the TinyMce.  But I tried it and it did not work.  That is how I always added Jscript in the past versions of Dolphin.  So I went to PhpMyadmin and loaded it directly into the content block in the pagecompose table for that HTML block and it worked.

 

So I guess the real answer is to insert it directly into the database. The table is Pagecompose and browse for the HTML block named as you named it on the index page.  Edit the entry and add the code straight into the content block.

 

Tallyplayer

Quote · 4 Jun 2009

Interesting.  I was going to say just edit your HTML block in page builder and be sure to select HTML in the TinyMce.  But I tried it and it did not work.  That is how I always added Jscript in the past versions of Dolphin.  So I went to PhpMyadmin and loaded it directly into the content block in the pagecompose table for that HTML block and it worked.

So I guess the real answer is to insert it directly into the database. The table is Pagecompose and browse for the HTML block named as you named it on the index page.  Edit the entry and add the code straight into the content block.

Tallyplayer

Really? I guess i better try this with the new version then. I have always just put it in using the html button in the editor.

https://www.deanbassett.com
Quote · 4 Jun 2009

I just realized I tried in IE, so it may have been an IE problem.  I usually always use FF for editing, so maybe it still works. 

 

Tally

Quote · 4 Jun 2009

Hmmmmmmmm  .....   back to the old:

Try different browsers  .....  No browser is consistent across the entire installation  .....
Also be sure to clear your browser caches  .....

HTH
.


Quote · 4 Jun 2009

Try updating your Java on your PC, I once was recommended that and it helped..

Quote · 5 Jun 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.