Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3948544
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:23:15+00:00 2026-05-20T01:23:15+00:00

i have a tag cloud on my master page. I would like to redirect

  • 0

i have a tag cloud on my master page. I would like to redirect links of the tags within that tag cloud to another url (script below).

The script runs fine when i test it with the console in firefox but it doesn’t work when i put it in the head of my master.

After investigation i have noticed that my script is loaded before a sharepoint webservice /_vti_bin/SocialDataService.asmx/GetAllTagTerms

which could be the reason!

My question is: would it be possible to use jquery to call that webservice and make it work?

$(document).ready(function () {

    var $sel = $("#tagscloud a[href*='tagprofile.aspx?termid=']");

    var rootUrl = $('#ctl00_RootUrlId').val();



    $sel.each(function () {

        var $this = $(this), href = $this.attr('href');

        $this.attr('href', rootUrl + 'Recherche/Pages/Results.aspx?k=SocialTagId%3A%22' + href.slice(href.indexOf('tagprofile.aspx?termid=') + 23) + '%22');

    });

});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:23:15+00:00Added an answer on May 20, 2026 at 1:23 am

    Unfortunately the method TagCloudItemsRender in SocialData.js does not have any events you can hook into.

    What you could do, is wait for the tagCloudData element to be created

    var timer = setInterval(function() { 
        var cloud = $("#tagCloudData"); //need better selector if multiple tag clouds on same page
        if(cloud) {
            clearInterval(timer);
            //do your code here
        }
    }, 1000)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pre tag within my page that contains quite a bit of
In my tag cloud I have urls that look like this ../search.php?query=cat&select=all ../search.php?query=the cat&select=all
i have a page with a sort of tag cloud section on it. the
If I have a structure like this: <div id=main> <div id=sidebar> <div id=tag-cloud/> </div>
Lets say I have a website that sells widgets. I would like to do
I would like to add a "tag cloud" to a project I'm working on.
I'm making a tag cloud. I have a table called tags with a row
I have a tag cloud that I'm including on nearly all of the views
I am creating a tag cloud and have read the various posts that describe
I have a Tag cloud that i need to style. Unfortunately it has no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.