PDA

View Full Version : $f is undefined



creative creator
06-17-2010, 06:11 AM
Hi Guys,

i written some code like this, but in that it showing some javascript error, i.e

$f is undefined

code :-


$f("player", "/vgn-ext-templating/momentive/flowplayer-3.1.5.swf", {

clip: {
// track start event for this clip
onStart: function(clip) {
_tracker._trackEvent("Videos", "Play", clip.url);
},

// track pause event for this clip. time (in seconds) is also tracked
onPause: function(clip) {
_tracker._trackEvent("Videos", "Pause", clip.url, parseInt(this.getTime()));
},

// track stop event for this clip. time is also tracked
onStop: function(clip) {
_tracker._trackEvent("Videos", "Stop", clip.url, parseInt(this.getTime()));
},

// track finish event for this clip
onFinish: function(clip) {
_tracker._trackEvent("Videos", "Finish", clip.url);
}
},

// show stop button so we can see stop events too
plugins: {
controls: {
stop: true
}
}

});

please check the code and give some solution..............it's urgent

djr33
06-17-2010, 08:32 AM
$f isn't defined anywhere. What is this supposed to do? Did you write this? If so, why did you write $f? If you didn't, then where did you get it? Maybe you're missing part of it.

If you want more help--
Please post a link to the page on your site that contains the problematic script so we can check it out.

Also, when posting code, please surround it with
... tags. I've fixed it above.

akitodito
06-18-2010, 01:25 PM
Well i decided to Google for you as it appears you're using flowplayer - you need to include flowplayer.js, which is the code that defines the $f() functionality.