Link to home
Start Free TrialLog in
Avatar of Computer Guy
Computer Guy

asked on

AJAX Tabs Script

Hi,

Please see the attached AJAX Tabs script.

All I want is 4 tabs that will include a PHP file from another directory only when clicked, not preloaded.

I've tried a bunch of things and had no luck

Thanks
AJAX-Tab-Script.zip
Avatar of skullnobrains
skullnobrains

you do not have to use ajax for this : a frame or iframe seems much simpler, but here is an ajax solution. i'm using jquery but it would not be too complicated to do the same in pure javascript

<div id="tab1" onclick="$('#content').load('YOUR_URL1_HERE body');">
</div>
<div id="tab2" onclick="$('#content').load('YOUR_URL2_HERE body');">
</div>
<div id="tab3" onclick="$('#content').load('YOUR_URL3_HERE body');">
</div>
<div id="content">
</div>
Avatar of Computer Guy

ASKER

Do you have a HTML page example with the included js /CSS files?
ASKER CERTIFIED SOLUTION
Avatar of skullnobrains
skullnobrains

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial