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 7663785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:08:10+00:00 2026-05-31T14:08:10+00:00

I’ve got js script that load my Home messages, fans, etc. The problem is

  • 0

I’ve got js script that load my Home messages, fans, etc. The problem is when i load any version of JQuery it is stacked on spinner image.
+webaddr+’/images/spinner.gif

Whenever i get read of the jquery it works fine.

As you see in the code bellow there are stab_ that load specific needs.

For example: hmhome load hm_home. etc

i also had to rewrite the code but didn’t help.

Any ideas?

// Load messages  
function showhome(tp,u,p,primsgtype){
    $("homecontainer").innerHTML='<img src="'+webaddr+'/images/spinner.gif">';
    var linum=$("primary_nav").getElementsByTagName("li").length;
    for (var i=0; i<linum; i++) {
        if ($("primary_nav").getElementsByTagName("li")[i].className=="current"){
            $("primary_nav").getElementsByTagName("li")[i].className="";
        }
    }
    $("stab_"+tp).className="loading";
    var request = YAHOO.util.Connect.asyncRequest('GET', webaddr+"/home/"+tp+"/u."+u+"/p."+p+"&pm="+primsgtype+"&rank="+GetRandomNum(1,999999), {
        success:function(o){
            $("homecontainer").innerHTML=o.responseText;
            $("stab_"+tp).className="current";
            YAHOO.util.Event.onContentReady("stream",function(){
                var el=YAHOO.util.Dom.get("stream");
                if(!el){return;}
                var _li=el.getElementsByTagName("li");
                YAHOO.util.Event.on(_li,"mouseover",function(e){
                    YAHOO.util.Dom.addClass(this,"light");
                    YAHOO.util.Dom.removeClass(this,"unlight");
                    });
                YAHOO.util.Event.on(_li,"mouseout",function(e){
                    YAHOO.util.Dom.addClass(this,"unlight");
                    YAHOO.util.Dom.removeClass(this,"light");
                });
            });
            if ($("homenum") && $("hmhome")) {
                $("homenum").innerHTML=$("hmhome").value;
            }
            if ($("favoritenum") && $("hmfavorite")) {
                $("favoritenum").innerHTML=$("hmfavorite").value;
            }           if ($("repadnum") && $("hmrepad")) {
                $("repadnum").innerHTML=$("hmrepad").value;
            }           if ($("noticenum") && $("hmnotice")) {
                $("noticenum").innerHTML=$("hmnotice").value;
            }           if ($("followlistnum") && $("hmfollowlist")) {
                $("followlistnum").innerHTML=$("hmfollowlist").value;
            }           if ($("fanlistnum") && $("hmfanlist")) {
                $("fanlistnum").innerHTML=$("hmfanlist").value;
            }           if ($("sharelistnum") && $("hmsharelist")) {
                $("sharelistnum").innerHTML=$("hmsharelist").value;
            }           if ($("youfollownum") && $("hmyoufollow")) {
                $("youfollownum").innerHTML=$("hmyoufollow").value;
            }           if ($("recordsnum") && $("hmrecords")) {
                $("recordsnum").innerHTML=$("hmrecords").value;
            }           if ($("usersaysnum") && $("hmuusersays")) {
                $("usersaysnum").innerHTML=$("hmusersays").value;
            }
            if ($("primsghead")) {
                $("info").style.display="none";
            } else {
                $("info").style.display="block";
            }
            if (tp=="privatemsg") {
                YAHOO.util.Event.on("pmcontentbox", "keyup", function(e) {
                    var pmlen=$('pmcontentbox').value.length;
                    $('pmnums').innerHTML=pmlen;
                    if (len>150) {
                        $('pmcontentbox').value=$('pmcontentbox').value.slice(0,150);
                    }
                });
            }
        },
        failure:function(o){}
    }); }

for the last time a tried jquery-1.7.1.min.js
i will be very thankful for any guidelines.

  • 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-31T14:08:11+00:00Added an answer on May 31, 2026 at 2:08 pm

    The code you have shown is making use of a $() function, presumably defined by some other library, that appears to be a shortcut to document.getElementById(). jQuery also defines a $() function by default, so then the code you’ve shown would call the jQuery $() instead of the correct one. Fortunately jQuery provides a way to remove this conflict. At the beginning of your script use:

    jQuery.noConflict();
    

    Then if you want to call jQuery you use jQuery() instead of $(). Or define an alias:

    var j = jQuery.noConflict();
    j("#something").hide();  // or whatever
    

    More information with examples at the jQuery doco page for .noConflict().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
i got an object with contents of html markup in it, for example: string

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.