Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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???
  #2 (permalink)  
Old April 2nd, 2011, 03:57 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

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',....).
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.