Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] Ajax profile tabs [HOT]



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Shadow

avatar
Administrator
Administrator


[Tutorial] Ajax profile tabs

Name: Ajax profile tabs
Autor: N/A
Version: All
Category: Javascript


This tutorial will allow you to switch profile tabs without page refresh.
 
Admin Panel Modules  HTML & JAVASCRIPT JavaScript Code Management New JavaScript
Code:
[panda=js]$(function(){
            var tabListeners = function() {
                $('#tabs li').click(function(e) {
                    e.preventDefault();
                    var url = this.firstChild.href;
                    if (url == '#') return;
                    $('#main').load(url+' #main-content', tabListeners);
                });
            };
            tabListeners();
        });
In all pages.

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

2
Offline

  J0k3R^

avatar
Pemanently Banned
Pemanently Banned
can we have a preview?

Powered by PunBB
Currently 0 users have thanked J0k3R^ for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum