Advanced Search

Results 1 to 3 of 3

Thread: $f is undefined

  1. #1
    Join Date
    Apr 2010
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default $f is undefined

    Hi Guys,

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

    $f is undefined

    code :-
    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
    Last edited by djr33; 06-17-2010 at 08:33 AM.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,156
    Thanks
    262
    Thanked 690 Times in 678 Posts

    Default

    $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 [code]...[/code] tags. I've fixed it above.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2010
    Location
    UK
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •