I would like to use jQuery Tools Tabs, and have a set of regular inline content tabs, and one AJAX tab. But I only see samples of either inline content, OR ajax content. Can I mix them?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AFAIK, it is either all AJAX or none. However, you can easily AJAX a single pane yourself. All you need to do is add a click handler (preferably using
.one()so that it removes itself after it is run for the first time) to the tab; this click handler can then load the pane’s content with.load()or whatever other AJAX means you want.For example, the HTML would be something like this:
and the JavaScript would be something like this:
And here’s a simple live example: http://jsfiddle.net/ambiguous/stxha/