Solved

JQUERY MIXED AJAX AND STATIC TABS

Posted on 2011-09-10
1
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

732 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