• Resolved m1rado

    (@m1rado)


    Hello there,

    I have a page that dynamically generates content using Javascript/jQuery based on which button on that page is clicked. I have it working in such a way that there is a script loaded on the page which has an addEventListener which waits for its button to be clicked. Once the button is clicked, the script pulls HTML from a text file saved on the server into a variable, then updates a <div> on the page with the HTML loaded from the text file.

    This all works flawlessly, except that shortcodes saved in the text file do not get parsed and instead just show up as plaintext.

    I was able to get around this issue with another shortcode by simply viewing page source and using the generated HTML instead of the shortcode. However, when I tried to do the same with Tabby Responsive Tabs, it did not work. It looks like this is the base-level HTML that your shortcode creates:

    <div class="responsive-tabs">
    <h2 class="tabtitle">About Us</h2>
    <div class="tabcontent">
    
    </div><h2 class="tabtitle">Annual Report</h2>
    <div class="tabcontent">
    
    </div><h2 class="tabtitle">Theater ROcKs</h2>
    <div class="tabcontent">
    
    </div><h2 class="tabtitle">What's New</h2>
    <div class="tabcontent">
    
    </div>
    </div>

    Is that correct? Can you think of any way that I could use your tabs within my use case? If I’m unable to use them within the loaded HTML, then they won’t be much use to me once I’ve got my site relaunched unfortunately.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cubecolour

    (@numeeja)

    in addition to building the html markup for the tabs, the presence of the tabby shortcodes also add the js & css used by the tabs, so you would need to allow for that.

    As your usage is very different to how the plugin is designed to be used, getting this to work is not within the scope of the free support I am able to provide.

    Thread Starter m1rado

    (@m1rado)

    Well, that should have been obvious I suppose, but total newb here at all things html/css/js/etc so everything ends up being a surprise.

    If I were to purchase one of the premium addons, would that make this sort of support request an acceptable one? I am most definitely in the market for a plugin that will allow me to use tabs/accordians within the framework I have suggested above, but I want to be sure that whichever plugin/solution I pay for with company money, actually assists us with our goals!

    Thank you again, your support is most appreciated.

    Plugin Author cubecolour

    (@numeeja)

    Support for the core plugin & the add-ons can only be provided when the plugin is used as outlined in the documentation, so I am afraid that buying an add-on would not help in this usage.

    For you are trying to achieve, making/commissioning a new plugin specific to your exact requirements would probably be the best solution.

    Thread Starter m1rado

    (@m1rado)

    One thing that’s become apparent to me is that I’ll have to learn a lot more before I can do things… The way I want to do them. =p

    Thank you so much, your quick help and professionalism is an example for all businesspeople!

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

The topic ‘Attempting to load Tabby tabs with javascript’ is closed to new replies.