Title: Java script as tab content
Last modified: August 30, 2016

---

# Java script as tab content

 *  [pyrox90](https://wordpress.org/support/users/pyrox90/)
 * (@pyrox90)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/)
 * Hello,
 * first of all I want to say sorry for my english.
 * I’m currently working on a Soccerpage for my Club. During this I was attentive
   to your Plugin. It is exactly what i was looking for. Now I have the question
   how could I use Java as tab content / is it possible to use java scrit as tab
   content ?
 * I want to use it for a widget of a page called “fussball.de” which shows the 
   next games and the standings.
 * I’m looking forword to hearing from you.
 * Thanks and have a nice day.
 * [https://wordpress.org/plugins/responsive-tabs/](https://wordpress.org/plugins/responsive-tabs/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * (@spwebguy)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/#post-6441761)
 * Hi there,
 * You could try using a shortcode in the content but why javascript? What are you
   trying to achieve exactly?
 * Thanks!
 *  Thread Starter [pyrox90](https://wordpress.org/support/users/pyrox90/)
 * (@pyrox90)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/#post-6441824)
 * Hi there,
 * thanks for your answer. I am actually creating a homepage for my soccerclub. 
   I want to have tabs like “Team” “Table” and so on. The page “fussball.de” create
   widgets for homepages. If I create on of those widgets for one of our teams i
   get a java code. I really want to use this plugin but i need to find a way how
   I can show this standings.
 *  Thread Starter [pyrox90](https://wordpress.org/support/users/pyrox90/)
 * (@pyrox90)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/#post-6441825)
 * This is what I get after creating a widget
 * <div id=”widget1″></div>
    <script type=”text/javascript”> new fussballdeWidgetAPI().
   showWidget(‘widget1’, ‘here stand my code’); </script>
 *  Plugin Author [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * (@spwebguy)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/#post-6441831)
 * Hi there,
 * Can you try adding the script part to your footer just before the </body> tag?
 * The div part should go in the Tab content: <div id=”widget1″></div>
 * Keep me posted, please submit a ticket to our support platform if you need help,
   we’re much faster there ([http://wpdarko.com/support](http://wpdarko.com/support)).
 *  Thread Starter [pyrox90](https://wordpress.org/support/users/pyrox90/)
 * (@pyrox90)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/#post-6441841)
 * Hi Darko,
 * thanks. I am one step further now. And now come the “but”
 * By adding the javascript in the footer (without the <div id=”widget1″></div> 
   I get an error message by opening the page where stands that the div with the
   id widget 1 is missing. But the table output in the tab exists 😮
 * When I put the div in the tab above the java code and in the footer, the error
   message dosnt exist anymore, but the table is in the footer as well as in the
   tab. Do you have a tip (code) for making the output – just in the footer – unvisible.
   Can I add some code between “<div id=”widget1″></div>” ?
 *  Plugin Author [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * (@spwebguy)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/#post-6441845)
 * Hi there,
 * Sorry for the slow answer,
 * Could you submit a support ticket here: [http://wpdarko.com/support](http://wpdarko.com/support)
 * We’ll try to fix this for you!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Java script as tab content’ is closed to new replies.

 * ![](https://ps.w.org/responsive-tabs/assets/icon-256x256.png?rev=1126142)
 * [Responsive Tabs](https://wordpress.org/plugins/responsive-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-tabs/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/java-script-as-tab-content/#post-6441845)
 * Status: not resolved