Monday, April 2, 2012

JQuery Tab Click Custom Event with Ajax load of contents

<div id="setup-tabs">
<li><a href="/Admin/Setup/Sites" title="Setup Tabs Sites">Sites</a></li>
<div id="Setup_Tabs_Sites"></div>

<script type="text/javascript">
select: function (event, ui) {
//ajax loads the content from http://yourdomain/Admin/Setup/Sites
var url = $.data(, 'load.tabs');

//retrieves the id of the tab clicked
var tabID = $(ui.panel).attr('id');

//format the function name and retrieve the object
var tabClick = window[tabID + "_Click"];

//checks if function exists
if(typeof tabClick == 'function') {
//executes the function
return true;
load: function (event, ui) {

function Setup_Tabs_Sites_Click()

No comments:

Post a Comment