You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

JQuery Tools incompatible with JQuery - use Firebug to catch up errors Created May 18, 2010

This thread is solved

Views: 21125     Replies: 89     Last reply 4 weeks and 1 days ago  
You must login first before you can use this feature

lubosdz
The greatest discoveries in 21st century will be made in the area of the gravitation.

Posts: 4

Registered:
Nov 20, 2009

JQuery Tools incompatible with JQuery - use Firebug to catch up errors

Posted: May 18, 2010

Hi folks,

I figured out, that releases of JQuery Tools are quite buggy or at least incompatible with JQuery releases.

The reason is - as a developer I always use firebug (FF plugin, e.g. newest 1.5.3) to check javascripts and DOM in browser. When I try to install JQuery tools (older but also newest 1.2.1) with JQuery (1.4.2), it throws sooo many errors in firebug console, that it makes it almost impossible to work with it. The error is usually of the same type: "variable X not defined".

I am wondering - are JQuery Tools developers not using some errors-catch up debug tool or am I doing something wrong..?

Even when I come to this DEMO site, I very often experience errors on Firebug console. I only can surf over demos when I shut Firebug down. How is this possible - to release such a buggy scripts.. :)

Due to this reason, I decided (with great regret) not to implement JQuery tools on my websites.

Does anybody have also this experience?

Or am I doing something wrong?

Pls dont tell me to uninstall Firebug coz it works okay (checked many times), and I need it daily for my work. I really think that JQuery developers are not paying attention to catch up uninitiated variables (passing variables) between JQuery library and JQuery Tools.

You can reproduce problem for example here:
http://flowplayer.org/tools/demos/overlay/apple.html
(on page load firebug throws error "break on error - d is undefined")

(It looks like some functions are not initiated, or perhaps scripts expired in cache... (?) Coz sometime it may happen that the same error will suddenly not occur, but another one would pop up few clicks later on another page. Not easy to reproduce.)

