ajaxSetting data only applied once
August 12, 2008 - 3:33pm — vspek
ajax setting type=tooltip is only applied once. After showing the first cluetip data is set to null.
Example on live website:
www.lekkerweg.nl/nl/
if you look with firebug, the first cluetip at the top will send:
GET http://www.lekkerweg.nl/nl/system/search/tooltip.jsp?label=global.help.s...
The second tooltip on the blue search box will show in firebug
GET http://www.lekkerweg.nl/nl/system/search/tooltip.jsp?label=vrijetekst.on...
| Project: | clueTip - flexible, enhanced tooltip |
| Version: | 0.9.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active (needs more info) |
Jump to:
Description
$('a.tooltip').cluetip({
dropShadowSteps: 2, showTitle: false, titleAttribute:'donotuse',
ajaxSettings: {
data: "type=tooltip"
}
});ajax setting type=tooltip is only applied once. After showing the first cluetip data is set to null.
Example on live website:
www.lekkerweg.nl/nl/
if you look with firebug, the first cluetip at the top will send:
GET http://www.lekkerweg.nl/nl/system/search/tooltip.jsp?label=global.help.s...
The second tooltip on the blue search box will show in firebug
GET http://www.lekkerweg.nl/nl/system/search/tooltip.jsp?label=vrijetekst.on...
The type=tooltip is not submitted with the second (or third etc.) tooltip.
I have searched the code for a fix, but sorry cannot come up with a fix.
regards,
Vincent Spek

Comments
#1
Hi Vincent,
I'm pretty sure this is due to a bug in the deep recursive $.extend() method in jQuery versions prior to 1.2.5. Would you mind updating your jQuery file to 1.2.6 and trying again? Also, you might want to grab the latest jquery.cluetip.js from the svn repo.
#2
I have created an example with all files from the svn repo (jquery, cluetip) , if you look with firebug you will see that only the first tooltip sends type=tooltip to the server.
Example location:
http://www.spek.info/cluetip/