Wrox Programmer Forums
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 2nd, 2011, 03:44 PM
Registered User
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chp 6: Tabs close function

Hello, is there a way to add a close function in the tabs of the chat ares(the tabs that contain the name of the contact you're chatting with). I've checked the code, but I was confused? Which file should I edit and in which part???
Old April 2nd, 2011, 03:57 PM
Wrox Author
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts

See http://jqueryui.com/demos/tabs/ for how to use jQuery UI's tabs. At a glance, it looks like you will want to use the tabTemplate option to add a close button to the tab, and then handle the click of the close button to remove the tab. To remove a tab, there is a API call called remove().

All this work would be in gab.js. You'd probably want to modify the calls to .tabs('add',....).

Similar Threads
Thread Thread Starter Forum Replies Last Post
GetDate() function in Chp 21 Rcloud BOOK: Professional Visual Studio 2008 ISBN: 978-0-470-22988-0 4 August 25th, 2009 06:26 PM
Browser close when screen saver close Rehanrana Pro VB 6 1 April 7th, 2008 03:09 AM
window.close() failing to...well...close! mheathcote Javascript How-To 2 October 31st, 2005 03:02 PM
Tabs dkr72 C# 1 December 3rd, 2004 02:42 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.