Unless this is fixed, I cannot implement buggy scripts on my websites:-(( even so powerful...:-((

Regards
Lubos

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» JQuery Tools incompatible with JQuery - use Firebug to catch up errors

Posted: May 19, 2010

Reply to: JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from lubosdz
weird stuff.

I also use Firebug all the time (what else!?) just like most of the web developers do.

I cannot get those errors you do. The apple.html page works just fine.

jansc

Posts: 5

Registered:
May 20, 2010

» » JQuery Tools incompatible with JQuery - use Firebug to catch up errors

Posted: May 20, 2010

Reply to: » JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from tipiirai
Hi! I have the same problem: All jQuery tools demo pages on flowplayer.org fail with "d is undefined". I use Firebug 1.5.4 and Firefox 3.6.3 on OS X. Any ideas how to fix that?

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » JQuery Tools incompatible with JQuery - use Firebug to catch up errors

Posted: May 20, 2010

Reply to: » » JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from jansc
sounds bad. do you have Flash on your browser? if not it *may* affect. just a shot in the dark.

jansc

Posts: 5

Registered:
May 20, 2010

» » » » JQuery Tools incompatible with JQuery - use Firebug to catch up errors

Posted: May 20, 2010

Reply to: » » » JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from tipiirai
I've installed Shockwave Flash version 10.0.42

kingjeffrey

Posts: 1

Registered:
May 10, 2010

Same Warnings with flowplayer

Posted: Jun 17, 2010

Reply to: » JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from tipiirai
I am getting the same warnings with flowplayer. jquery-1.4.2.min.js loads without warnings if flowplayer-3.2.2.min.js is not included. Both jquery-1.4.2.min.js and flowplayer-3.2.2.min.js throw a slew of warnings if both are included. flowplayer-3.2.2.min.js throws warnings even if it is the only script included.

The warnings show up in Firebug and Web Developer Toolbar extensions. I am using OS X 10.6.4, Firefox 3.6.3, Firebug 1.5.4, and Web Developer 1.1.8.

The warnings:
  • function m does not always return a value
    [Break on this error] ength;if(r===undefined){for(o in t){if...of p!="object"){return q}if(q&&p){m(p,
    flowpl...5563064 (line 24)
  • function n does not always return a value
    [Break on this error] (o)!=-1){r.push(this)}});return r}}fun...q[o].push(p)}function e(){return"_"+("
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] unction(){var B=""+this;o[B]=function(...ete s[w]}return y}return o}})};functio
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] unction(){var B=""+this;o[B]=function(...ete s[w]}return y}return o}})};functio
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] return w.getPlugin("logo")._fireEvent(...:function(K,J,M,L){if(typeof M=="funct
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] "onBeforePluginEvent"){var H=O.name||O...lipAdd"){if(O.isInStream){return}O=new
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] "onBeforePluginEvent"){var H=O.name||O...lipAdd"){if(O.isInStream){return}O=new
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] "onBeforePluginEvent"){var H=O.name||O...lipAdd"){if(O.isInStream){return}O=new
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] .splice(K,1)}if(P===false){return fals...|"fp"+e();r=G.id||E+"_api";G.id=r;t.pl
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] .splice(K,1)}if(P===false){return fals...|"fp"+e();r=G.id||E+"_api";G.id=r;t.pl
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] ow.flowplayer=window.$f=function(){var...]}else{if(o=="*"){return new d(a)}m(a,
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] function(){if(this.id()==o.id||this.id...({bgcolor:"#000000",version:[9,0],expr
    flowpl...5563064 (line 24)
  • anonymous function does not always return a value
    [Break on this error] place("#",""))}if(!f){return}if(typeof...16)}catch(n){try{var l=new ActiveXObje
    flowpl...5563064 (line 24)
  • reference to undefined property window.attachEvent
    [Break on this error] (function(){function g(o){console.log(...hembed",flashembed(this,l,f))})}}})();
    flowpl...5563064 (line 24)
  • reference to undefined property window.attachEvent
    [Break on this error] (function(){function g(o){console.log(...hembed",flashembed(this,l,f))})}}})();
    flowpl...5563064 (line 24)

kucrut

Posts: 8

Registered:
Jun 6, 2009

Warnings

Posted: May 20, 2010

Reply to: JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from lubosdz
Weird, all I see is warnings, and the demos work just fine.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Warnings

Posted: May 20, 2010

Reply to: Warnings, from kucrut
what kind of warnings? I don't see anything with similar browser setup. Eager to know!

kucrut

Posts: 8

Registered:
Jun 6, 2009

» » Warnings

Posted: May 20, 2010

Reply to: » Warnings, from tipiirai
Undefined properties, eg:

reference to undefined property a[++e]
http://cdn.jquerytools.org/1.2.2/full/jquery.tools.min.js
Line 50

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » Warnings

Posted: May 20, 2010

Reply to: » » Warnings, from kucrut
the error comes from the jQuery library and from the sources it looked like it was close to the JSONP calls. Maybe it is our webapp causing these. Do standalone pages throw errors? For example:

http://flowplayer.org/tools/demos/validator/server-side.htm

kucrut

Posts: 8

Registered:
Jun 6, 2009

» » » » Warnings

Posted: May 20, 2010

Reply to: » » » Warnings, from tipiirai
Yes, bunch of similiar warnings :)

jansc

Posts: 5

Registered:
May 20, 2010

» » » » Warnings

Posted: May 20, 2010

Reply to: » » » Warnings, from tipiirai
http://flowplayer.org/tools/demos/validator/server-side.htm loads fine, but when I fill in some values and click "submit form" I get the usual "d is undefined" in line 69 ofhttp://flowplayer.org/tools/download/combine/1.2.2/jquery.tools.min.js?select=full&debug=true

No warning on my machine.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » » Warnings

Posted: May 20, 2010

Reply to: » » » Warnings, from tipiirai
can please someone with a buggy browser test the tools on our dev server:

http://dev.flowplayer.org/tools/demos/validator/index.htm

it uses non-minified version of the tools so we can more clearly see what line causes the error. so what does the firebug now say?

Thanks!

kucrut

Posts: 8

Registered:
Jun 6, 2009

» » » » » Warnings

Posted: May 20, 2010

Reply to: » » » » Warnings, from tipiirai
It's still using the minified version, according to warnings from Firebug. I'm using Firefox/Gentoo Linux 64 bit. Firebug in my (virtual) WinXP 32bit doesn't throw these warnings.

Example warning:
reference to undefined property conf[name]
http://dev.flowplayer.org/tools/download/combine/1.2.2/jquery.tools.min.js?select=full&debug=true
Line 10598

From my experience, those warning are harmless :)

jansc

Posts: 5

Registered:
May 20, 2010

» » » » » Warnings

Posted: May 20, 2010

Reply to: » » » » Warnings, from tipiirai
It says "handler is undefined" in line 1573.

Stack trace:

add()
(?)()
(?)()
trigger()
trigger()
each()
each()
trigger()
checkValidity()
(?)()
handle()
eventHandle()

this.id is "myform". Dump of the this object from firebug (sorry for the formatting:
age
	input
 
	
get childElementCount
	1
 
	
get children
	[fieldset]
 
	
get classList
	{ length=0}
 
	
clientLeft
	0
 
	
clientTop
	0
 
	
contentEditable
	"inherit"
 
	
draggable
	false
 
	
email
	input
 
	
get firstElementChild
	fieldset
 
	
get lastElementChild
	fieldset
 
	
get nextElementSibling
	script
 
	
get previousElementSibling
	null
 
	
getBoundingClientRect
	getBoundingClientRect()
 
	
getClientRects
	getClientRects()
 
	
getElementsByClassName
	getElementsByClassName()
 
	
mozMatchesSelector
	mozMatchesSelector()
 
	
querySelector
	querySelector()
 
	
querySelectorAll
	querySelectorAll()
 
	
scrollIntoView
	scrollIntoView()
 
	
acceptCharset
	""
 
	
action
	""
 
	
attributes
	NamedNodeMap { 0=Attr, more...}
 
	
baseURI
	"http://dev.flowplayer.o...mos/validator/index.htm"
 
	
childNodes
	[<TextNode textContent="

 ">, fieldset, <TextNode textContent="

">]
 
	
className
	""
 
	
clientHeight
	351
 
	
clientWidth
	440
 
	
dir
	""
 
	
elements
	[fieldset, input, input, 5 more...]
 
	
encoding
	""
 
	
enctype
	""
 
	
firstChild
	<TextNode textContent="

 ">
 
	
id
	"myform"
 
	
innerHTML
	"

 <fieldset>
 <...utton>
 </fieldset>

"
 
	
lang
	""
 
	
lastChild
	<TextNode textContent="

">
 
	
length
	8
 
	
localName
	"form"
 
	
method
	""
 
	
name
	input
 
	
namespaceURI
	"http://www.w3.org/1999/xhtml"
 
	
nextSibling
	<TextNode textContent="

">
 
	
nodeName
	"FORM"
 
	
nodeType
	1
 
	
nodeValue
	null
 
	
offsetHeight
	351
 
	
offsetLeft
	473
 
	
offsetParent
	body
 
	
offsetTop
	58
 
	
offsetWidth
	440
 
	
ownerDocument
	Document index.htm
 
	
parentNode
	body
 
	
prefix
	null
 
	
previousSibling
	<TextNode textContent="

">
 
	
get scrollHeight
	351
 
	
scrollLeft
	0
 
	
scrollTop
	0
 
	
scrollWidth
	440
 
	
spellcheck
	false
 
	
style
	CSSStyleDeclaration { length=0}
 
	
tabIndex
	-1
 
	
tagName
	"FORM"
 
	
target
	""
 
	
textContent
	"

 
 Sample regi... form
 Reset
 

"
 
	
title
	""
 
	
url
	input

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » » » Warnings

Posted: May 20, 2010

Reply to: » » » » Warnings, from tipiirai
argh. my fellow coder is doing deployements at the same time and it wasn't minified. now it is. this helps me a bit:

reference to undefined property conf[name]
http://dev.flowplayer.org/tools/download/combine/1.2.2/jquery.tools.min.js?select=full&debug=true
Line 10598

i'll check that out.

lubosdz
The greatest discoveries in 21st century will be made in the area of the gravitation.

Posts: 4

Registered:
Nov 20, 2009

screenshots

Posted: May 20, 2010

Reply to: » » » » » Warnings, from tipiirai
Hi,

i tried to set up locally your demo with uncompressed library - here are 2 screenshots on the same error:

http://www.synet.sk/extra/jqtools_warnings_firebug/screenshot1.gif

http://www.synet.sk/extra/jqtools_warnings_firebug/screenshot2.gif

Hope, this will help & thank you.
Cheers
Lubos

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» screenshots

Posted: May 21, 2010

Reply to: screenshots, from lubosdz
ok. thanks.

fizzystutter

Posts: 3

Registered:
Dec 14, 2009

» » screenshots

Posted: May 27, 2010

Reply to: » screenshots, from tipiirai
Hi,

Have you made any progress on this issue ?

Thanks
James

wasDag

Posts: 2

Registered:
May 24, 2010

Tooltip issues, tooltip positioning and "d is undefined"

Posted: Jun 3, 2010

Reply to: » screenshots, from tipiirai
Strangest bug I've seen.
Works on simple demo type pages, no problems.

On my complex page it works in Safari and Chrome. Works in FF with firebug off. Throws a "d is undefined error" once you roll over a trigger for the tooltip ONLY if you start the browser with firebug ON.
If you reload the page in FF with firebug OFF it works, then you can turn firebug back on and it still works, does not throw errors.

If you can make sense of that you know a lot more about how firebug works than I!

However, (separate issue) the new version (1.2.2) of tooltip places tooltips in the wrong place, far from trigger element.
When I use the old version (1.1.0) put the tool tips next to the trigger element.
haven't figured out the pattern yet, has something to do with the exact CSS positioning of the trigger element?

New version does the tooltip placement fine on simple demo type pages, but not so well with more complex positioning I'm using. Maybe I'm doing something wrong?

Love the package! Can't wait to work through these issues. Let me know if I can help.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Tooltip issues, tooltip positioning and "d is undefined"

Posted: Jun 7, 2010

Reply to: Tooltip issues, tooltip positioning and "d is undefined", from wasDag
I simply cannot reproduce the problem. Right now I'm using this page:

http://flowplayer.org/tools/demos/tooltip/index.html

with firebug on and off and using minified and unminified versions of the full JQT script.

will have to do something with that positioning issue.

perugini

Posts: 8

Registered:
Jun 16, 2010

Still there...

Posted: Jun 16, 2010

Reply to: » Tooltip issues, tooltip positioning and "d is undefined", from tipiirai
Hi Tero,
this annoying bug

Break on error:
d is undefined


still there on 1.2.3 release.

Any idea about it?

Thx for your support.

L

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Still there...

Posted: Jun 16, 2010

Reply to: Still there..., from perugini
no

Muse

Posts: 12

Registered:
Jun 4, 2010

I"ve been getting the same error

Posted: Jun 17, 2010

Reply to: » Still there..., from tipiirai
d is undefined using Firebug 1.5.4, and FF 3.6.3.

It appears to me that the latest version of JQ tools min is messing with the Overlay plugin. The "Video Overlay" example on the FlowPlayer site is busted in all browsers. At least it is on the two computers I've checked it on. I'm working on a project and I'd really like to use the Video Overlay.

Then again... maybe it's just me.

Muse

Posts: 12

Registered:
Jun 4, 2010

What's going on?

Posted: Jun 17, 2010

Reply to: I"ve been getting the same error, from waco_muse
The standalone Multiple overlay demo does not have the same graphical issue as the other demos, and plays correctly in all browsers. What's the difference?

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

I still get the d is undefined error in Firebug though.

jansc

Posts: 5

Registered:
May 20, 2010

» » Still there...

Posted: Jun 18, 2010

Reply to: » Still there..., from tipiirai
Tero, thank you for trying to fix the issue! I wonder which operating system you use for development. Do you use OS X?

I still get the "d is undefined" warning with Firefox 3.6.3 and Firebug 1.5.4 on OS X 10.6.4. Which versions do you use to reproduce the problem? Seems weird that you don't get the warning with the same setup.

perugini

Posts: 8

Registered:
Jun 16, 2010

TABS cannot bind onClick event

Posted: Jun 21, 2010

Reply to: » » Still there..., from jansc
Hi Tero,
1.2.3 release have broken my js.

I've discovered that I cannot bind onClick to a custom function.

This is the JQuery 1.4.2 code related to the error


jQuery.event = {
1556
1557 // Bind an event to an element
1558 // Original by Dean Edwards
1559 add: function( elem, types, handler, data ) {
1560 if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
1561 return;
1562 }
1563
1564 // For whatever reason, IE has trouble passing the window object
1565 // around, causing it to be cloned in the process
1566 if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) {
1567 elem = window;
1568 }
1569
1570 var handleObjIn, handleObj;
1571
1572 if ( handler.handler ) {
1573 handleObjIn = handler;
1574 handler = handleObjIn.handler;
1575 }
1576 

and this is the tabs.js code related


 // API
217 self[name] = function(fn) {
218 $(self).bind(name, fn);
219 return self;
220 };
221 }); 


on $(self).bind(name, fn) call, fn is undefined... for this reason JQuery rise the

"handler is undefined Line 1572" error

Hope to help you on fix it.

Thx
Luca

skrile
Steve Krile Blue Rail Solutions, LLC

Posts: 6

Registered:
Jul 27, 2010

This was the key for me to fix this error

Posted: Jul 27, 2010

Reply to: TABS cannot bind onClick event, from perugini
If on line 1560 you add one more inspection in the if() statement, the errors go away:

{Original}
if ( elem.nodeType === 3 || elem.nodeType === 8 )

{Modified}
if ( (elem.nodeType === 3 || elem.nodeType === 8) && d )

The minified version changed the logic to searching for the negative.

Line 60 from the minified:

{ORIGINAL}
if(!(a.nodeType===3||a.nodeType===8))

{MODIFIED}
if(!(a.nodeType===3||a.nodeType===8||!d))

In essence, if d (or handler) is nothing, then don't do anything.

natoinet
-- However beautiful the strategy, you should occasionally look at the results.

Posts: 1

Registered:
Jun 25, 2010

Solved!

Posted: Jun 25, 2010

Reply to: » Tooltip issues, tooltip positioning and "d is undefined", from tipiirai
This seems to be a synchronization problem. Like wasDag, I had it working with a simple page, but not for a complex one. So I changed the script so that it loads AFTER the page has loaded:

Within the code, just replace :

$(document).ready(function() {

your script code


by

window.onload=function() {

your script code

};

Don't forget to remove the last parenthesis too.

Thanks for the great job Tero :)

zhaeon

Posts: 5

Registered:
Jun 25, 2010

» Solved!

Posted: Jun 25, 2010

Reply to: Solved!, from natoinet
hi Natoinet, these topics seem related:
http://flowplayer.org/tools/forum/40/44084

Any assistance would be much appreciated!

korsakov

Posts: 24

Registered:
Dec 1, 2009

"d is undefined" in Firebug

Posted: Jul 22, 2010

Reply to: » Tooltip issues, tooltip positioning and "d is undefined", from tipiirai
Have you found about this Firebug issue? In Firebug I do now get the same Error messages about "d" being undefined. I have an accordion that usually worked fine.
Thanks for your update!

pellekrogholt
freelance webdeveloper, mostely doing plone...

Posts: 7

Registered:
Jul 24, 2009

i can reproduce the same error

Posted: Jul 23, 2010

Reply to: "d is undefined" in Firebug, from korsakov
but when using non minified versionhttp://dev.flowplayer.org/tools/download/combine/1.2.3/jquery.tools.min.js?select=full&debug=true firbug dosen't throw errors like ' "d" being undefined'

pellekrogholt
freelance webdeveloper, mostely doing plone...

Posts: 7

Registered:
Jul 24, 2009

upgrading firefox solved the problem for me..

Posted: Jul 24, 2010

Reply to: i can reproduce the same error, from pellekrogholt
upgraded to 3.6.8 (from 3.6.6)

pellekrogholt
freelance webdeveloper, mostely doing plone...

Posts: 7

Registered:
Jul 24, 2009

a bit to quick

Posted: Jul 27, 2010

Reply to: upgrading firefox solved the problem for me.., from pellekrogholt
i still get "d is undefined" in Firebug - no problem i just se non minified versions for now - one again thanks for the nice liberiers...

skrile
Steve Krile Blue Rail Solutions, LLC

Posts: 6

Registered:
Jul 27, 2010

How I fixed this issue

Posted: Jul 27, 2010

Reply to: a bit to quick, from pellekrogholt
I too was having this problem where any animation trigger was causing the "d is undefined" error on line 69 of the minified version of the code. I changed one bit and the errors have gone away without effecting (I think) the performance.

Here is what I changed:

{ORIGINAL VERSION}
...{if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}...

{CHANGED VERSION}
{if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d && d.handler){e=d;d=e.handler}

I simply added an "inspection" logic to the if(d.handler) line. I'm guessing there is more to this, but it does quiet down all the Firebug complaining.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» How I fixed this issue

Posted: Jul 28, 2010

Reply to: How I fixed this issue, from skrile
thank you for this. unfortunately this part is in jQuery library which is out of my control. I somewhat know what the fix could be here but I don't have a development environment for this (I have never gotten this bug). but I'll fix it for sure.

markstahler

Posts: 3

Registered:
Aug 14, 2010

» » How I fixed this issue

Posted: Aug 15, 2010

Reply to: » How I fixed this issue, from tipiirai
Hi Tero, any word or progress on this? Thanks

godzone

Posts: 4

Registered:
Aug 15, 2010

» » Tooltip issues, tooltip positioning and "d is undefined"

Posted: Aug 15, 2010

Reply to: » Tooltip issues, tooltip positioning and "d is undefined", from tipiirai
I am getting the same issue and the only tool I am using is Tabs. What I find interesting is that other than triggering a breakpoint in Firebug, it doesn't seem to impact the functionality at all.

It does impact my testing abilitiy so finding a fix would be great. I haven't yet tried the version mentioned in a later post but will.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » Tooltip issues, tooltip positioning and "d is undefined"

Posted: Aug 16, 2010

Reply to: » » Tooltip issues, tooltip positioning and "d is undefined", from godzone
I made that fix especially to the tabs. I really hope it fixes this. Please try! I don't have a proper environment tyr try.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

An attempt to fix this.

Posted: Jul 29, 2010

Reply to: JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from lubosdz
Hello,

I have now build a version that has a possible fix for this:

http://e1.simplecdn.net/flowplayer/jquery.tools.min.js

I made a simple if- check as follows:

http://github.com/jquerytools/jquerytools/commit/af1dd12ee76cf51ea4d968c82f27235dd7f7544f

please try that and give feedback. I wan't to get rid of this.

THANKS!

DiNASTY

Posts: 10

Registered:
Apr 13, 2009

» An attempt to fix this.

Posted: Aug 3, 2010

Reply to: An attempt to fix this., from tipiirai
Hi Tero,

I was experiencing the same 'd is undefined' message in Firebug.

At the same time, I was getting 'handler' is null or not an object in jquery-1.4.2.min (line 49) and 'undefined' is null or not an object in jquery tools.min v.1.2.3 (line 38)

This new version you provided gets rid of the errors, but causes a general unhandled exception on my .tabs() call. IE stopped working altogether.

I will research some more into this and post anything I find.

daemonk

Posts: 2

Registered:
Aug 5, 2010

» An attempt to fix this.

Posted: Aug 5, 2010

Reply to: An attempt to fix this., from tipiirai
Hi,

Firstly thanks for a great library!

This update did fix the problem with me. It however has seemed to break JQuery cookie...I will investigate more and let you know.

Thanks

er777

Posts: 11

Registered:
Aug 20, 2010

Firefox Mac and IE Windows still problematic for Tooltip

Posted: Aug 25, 2010

Reply to: » An attempt to fix this., from daemonk
Also - thanks for a wonderful library!! Truly.

But I'm starting to wonder whether we can use this tool "professionally" if IE Windows and Firefox Mac hate the code. The code appears to be intermittent - is it because it is changing all the time? I appreciate that it must be undergoing tweaking, but it makes for an unstable environment professionally...

Using Tero's latest fix on github
http://e1.simplecdn.net/flowplayer/jquery.tools.min.js

Here's the latest Firebug output on tooltip use:

reference to undefined property window.attachEvent

Line 177

Not sure what to do...

Thanks

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Firefox Mac and IE Windows still problematic for Tooltip

Posted: Aug 25, 2010

Reply to: Firefox Mac and IE Windows still problematic for Tooltip, from er777
hello,

can you post here an example page where this error happens. please use the unminified version of the script and tell the precise browser version/os you are using.

THANKS

abstractic

Posts: 7

Registered:
Jan 7, 2010

» » Firefox Mac and IE Windows still problematic for Tooltip

Posted: Aug 27, 2010

Reply to: » Firefox Mac and IE Windows still problematic for Tooltip, from tipiirai
I get a similar error and that is in any browser, but I notice how I get it and that is by using the history plugin together with none default setup of the tabs.

If I use this setup without the "history" functions, then everything works fine:

$('.tab-menu').tabs('.tab-box > div', {current:'active', tabs: 'li'});

But as soon as I add the "history" function, I get the "e is undefined" error:

$('.tab-menu').tabs('.tab-box > div', {current:'active', tabs: 'li', history: true});

The reason I use the LI for my active statement, is because it gives me more possibilities to use CSS for styling the tabs.

abstractic

Posts: 7

Registered:
Jan 7, 2010

» » Firefox Mac and IE Windows still problematic for Tooltip

Posted: Aug 27, 2010

Reply to: » Firefox Mac and IE Windows still problematic for Tooltip, from tipiirai
I also noticed that you can't use two tab areas on the same page together with the history function.

Something like this:


$('.top-tabs').tabs('.top-boxes > div', {history: true});
$('.bottom-tabs').tabs('.bottom-boxes > div', {history: true});

Then it will be only the top area that is remembered.

I know that the above functions (multiple tab areas and history) worked well in an old version and I've been using the tools.tabs-1.0.4 and tools.tabs.history-1.0.2, until today without any problems. But in that version I made my own hack to support the "active" statement on the LI tag, by adding the following:


g.parent().removeClass(f.current);
l.parent().addClass(f.current);

abstractic

Posts: 7

Registered:
Jan 7, 2010

» » Firefox Mac and IE Windows still problematic for Tooltip

Posted: Aug 27, 2010

Reply to: » Firefox Mac and IE Windows still problematic for Tooltip, from tipiirai
Think I also know how to get the "d is undefined" error in jQuery, which also occurs in my Internet Explorer (undefined is null or not an object) and Safari (Result of expression 'd' [undefined] is not an object).

Just use the new jquery tools library together with the history function and call the tabs the old way:


$('.tab-menu').tabs('.tab-box > div').history();

lubosdz
The greatest discoveries in 21st century will be made in the area of the gravitation.

Posts: 4

Registered:
Nov 20, 2009

tip on the cause

Posted: Aug 27, 2010

Reply to: » » Firefox Mac and IE Windows still problematic for Tooltip, from abstractic
Hi guys,

with all these seemingly *randomly* occuring frustrating errors [xxx is undefined] ->>> I have got an idea, what if the reason lies inside of CSS rendering engine..? Since JQuery manipulates with lots of CSS properties (margins, borders, paddings, classes, ..).

I mean the library JQuery Tools code might be actually OK, but what if you use some incorrectly defined CSS property which causes Firebug to throw error(s)..? Then this problem might be actually unsolveable, coz it is virtually impossible to test of versions of rendering engines for all major browsers, right..?

This is just a tip to think about...

Regards
Lubos

james@planetretail

Posts: 2

Registered:
Sep 6, 2010

Same issue on scrollable

Posted: Sep 6, 2010

Reply to: » » Firefox Mac and IE Windows still problematic for Tooltip, from abstractic
I get the exact same error with the scrollable plugin.

im using firefox 3.6.8 & firebug 1.5.4

the example pagehttp://flowplayer.org/tools/demos/scrollable/index.html throws this error when you click next or previous button on the scrollable.

i also get it when try to mouseover log-in or signin on the homepage.

heikki

Posts: 291

Registered:
Sep 5, 2010

» Same issue on scrollable

Posted: Sep 6, 2010

Reply to: Same issue on scrollable, from james@planetretail
I don't see any errors with Firefox 3.6.8 and FireBug 1.5.4 on OSX 10.5.8. Have you guys tried disabling your other Firefox addons to rule that possibility out?

james@planetretail

Posts: 2

Registered:
Sep 6, 2010

» » Same issue on scrollable

Posted: Sep 10, 2010

Reply to: » Same issue on scrollable, from heikki
Disabled all my other plugins and i still get this error
im on windows xp.

heikki

Posts: 291

Registered:
Sep 5, 2010

» » » Same issue on scrollable

Posted: Sep 10, 2010

Reply to: » » Same issue on scrollable, from james@planetretail
I just tried with Firefox 3.6.9 and FireBug 1.5.4 on Windows XP and I didn't see any errors on this page:

http://flowplayer.org/tools/demos/scrollable/index.html

Could you try if this trick makes any difference:

"Either click on the [||] pause button in the Console panel or use Firebug > Firebug Icon Menu > Options > ResetAllOptions"

http://stackoverflow.com/questions/3551231/firebug-break-on-error-d-is-undefined

er777

Posts: 11

Registered:
Aug 20, 2010

Firefox + IE Bug for Tooltip

Posted: Sep 1, 2010

Reply to: » Firefox Mac and IE Windows still problematic for Tooltip, from tipiirai
Tero

Browser problems: Firefox 3.6.8 Mac also IE 7
Safari, Chrome seem to be OK

Page that breaks:

http://lotusascending.com/galleries-for-Tero.php

you'll see..

er777

Posts: 11

Registered:
Aug 20, 2010

Firefox and IE Bug for Tooltip

Posted: Sep 1, 2010

Reply to: Firefox + IE Bug for Tooltip, from er777
I can't locate the unminified jquery tools code...???

Any ideas out there?

Thanks

er777

Posts: 11

Registered:
Aug 20, 2010

Firefox and IE Bug for Tooltip

Posted: Sep 1, 2010

Reply to: » Firefox Mac and IE Windows still problematic for Tooltip, from tipiirai
Sorry

http://lotusascending.com/galleries-for-Tero.php
is inside of a protected directory.

user:
lotus

pw:
12345

er777

Posts: 11

Registered:
Aug 20, 2010

Windows Firefox is OK...????

Posted: Sep 1, 2010

Reply to: Firefox and IE Bug for Tooltip, from er777
another note , weird

Firefox Windows XP is OK..

Mac Firefox and Windows IE7 are hammered though...

????

http://lotusascending.com/galleries-for-Tero.php

user: lotus
pw: 123435

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» JQuery Tools incompatible with JQuery - use Firebug to catch up errors

Posted: Sep 12, 2010

Reply to: JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from lubosdz
ok. here is another attempt to fix this issue

http://github.com/jquerytools/jquerytools/commit/3e77fbb9795f9353f712b7fc3180515c4c443bf5

as you can see an existence test is made on every method binding attempt. here is the full/minified version of JQT to try with:

http://cdn.jquerytools.org/1.2.5-dev/jquery.tools.min.js

please inform me what happened.

thanks!

mchristie

Posts: 1

Registered:
Sep 13, 2010

Also having issues with JQuery tools.

Posted: Sep 13, 2010

Reply to: » JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from tipiirai
I have been having ongoing issues with getting a tabs/slideshow working and think it may be related to this issue.

The site(s) in question are:
http://golfdemo.dolcemedia.co.nz/
http://www.pacificrubber.co.nz/
http://jimhalls.dolcemedia.co.nz/ (For this domain I have switched over to try the dev version of the JQT with no luckhttp://cdn.jquerytools.org/1.2.5-dev/jquery.tools.min.js)...

Firebug error:
http://screencast.com/t/NGUwOTE4YTUt

Would appreciate some enlightenment on why this does not properly work or where I can go for getting someone to actually help me debug javascript as I am no expert. As in a freelance debugger!

Anyway. It works with errors on Chrome, Firefox but not at all on IE.

Thanks in advance for your help.

michael

heikki

Posts: 291

Registered:
Sep 5, 2010

» Also having issues with JQuery tools.

Posted: Sep 13, 2010

Reply to: Also having issues with JQuery tools., from mchristie
I get this error on IE6 from your first example:http://grab.by/6mmL
Knowing how picky IE6 is I would remove that stray comma in the end:


$(".slidetabs").tabs(".images > div", {
 
	// enable "cross-fading" effect
	effect: 'fade',
	fadeOutSpeed: "fast",
	
	// start from the beginning after the last tab
	rotate: true
 
// use the slideshow plugin. It accepts its own configuration
}).slideshow({autoplay: true,interval:10000,});
});

Validating your markup doesn't hurt either:

http://validator.w3.org/check?uri=http%3A%2F%2Fgolfdemo.dolcemedia.co.nz%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

I finally managed to get some of these errors to show up in FireBug by turning "Break On All Errors" on. Turning it off didn't return me to error free state. I had to reset Firebug settings instead, so this Stack Overflow thread might have some truth in it:

"Either click on the [||] pause button in the Console panel or use Firebug > Firebug Icon Menu > Options > ResetAllOptions."

http://stackoverflow.com/questions/3551231/firebug-break-on-error-d-is-undefined

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » Also having issues with JQuery tools.

Posted: Sep 13, 2010

Reply to: » Also having issues with JQuery tools., from heikki
I used this as my test page now:

http://homeremodelinganddesign.com/homeFF.html

I reseted all my options and toggled the break on all errors. Could not get an error on my firebug.

heikki

Posts: 291

Registered:
Sep 5, 2010

» » » Also having issues with JQuery tools.

Posted: Sep 13, 2010

Reply to: » » Also having issues with JQuery tools., from tipiirai
I get the error with these steps:

1. Go to

http://homeremodelinganddesign.com/homeFF.html

2. From the console turn on "Break On All Errors", bottom left in the screenshot

http://grab.by/6moN

3. Pause button should be glowing now
4. Click middle side tab on the page
5. The following error shows up

http://grab.by/6moU

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » » Also having issues with JQuery tools.

Posted: Sep 13, 2010

Reply to: » » » Also having issues with JQuery tools., from heikki
moi.

got the error now! some progress here. will investigate.. hopefully I can reproduce the bug on my own environment.

thanks!

- tero

er777

Posts: 11

Registered:
Aug 20, 2010

Firefox Bug

Posted: Sep 13, 2010

Reply to: » JQuery Tools incompatible with JQuery - use Firebug to catch up errors, from tipiirai
Tero

Thanks for your code. Looks like it fixed the problem in Firefox.

Using the older code I got the following response, very strange - it may be useful for de-bugging:

------------------------------------------
I have copied your demo standalone code exactly but posted it from my server

http://homeremodelinganddesign.com/homeFF.html

BREAKS FIREFOX

but same EXACT code from your flowplayer site is fine..
http://flowplayer.org/tools/demos/scrollable/site-navigation.htm

?????

Mac OSX 10.5.8 Firefox 3.6.9

All other browsers are OK..

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Firefox Bug

Posted: Sep 13, 2010

Reply to: Firefox Bug, from er777
aargh.

works fine on my FF 3.6.9 (linux) and on my friends FF 3.6.6 (MAC). still out of luck..

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Firefox Bug

Posted: Sep 14, 2010

Reply to: Firefox Bug, from er777
I still cannot reproduce the bug on my environments. Only get it on your site. Could you please use this file on the page and see what happens?

http://cdn.jquerytools.org/1.2.5-dev/jquery.tools-1.2.5-dev.js

if that works then use the minified version

http://cdn.jquerytools.org/1.2.5-dev/jquery.tools.min.js

if that breaks then there is something wrong with the minification..

- tero

ennox

Posts: 1

Registered:
Sep 16, 2010

» » Firefox Bug

Posted: Sep 16, 2010

Reply to: » Firefox Bug, from tipiirai
Tero,

Your fix works fine for me - both, the "d undefined" and the "undefined handler"-bug are gone now.

Testet with the query.tools-1.2.5-dev.js and the minified version.

Now i can give your nice looking Tooltips another try - thanx man :)

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » Firefox Bug

Posted: Sep 17, 2010

Reply to: » » Firefox Bug, from ennox
GREEEAAT!!

Thank you for helping me out on this. Not sure if this will still haunt us, but I'm pretty certain this is now closed.

ke1g

Posts: 2

Registered:
Sep 20, 2010

Seeing this on Plone 4

Posted: Sep 20, 2010

Reply to: » » » Firefox Bug, from tipiirai
I'm see this on plone 4, the latest and greatest plone, but using jquerytools 1.2.3.
I tried your 1.2.5, but this leads to another error. I'd like to try applying your patches to a dev version of 1.2.3, to sort out whether the other error is related to other changes since 1.2.3, or whether the patch just lets things get as far as the new error.
But I don't see a spot on the website where I can snag a jquery.tools-1.2.3-dev.js. Having snagged a clone of the repo and checked out v1.2.3, I'm at a loss as to what build tool uses the build.xml file (and README.md did not enlighten me).
Can you either point me at a 1.2.3-dev or tell me how to run the build environment?
(FWIW, when plone hits this it is in initializing its tab order. Several jquery calls below a jquery.tools getConf is a jquery.tools addEffect, which calls jquery delegate, which calls jquery.event.remove, which bombs. This, at least, according to the firebug stack. "d" is called "handler".)

Bill

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Seeing this on Plone 4

Posted: Sep 21, 2010

Reply to: Seeing this on Plone 4, from ke1g
the building system is not on the trunk at the moment. I guess the easiest way to get handle to the bug is that you try with the unminified version:

http://cdn.jquerytools.org/1.2.5-dev/jquery.tools-1.2.5-dev.js

hit "break on next" button on Firebug and tell me what happens.

Thanks!

ke1g

Posts: 2

Registered:
Sep 20, 2010

» » Seeing this on Plone 4

Posted: Sep 21, 2010

Reply to: » Seeing this on Plone 4, from tipiirai
That is, in fact, the version that I've been trying.

It does not get the 'd' is undefined error with 1.2.5.

But it does, including on pages that didn't get the 'd' is undefined error with 1.2.3 (because they don't have a form for whose inputs they wanted to configure tabbing), get the error:

$('#region-content,#content').highlightSearchTerms is not a function.

This occurs in a plone specific js called jquery-integration.js.

I see these errors because I was watching the 'net' tab to try to diagnose what turned out to be a load order problem. Firebug breaks on error during load.

I don't know if this new error is due to plone using other features in a way that is incompatible with >= 1.2.4 plus, or whether the patches for the problem in this topic is evidence of something deeper. Thus my wanting to try applying your changes to (the relevant section of) a non-minified version of 1.2.3 (since the minified 1.2.3 has the "is undefined" problem, but not the "is not a function" problem.

If by "break on next" you mean the "step over" button, it does nothing. Otherwise I don't know of a break on next button. I should, perhaps, confess that this is a rather old version of firefox (3.0.6). (Yes, I know, but several other people in the office have newer browsers of various brands and vintages who will tell me if there's an issue. Having an older FF has been very useful on occasion).

Re-building. Do I need anything besides ant if I comment out the minification section of build.xm.?

Bill

retoo

Posts: 3

Registered:
Sep 21, 2010

it works, but

Posted: Sep 21, 2010

Reply to: » Firefox Bug, from tipiirai
Hi Tero

Both versions appear to work, but it looks like something goes wrong with the dolla variable. I had to 'perserve' it manually before including your new version. Could this be related?

Chers,
Reto

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» it works, but

Posted: Sep 21, 2010

Reply to: it works, but, from retoo
hmm. I don't understand what really happens there. Do you have other libraries included? Maybe a test page?

retoo

Posts: 3

Registered:
Sep 21, 2010

» » it works, but

Posted: Sep 21, 2010

Reply to: » it works, but, from tipiirai
I've created a small example in the following git repo.

git://github.com/retoo/JQuery-Tools-Bug-Example.git

What it does:
1. it loads jquery-1.4.2.min
2. it loads prototype

at this point $ points to prototype

3. alert($) you should get the 'longer' uglier prototype $ output

4A)
load javascripts/jquery.tools.dev.min.js (this is the minified one you've posted

OR
4B)
load javascripts/jquery.tools.1.2.4.js, this is the normal jquery tools release

5. again alert($)

On step 5 you'll see that $ has changed when you did 4a), but it works fine with 4b).

I hope this makes somehow sense :).

And as I said: the solution is to backup $ before loading the 1.2.5-dev version.

You can contact me on freenode if you like, my nick is "reto_".

Cheers,
Reto

heikki

Posts: 291

Registered:
Sep 5, 2010

» » » it works, but

Posted: Sep 21, 2010

Reply to: » » it works, but, from retoo
In 4a) you are including jquery 1.4.2 two times. It is included in the jquery.tools.dev.min.js package. So in a sense that is expected behaviour.

--Heikki

retoo

Posts: 3

Registered:
Sep 21, 2010

» » » » it works, but

Posted: Sep 21, 2010

Reply to: » » » it works, but, from heikki
You're right, this makes perfectly sense! I always downloaded the 'tools-only' versions, I didn't expected a combined version.

Thanks for the help Heikki!

Tero, sorry for the confusion... :)

Cheers,
Reto

noelw

Posts: 13

Registered:
Sep 26, 2009

» » » » » it works, completely

Posted: May 9, 2011

Reply to: » » » » it works, but, from retoo
Today I hit a similar problem to the earlier ones, where a form submission failed in FF3.6, with multiple undefined property errors, such as a[++e]. After working through the replies above and downloading the unminified version of jquery tools, I discovered it was due to the action attribute being empty and that I was passing this through to an ajax call. After changing this to include the current page url, all errors disappeared.