Page 1 of 4
Counter Format Issue
Posted: Mon Jan 06, 2014 8:38 pm
by KitchM
I am having some problem trying to use some code from the Census Survey folks. It is:
<__iframe src="
http://www.census.gov/popclock/embed.ph ... clk=727707" width="389" height="930" frameBorder="0" allowtransparency="true"></__iframe>
It is probably me, but nothing shows up on the page but that code. I must not being using it correctly. I would appreciate a little help on this.
I am using CMSMS 1.11.9 thru Virtualmin 4.04Pro with LimeSurvey 2.05 (Stable) on CentOS 6.5, and accessing it thru Firefox 26.0. MySQL is version 5.1.71-1.el6. PHP is version 5.3.3-27.el6_5. Apache is version 2.2.15.
Thank you.
Re: Counter Format Issue
Posted: Mon Jan 06, 2014 8:47 pm
by velden
but nothing shows up on the page but that code
You didn't paste that code in the wysiwyg mode did you?
Re: Counter Format Issue
Posted: Mon Jan 06, 2014 8:51 pm
by KitchM
Yup, I sure did.
Re: Counter Format Issue
Posted: Mon Jan 06, 2014 8:54 pm
by KitchM
I am such a boob.

Now it shows up correctly.
Except for this message:
This site requires Javascript enabled to retrieve and display data.
I would like to do this by server-side java. Is that possible?
Thanks.
Re: Counter Format Issue
Posted: Mon Jan 06, 2014 9:38 pm
by KitchM
I should say it was working. However, it has now stopped displaying. I am at a loss. I cleared the cache and reloaded pages, all to no avail.
What did I do wrong now?
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 12:38 am
by JohnnyB
Seems like it could be the same issue as your other post.
For full iframe support in TinyMCE, you'll need to add support for iframe tag usage.
I can't say for sure if the default editor, MicroTiny, will support iframe html tags or not (without testing, I'm assuming it doesn't since it uses the TinyMCE engine...).
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 2:49 am
by KitchM
I will admit at this point that I am not knowledgeable on tags.
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 3:18 pm
by velden
If you suspect TinyMCE to delete the iframe tags you might consider turning off WYSIWYG for that specific page. Have a look at the Options tab of the content page.
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 4:18 pm
by KitchM
Sadly, that didn't help.
With wysiwyg on, the editor displays the correct counter and its formating. It even runs, incrementing the counts, in that editor window when java script is accepted. But it no longer displays on the open web page itself.
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 4:19 pm
by velden
Post a link.
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 4:37 pm
by KitchM
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 4:42 pm
by velden
Not sure what you're doing in that template but I see at least two times:
Code: Select all
<!DOCTYPE html PUBLIC "-//W...>
< html>
<head>
</head>
< body>
< /body>
< /html>
in the page source.
That is very wrong.
Re: Counter Format Issue
Posted: Tue Jan 07, 2014 5:19 pm
by KitchM
Standard CMSMS, because I did not type my own code anywhere.
Re: Counter Format Issue
Posted: Wed Jan 08, 2014 3:25 pm
by KitchM
Here is the code that I found in the page editor:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html>
<head>
</head>
</__body>
<!-- Add code here that should appear in the content block of all new pages -->
<__iframe src="
http://www.census.gov/popclock/embed.ph ... clk=727707" frameborder="0" width="389" height="930">
</__iframe>
<__body>
</__html>
What I find published on the web scares me too. How the heck did it get that way? What's wrong with the CMS?
Re: Counter Format Issue
Posted: Wed Jan 08, 2014 3:30 pm
by velden
I would not suspect the cms to have done this. Obviously you have edited the page (added the iframe code).