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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:27:04+00:00 2026-05-27T11:27:04+00:00

Sorry if this question may be simple, but I can’t seem to find an

  • 0

Sorry if this question may be simple, but I can’t seem to find an answer, and it’s just becoming more and more frustrating.

So, I’m on a master page and on this master page is a nifty jQuery method to ‘fade’ images.

Of course, the first time I load the page it blows up, but only if I’m referencing it locally.

However, I know the path to the file is correct (or if it’s not it’s sure fooling me) because if I enable any sort of postback (such as logging in), when the page refreshes, the jQuery loads without incident.

On the other hand, if I were to reference the library from Google, it loads fine each and every time. However, external libraries are not an option; everything in the live site has to be self contained.

Intellisense is even running perfectly fine when I’m coding in the first place.

I tried $(document).ready(), $(window).load(), moving it from the master page to the .aspx page. Nothing works, but only the first time.

Has anyone encountered something like this? How did you solve this conundrum?

(Also, I apologize again if this is something very simple).

Edit: It’s giving an object expected error when it loads. Doing a bit of looking around it seemed to tell me that, nope, the library simply hasn’t loaded yet.

Edit 2: Code:

I really should have done this before hand. My fault.

<script type="text/javascript" src="Scripts/jquery-1.6.4.js"></script>
<script type="text/javascript" >

function cycleImages() {
    var $active = $('#portfolio_cycler .active');
    var $next = ($('#portfolio_cycler .active').next().length > 0) ? $('#portfolio_cycler .active').next() : $('#portfolio_cycler img:first');
    $next.css('z-index', 2); //move the next image up the pile
    $active.fadeOut(1500, function () {//fade out the top image
        $active.css('z-index', 1).show().removeClass('active'); //reset the z-index and unhide the image
        $next.css('z-index', 3).addClass('active'); //make the next image the top one
    });
}    

//$(document).ready(function () { 
//    setInterval('cycleImages()', 7000);
//});

$(window).load(function () {
    setInterval('cycleImages()', 7000);
});

</script>

This is the jQuery method. setInterval is the code for the fading method, but it always stops on the $(window).load, or $(document).ready it’s placed in the topmost master page, in the header tag.

  • 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-27T11:27:05+00:00Added an answer on May 27, 2026 at 11:27 am

    If the postback that is enabling the query reference is “logging in”, then it is a permissions issue. Your application is restricting access to the .js files for only authenticated users. You need to make sure these files are accessible to anonymous users as well.

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

Sidebar

Related Questions

Sorry if this question is very easy, but I can't find the answer anywhere.
Sorry, this may or may not be a programming question directly, but I am
This may be very simple question, sorry about my lack of knwoledge, and my
May be this question seems to be stupid, but strangely I find it hard
I've been trying to find the answer to this question here. Several people seem
sorry this may be a simple question. I am trying to build my first
This may be a dumb question. But I just received permissions to read/write to
This may be a simple question but i'm a newer to web service programming.
sorry this may be a simple question i want to call a bpl and
My question may be too easy, but I have not found the answer, sorry

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.