Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

JQUERY MIXED AJAX AND STATIC TABS

Posted on 2011-09-10
1
Medium Priority
?
297 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:
Gurvinder Pal Singh earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

730 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