function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
brooksbrooks 

javascript and variable url . . .

I've added this rating widget to my Visualforce detail page, and it requires a permalink to work correctly.

Code:
<script language='JavaScript'>
    var OutbrainPermaLink='ENTER PERMALINK HERE';
    var OB_demoMode = false;
    var OB_langJS ='http://widgets.outbrain.com/lang_en.js';
    if ( typeof(OB_Script)!='undefined' )
        OutbrainStart();
    else {
        var OB_Script = true;
        var str = '<script src="http://widgets.outbrain.com/OutbrainRater.js" type="text/javascript"><\/script>';
        document.write(str);
    }
    </script>

 I've set the override on View for my list view page so that it appends the correct ID to the URL of my detail page when a link is clicked.

My question is how can I make the javascript above use the unique URL for each page rather than using one permalink?

Thanks for any tips.