How to call a function from a qtip?
Hi,
I am simply trying to call a function from a qtip. The function should open an ext.window and display html. Nothing complicated, but it doesn´t work.
Cann anyone tell me how to achieve this?
Thanks,
Rob
Code:
function metadata() {
if (!winMetadata) {
var node = treePanel.getSelectionModel().getSelectedNode();
var layername = node.text;
var winMetadata = new Ext.Window({
title: '<span style="color:#00; font-weight:bold;">Metadaten: </span>' + layername,
layout: 'fit',
text: layername,
width: 800,
height: 500,
closeAction: 'hide',
plain: true,
items: [ct],
buttons: [{
text: 'Schließen',
handler: function () {
winContext.hide()
}
}]
})
}
}
// code in tree
....
qtip: "<a href='#' onclick='metadata();'>Metadata</a>
...