How to add HTML/Script on forum?

Go down

How to add HTML/Script on forum?

Post by bugatty on September 14th 2013, 7:56 pm

Hello,

I have this code:


Code:
<script type="text/javascript" src="http://thc-racing.ucoz.com/design/forum-external/xdm/easyXDM.js"></script>
<script type="text/javascript">
var socket = new easyXDM.Socket({
onReady:  function() {
// this is needed for setting height on initial load
socket.postMessage(document.body.scrollHeight)
},
onMessage: function(message, origin){
// this is called from consumer (maybe by a timer)
socket.postMessage(document.body.scrollHeight)
}
});
</script>

And i would like to add it on the forum under the above form (not separate as it will not work at all), on every forum page (not just index page) as i need it to send height values to an iframe located on another domain.
How can i do it?

Thanks.

bugatty
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

Re: How to add HTML/Script on forum?

Post by SLGray on September 14th 2013, 8:20 pm

What does the code exactly do?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43465
Reputation : 3084
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Re: How to add HTML/Script on forum?

Post by bugatty on September 14th 2013, 8:26 pm

@SLGray wrote:What does the code exactly do?
It helps this page: http://thc-racing.ucoz.com/index/forum/0-14 to get the page height and dynamically resize the iFrame, but for that to work i need the script in all the pages not only index.

bugatty
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

Re: How to add HTML/Script on forum?

Post by bugatty on September 15th 2013, 4:57 pm

Bump!

bugatty
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

Re: How to add HTML/Script on forum?

Post by SLGray on September 15th 2013, 5:08 pm

@bugatty wrote:
@SLGray wrote:What does the code exactly do?
It helps this page: http://thc-racing.ucoz.com/index/forum/0-14 to get the page height and dynamically resize the iFrame, but for that to work i need the script in all the pages not only index.
@bugatty wrote:Bump!
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43465
Reputation : 3084
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Re: How to add HTML/Script on forum?

Post by bugatty on September 17th 2013, 4:09 pm

Bump!

bugatty
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum