Learn Photoshop, Flash, Adobe AIR, ExtJS, jQuery, Ajax, Dojo, HTML, CSS, JavaScript, XML, Accessibility, Database, DWR, Gears, GWT, Java, JSON, MooTools, Office, Perl, PHP, Programming, Prototype, Scriptaculous and more

Want to explore your choice of video from all over world at once place! then what are you waiting for, just click, explore and learn.

Tech Video Bytes

Snippet Code for Simple Ajax Tabs with cool CSS Styles

Categories: Ajax, Featured, Programming
Tags: , ,
Written By: admin

Hey folks over there, here I came up with simple Ajax Tabs, you guys can show case your valuable content using tabs scenario that to with Ajax. This is simple and elegant way of representing your content when your pages have tons of content to display. If you go through the code its simple and basic Ajax implementation, if you are a web-developer its easy to understand. In the example which I am attaching with this snippet article consists of index.html, ajax.js, tabs.css and lastly the content page named as contentpage1.html

If the required page is not loaded then it will show up and error like the below screen shot:

Error Message

If the required page is loaded then the content is loaded onto one simple ‘div’ and this will look something similar like the screen shot below:

Page Loaded Successfully

If there is any problem with the request or response then it will look something similar like the screen shot below:

Problem in Request / Response

So do you need the full content, here it is - Snippet Code for Ajax Tabs

Rock up the web world with Ajax, I will strive hard to deliver basic and high level snippets, please let us know your feedback on all the posted articles.

23 Responses to “Snippet Code for Simple Ajax Tabs with cool CSS Styles”

  1. admin Says:

    Dear Developers, for the above snippet please use web-server for better results. You guys can use windows default server IIS.

  2. 26 Best ways to implement AJAX, CSS and Javascript based Tabs at Witty Sparks Says:

    [...] Source: http://www.developersnippets.com/?p=22 [...]

  3. Bookmarks » Blog Archive » 26 Best ways to implement AJAX, CSS and Javascript based Tabs Says:

    [...] Source: http://www.developersnippets.com/?p=22 [...]

  4. Simple Ajax tabs with CSS | codelinkers Says:

    [...] @ http://www.developersnippets.com/?p=22 var addthis_pub = ‘codelinkers’; Back to Codelinkers your virtual Link Sharing [...]

  5. Emanuel Says:

    [quote comment="14"]Dear Developers, for the above snippet please use web-server for better results. You guys can use windows default server IIS.[/quote]

    Um, what?

  6. Nomadishere : Seeker of Truth » Blog Archive » links for 2007-06-10 Says:

    [...] Snippet Code for Simple Ajax Tabs with cool CSS Stylesat Developer Snippets This is simple and elegant way of representing your content when your pages have tons of content to display. (tags: tabs menu menu.example css design ajax ajax.examples) [...]

  7. admin Says:

    Hi Emanuel,

    My Intension was to say the developers that if we want to run an Ajax Application, we need a server interaction (I mean any web server).

  8. Emanuel Says:

    Ah, gotcha. Wasn’t quite clear what you were implying, thought you were telling people IIS was required to render the tabs ;)

  9. Rakesh Says:

    Hello,
    I am trying to implement this on IIS and I keep getting the Error message. In fact, when I try to use the default files that I downloaded from your site, I still got the error. Are there some other changes I need to make to ajax.js?

    Thanks
    Rakesh.

  10. admin Says:

    Hi Rakesh, Firstly I would like to thank you for viewing developersnippets site, well coming to your query, in the zip file which I have attached to this article - has got three folders (images, js, style) and two html files (index.html, and contentpage1.html), so when you place this “AjaxSimpleTabs” folder into your IIS server - when you browser to index.html, the first tab would be enabled (selected) and the code will comes up as mentioned above in the second image. And if you select the second tab or third tab - it will give error message like the one which I have mentioned in the first image. I have placed content for only first tab not for tab two and three.

    Hope this will solve! you, keep visiting http://www.developersnippets.com

  11. Rakesh Says:

    It worked! I was unzipping all the files into the same folder without setting up the hierarchy as you suggested.

    Fantastic! Thank you very much for posting this, this was very useful.

    Thanks a lot,
    Rakesh.

  12. 26 Best ways to implement AJAX, CSS and Javascript based Tabs at Site Kreation Says:

    [...] Source: http://www.developersnippets.com/?p=22 [...]

  13. bdITjobs.com : : Blog » Blog Archive » 26 Best ways to implement AJAX, CSS and Javascript based Tabs Says:

    [...] Source: http://www.developersnippets.com/?p=22 [...]

  14. ToolKit » Archivo del Blog » Pestañas ó Tabs con AJAX, CSS y JavaScript Says:

    [...] 2. Tabs simple con AJAX y CSS: [...]

  15. Simple steps to develop AJAX Website – DeveloperSnippets | developersnippets.com Says:

    [...] 1. Snippet Code for Simple Ajax Tabs with cool CSS Styles [...]

  16. hiren pandya Says:

    Hey i have unzipped the folder and after that i have run the index.html page.
    but when i m clicking on the first link the error message is shown as the first pic over here .and when clicking on the second and third tab its showing only “Content Loading pic”.So what to do??

  17. Admin Says:

    Hi Hiren,

    If you see my first comment on this post, you might got the answer by seeing that only. It says below the same:

    “Dear Developers, for the above snippet to work please use any web-server for better results. You guys can use windows default server IIS.”

  18. System Error: -1072896658 in IE | developersnippets.com Says:

    [...] Snippet Code for Simple Ajax Tabs with cool CSS Styles 2. Using XMLHttpRequest, reading XML data (Adobe AIR Application) 3. Remove special characters [...]

  19. Error: Invalid source HTML for this operation | developersnippets.com Says:

    [...] System Error: -1072896658 in IE 2. Snippet Code for Simple Ajax Tabs with cool CSS Styles 3. Using XMLHttpRequest, reading XML data (Adobe AIR Application) 4. Remove special characters [...]

  20. Free JavaScript database for your browser, Taffy DB | developersnippets.com Says:

    [...] and which is a free and opensource JavaScript Library which acts as a thin layer inside Web 2.0 and Ajax applications. Unique features are: * Under 10K! * Simple, JavaScript Centric Syntax * Fast * Easy to include [...]

  21. Placing a Play Icon over the image using CSS | developersnippets.com Says:

    [...] articles which you would like to read: 1. Snippet Code for Simple Ajax Tabs with cool CSS Styles 2. Simple steps to develop AJAX Website – DeveloperSnippets 3. JavaScript Visitors Browser [...]

  22. Adding a div, button to the body tag dynamically using JavaScript DOM | developersnippets.com Says:

    [...] articles which you would like to read: 1. Placing a Play Icon over the image using CSS 2. Snippet Code for Simple Ajax Tabs with cool CSS Styles 3. Simple steps to develop AJAX Website – DeveloperSnippets 4. JavaScript Visitors Browser [...]

  23. css Says:

    Cascading Style Sheets (CSS) web design lessons
    Css link Properties Attributes - examles

    http://css-lessons.ucoz.com/link-css-examples-1.htm
    http://css-lessons.ucoz.com/link-css-examples-2.htm

Leave a Reply

Featured & Popular Articles