Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: jaisi on May 12, 2012, 02:19:53 PM

Title: How to run java scripts inside the post?
Post by: jaisi on May 12, 2012, 02:19:53 PM
If I just paste a java script or an html content to a post, it only displays the original content. I wanted to run a script/html on the post.
Thanks...

My forum V 2.2
Title: Re: How to run java scripts inside the post?
Post by: Colin on May 12, 2012, 02:34:40 PM
You will need to be an administrator on the forum, but use the following code.


[html]
...CODE HERE...
[/html]
Title: Re: How to run java scripts inside the post?
Post by: jaisi on May 12, 2012, 02:41:44 PM
yes i have try that when i try is nothink showing post blank
Title: Re: How to run java scripts inside the post?
Post by: Colin on May 12, 2012, 02:45:42 PM
Are you an admin on the forum?
Title: Re: How to run java scripts inside the post?
Post by: jaisi on May 12, 2012, 02:48:27 PM
YES
Title: Re: How to run java scripts inside the post?
Post by: Colin on May 12, 2012, 02:49:04 PM
What is the code snippet you are trying to display?
Title: Re: How to run java scripts inside the post?
Post by: NanoSector on May 12, 2012, 02:51:27 PM
Rather, does the code snipped output something?
Title: Re: How to run java scripts inside the post?
Post by: jaisi on May 12, 2012, 02:57:03 PM
i'am try to put tyhis code



<script type='text/javascript'> width=650, height=480, channel='asdfds5477a', e='2';</script><script type='text/javascript' src='http://www.mips.tv/content/scripts/mipsEmbed.js'></script>
Title: Re: How to run java scripts inside the post?
Post by: jaisi on May 14, 2012, 07:42:50 AM
Dump...
Title: Re: How to run java scripts inside the post?
Post by: Shambles on May 14, 2012, 08:41:58 AM
Quote from: jaisi on May 12, 2012, 02:57:03 PM
i'am try to put tyhis code
Your code worked fine in my forum when surrounded by [html] and [/html] tags
Title: Re: How to run java scripts inside the post?
Post by: busterone on May 14, 2012, 01:07:48 PM
Same for me as well.
You may want to check your browser or attempt to view your forum with a different browser to see if it is embedded.