Solved

JQUERY MIXED AJAX AND STATIC TABS

Posted on 2011-09-10
1
285 Views
Last Modified: 2012-05-12
My design requires several tab controls on the same page as well as some which need to get content via ajax. Also, if possible, is there a way to make the ajax call once one the tab is click and clicked and not make another call when the tab is brought into focus again.

I have searched for a complete solution which integrates these features but no luck so far. So basically:

1. I need to use several Tab controls in containers on the same page.
2. The tabs will be a mix of static tabs (content generated via mysql query) and Ajax tabs (content pushed into a tab container after the page is loaded on tab button click).
3. I would like to specify if the tab button should go out and make the ajax call again to update the content when clicked or just show the content retrived in the same way the static tab s behave.
Appreciate your help. Thanks!
3. If the
 
0
Comment
Question by:pathfinder11
1 Comment
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36520870
<<is there a way to make the ajax call once one the tab is click and clicked and not make another call when the tab is brought into focus again.>>
You just have to set a flag for each tab. If the flag is false, then make the ajax call, else dont
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

There is basically two types of AJAX request in mootools. Request  and Request.HTML Request: Request is the basic XHR request class in MooTools. While not extremely useful on its own, it provides the basic functionality for both Request.HTM…
Today I am discussing AJAX problems in IE7 and I bet this will helps many guys out here who have problems with AJAX work. Lets start with the discovery of problem and then we will talk about its different solutions. My last two projects included …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now