Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Organic Tabs – not working with PHP?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32895
    Avalonmel
    Participant

    I’ve just discovered Organic Tabs and it’s just what I need for a site I’m working on. I’ve got it to work with a pre-defined set of tabs where I’ve hard coded in the ul ids, etc. However, when I try to use it for a list that’s generated dynamically, it stops working.

    I’m using PHP to generate the content of the navigation list. For testing, I’ve grabbed the code that my PHP generated (from View Source) and pasted it directly into an HTML document and it works ok then. But when I run the PHP page, they just act like regular anchor links. Has this happened to anyone before?

    I’ve compared the generated code to my tested, hard-coded code and they’re the same so I’m very confused.

    #74866
    Avalonmel
    Participant

    I think I solved this. The problem was that I was removing class=”current” from the first item. I must have missed the part where it was mentioned why that was needed. Ugh. At least it’s working now!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.