How do I get event notification whe a jquery.tools tooltip closes?

Hi:

I'm working with the jquery.tools tooltip.

I would like to be able to get notification when the tooltip closes.

My tooltip allows users to enter some values in textboxes.
I would like to save these values when the tooltip closes/hides.

Is there a way to get notification of the close/hide event?

Is there a better way to do this?

This is what my tooltip creation looks like in jquery:
    $(this).tooltip({ 
           tip: '#toolTipDetails',
           predelay: 500,
           offset: [50, 0],
           //delay: 200,
           effect: 'slide'
     });

Open in new window


Thanks,
JohnB
LVL 1
jxbmaSoftware ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
There is an onHide() function so you can grab your form data in there. I think we need to see more of your code to give you a specific answer.

$(this).tooltip({
	tip: '#toolTipDetails',
	predelay: 500,
	offset: [50, 0],
	effect: 'slide',
	onHide: function() {
		//this fires when the tooltip is closed so your code will go in here!
		console.log("Closed");
	}
});

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jxbmaSoftware ConsultantAuthor Commented:
As you usual, you rock.

Thanks so much,
JB
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.