Advertisement:

Author Topic: How to run java scripts inside the post?  (Read 1521 times)

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
How to run java scripts inside the post?
« 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

Offline Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 6,744
  • Gender: Male
  • SMF Customizer
    • colinschoen on GitHub
Re: How to run java scripts inside the post?
« Reply #1 on: May 12, 2012, 02:34:40 PM »
You will need to be an administrator on the forum, but use the following code.

Code: [Select]
[html]
...CODE HERE...
[/html]
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #2 on: May 12, 2012, 02:41:44 PM »
yes i have try that when i try is nothink showing post blank

Offline Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 6,744
  • Gender: Male
  • SMF Customizer
    • colinschoen on GitHub
Re: How to run java scripts inside the post?
« Reply #3 on: May 12, 2012, 02:45:42 PM »
Are you an admin on the forum?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #4 on: May 12, 2012, 02:48:27 PM »
YES

Offline Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 6,744
  • Gender: Male
  • SMF Customizer
    • colinschoen on GitHub
Re: How to run java scripts inside the post?
« Reply #5 on: May 12, 2012, 02:49:04 PM »
What is the code snippet you are trying to display?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Offline NanoSector

  • On Hiatus
  • SMF Super Hero
  • *
  • Posts: 10,120
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: How to run java scripts inside the post?
« Reply #6 on: May 12, 2012, 02:51:27 PM »
Rather, does the code snipped output something?
My Mods / Mod Builder - A tool to easily create mods / Support team member / Website - Help us test SMF 2.1!
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #7 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>

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #8 on: May 14, 2012, 07:42:50 AM »
Dump...

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 2,881
  • Gender: Male
    • i30 Owners Club
Re: How to run java scripts inside the post?
« Reply #9 on: May 14, 2012, 08:41:58 AM »
i'am try to put tyhis code
Your code worked fine in my forum when surrounded by [html] and [/html] tags

Offline busterone

  • SMF Hero
  • ******
  • Posts: 2,106
  • Gender: Male
  • Devil Dog
    • The Demon's Den
Re: How to run java scripts inside the post?
« Reply #10 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.