Hi all!
I have some questions about using JQueryUI.
1. Dialog:
When I trying to create dialog with content including <script> section, it shows one large dialog with main content, and one small empty dialog, why?
For example:
- $('<div>This is some text</div><script scr="path/to/script.js" type="text/javascript></script>"').dialog({
- closeOnEscape:true,
- modal:true,
- resizable:false,
- draggable:false,
- width:'auto'
- });
Ok, when this dialog appearing it show to dialogs, one normal with div, and one empty small dialog.
2. Tooltip:
I want to do this thing: show\hide tooltip with custom content only on some events (not hover event).
When i trying this:
- t=$(document).tooltip({
- content:'Some text',
- items:<some jQuery selector>
- });
-
- t.tooltip('open');
It doesn't working. Tooltip appear, but on hover event, but i want to show\hide tooltip on my custom event, how can I do that?