This is a message.

Forum user: ignacvucko

Basic information

Registered Jun 9, 2008
Last login Aug 28, 2009
Forum posts 10
Direct URL http://www.flowplayer.org/forum/users/4311

Latest forum posts

Posts:

Registered:

bug?: expose getwidth() function in FF

Posted: Aug 28, 2009


function getWidth() {
  var w = $(window).width();
  if ($.browser.mozilla) { return w; }
  ...

The above causes an issue as follows:
1. Using FF, go tohttp://flowplayer.org/tools/expose.html
2. Resize your browser to make the horizontal scroll bar appear
3. Click in the field to invoke the expose functionality
4. Use the horizontal scrollbar to scroll to the right
You'll see that the expose ends abruptly rather than
extending to the edge of the browser window.

Changing the above to the following fixes it for me:
if ($.browser.mozilla) { return $(document).width(); }

Will this cause problems elsewhere?
If no, can it be incorporated in your next release?

Thanks,
Ignac

Posts:

Registered:

» » » » Willing to try

Posted: Jun 24, 2009

Any update on this...

Wondering if I should go ahead and use SteveM's version.
It does pretty much exactly what i need, but i'm worried about having to constantly backport future changes. Would be great if his versions were incorporated into the code base...

cheers

Posts:

Registered:

» » Performance of tooltips

Posted: Jun 23, 2009

Thanks for the quick reply Tero!

Well i'm not talking about the on-hover performance.
I'm speaking about the call to set up the tooltip on page load.
Using the toggle effect still results in the same 159 javascript function calls when xxx.tooltip() is called.

In my case, I have a large grid and want to use the tooltips in each row. Similar to your example here:http://flowplayer.org/tools/demos/tooltip/table.html

The example has 14 rows...but if you have a thousand rows, then the tooltip() function call causes your CPU to spike and also delays page load. I know I could use setTimeout to do things in the background, but at the heart of the issue is if it's possible to reduce the 159 number to something smaller. I'm not really sure why it takes so many function calls...I would think in the absolute basic toggle case that it should only make a few calls: position the div, and then show the div.

any suggestions would be appreciated...

Posts:

Registered:

Performance of tooltips

Posted: Jun 23, 2009

I'm creating a pretty hefty site with lots of tooltips, tabs, overlays, etc.

I created an absolute minimal tooltip and loaded it up in Firebug's profiler to measure its performance. A single tooltip results in 159 javascript calls. Each additional tooltip results in an additional 114 javascript calls.

NOTE: i'm sure it's the tooltip() that's causing this as just calling $(".tt") results in only 19 javascript calls. I've also tried to pass in {tip:"#myid"} as an argument with basically identical performance.

This seems unreasonably high...can this be improved somehow?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <script src="http://cdn.jquerytools.org/1.0.2/jquery.tools.min.js"></script>
    <script>
      $(document).ready(function() {
        console.profile("Profile Report");
        console.time("runtime");

        // This results in 159 + 114*N javascript function calls
        $(".tt").tooltip({position:['center','right']});

        console.profileEnd();
      });
    </script>
    <style>
      div.tooltipbox     {background-color:#ffff8e;border:1px solid #ddd;padding:5px;display:none;color:#44335F;text-align:left;font-size:9pt;outline-radius:4px;-moz-outline-radius:4px;-webkit-outline-radius:4px;}
      div.tooltipbox div {font-weight:normal;}
    </style>
  </head>
  <body id="body">
    <a class="tt" href="#">test</a><div class="tooltipbox">this is a test tooltip - it causes 159 javascript calls</div>
    <a class="tt" href="#">test</a><div class="tooltipbox">this is another tooltip - it causes 114 javascript calls</div>
  </body>
</html>

thanks

Posts:

Registered:

Suggestion: Another built in Tooltip effect

Posted: Jun 20, 2009

How about adding a built-in tooltip effect for "dont start showing the tooltip unless the mouse remains hovered over the element for x milliseconds", with a default of 0 being "show immediately".

thanks

Posts:

Registered:

» » Tooltip inside a Tab has issues

Posted: Jun 17, 2009

Thank you!

Posts:

Registered:

Tooltip inside a Tab has issues

Posted: Jun 16, 2009

I tried adding a tooltip inside a tab but the tooltip doesn't work because it inherits the CSS styles from the tab.
Specifically, the height of the tab is the issue.
Trying to override the CSS has no effect.

I made as few modifications as possible to the minimal tab example given here:http://flowplayer.org/tools/demos/tabs/index.html

To reproduce, hover over the 'Test' link.
The resulting tooltip is not yellow and has the tab's height, not a sensible default height.
Moving the anchor link outside of the tab makes it work.

FULL SOURCE EXAMPLE

<!--
	This is the jQuery Tools standalone demo, the fastest way to get started.
	You can freely copy things on your site. All demos can be found here:

	http://flowplayer.org/tools/demos/

	- cdn.jquerytools.org is available until the end of 2010 for testing	
	- css files should not be referenced from flowplayer.org when in production
	
	Enjoy!
-->

<!-- DOCTYPE is always recommended. see: http://www.quirksmode.org/css/quirksmode.html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!-- standalone page styling -->
<style>
body {
	padding:150px 50px;
	font-family:"Lucida Grande","Lucida Sans Unicode","bitstream vera sans","trebuchet ms",verdana;
}

/* get rid of those system borders being generated for A tags */
a:active {
  outline:none;
}

:focus {
  -moz-outline-style:none;
}

div.tooltip { 
    background-color:#ffff8e;
    /*outline:1px solid #fff;*/
    border:1px solid #ddd;
    padding:5px; 
    display:none; 
    color:#44335F; 
    text-align:left; 
    font-size:9pt; 
 
    /* outline radius for mozilla/firefox only */ 
    outline-radius:4px; 
    -moz-outline-radius:4px; 
    -webkit-outline-radius:4px; 
}      
div.tooltip div { 
    font-weight:normal; 
}
 

 
</style>

<!--
	this file includes all tools together with the jQuery library
-->
<script src="http://cdn.jquerytools.org/1.0.2/jquery.tools.min.js"></script>

<!-- tab styling -->
<link rel="stylesheet" type="text/css" href="http://static.flowplayer.org/tools/css/tabs.css" />

<!-- tab pane styling -->
<style>

/* tab pane styling */
div.panes div {
	display:none;		
	padding:15px 10px;
	border:1px solid #999;
	border-top:0;
	height:100px;
	font-size:14px;
	background-color:#fff;
}

</style>

<!-- the tabs -->
<ul class="tabs">
	<li><a href="#">Tab 1</a></li>
	<li><a href="#">Tab 2</a></li>
	<li><a href="#">Tab 3</a></li>
</ul>

<!-- tab "panes" -->
<div class="panes">
	<div>First tab content. Tab contents are called "panes"
        <a href="#" rel="#overlay">Test</a><div class="tooltip">MyTooltip</div>            
  </div>

	<div>Second tab content</div>
	<div>Third tab content</div>
</div>

<!-- This JavaScript snippet activates those tabs -->
<script>

// perform JavaScript after the document is scriptable.
$(function() {
	// setup ul.tabs to work as tabs for each div directly under div.panes
	$("ul.tabs").tabs("div.panes > div");
  
  $("div > a").tooltip();
  
});

</script>


Posts:

Registered:

Error: m.expose().close is not a function

Posted: Jun 12, 2009

Occasionally I am seeing this error.
In IE it results in an alert, in Firefox, it's logged to the console.

Error: m.expose().close is not a function
Source file:http://cdn.jquerytools.org/1.0.1/jquery.tools.min.js
Line: 35

It occurs when I try to hit the close button on an overlay that also uses 'expose'. It doesn't happen every time, and I'm having a hard time readily reproducing it, but it does occur somewhat often.

I'll try to reproduce and point to a page where you can see it happening, but until then, please let me know if this is a known issue.

Thanks

Posts:

Registered:

» » » Bug? : Tooltips broken in IE7?

Posted: Jun 12, 2009

ok - thanks for the quick reply.

would probably suggest that the demos themselves use a transparent gif rather than a png...simply to not turn off users who are considering to use the library.

i know, i know...no one in their right mind uses IE.
but, if you're like me and are evaluating a js toolkit, the first thing you do is fire it up FF, IE, Chrome, Opera, Safari, etc. and see if it really has cross browser support.

also thanks for the hide fix that you posted in another thread.
having played with the tooltips for a day, one thing that I thought would be useful is for you to give the option to specify absolutely placement of the tooltip. (currently you allow relative placement and then fine-tuning the relative placement using offsets).

cheers

Posts:

Registered:

Bug? : Tooltips broken in IE7?

Posted: Jun 11, 2009

Viewinghttp://flowplayer.org/tools/demos/tooltip/index.html in IE7 results in a big ugly black border around the image.

Seehttp://kochhar.net/tooltip1.png to see what I see.
Seehttp://kochhar.net/tooltip2.png for IE version info.

Please let me know if this is expected.
Thanks for the awesome toolkit.