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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:59:20+00:00 2026-06-11T10:59:20+00:00

I have a function call SwapOnscreenPhotos. Here is the source for that function: function

  • 0

I have a function call SwapOnscreenPhotos. Here is the source for that function:

function SwapOnscreenPhotos(currentPhotoSet, arrowClicked)
{
    $("#photo-list img").each(function(index) 
    { 
        $(this).attr("src", photoData[currentPhotoSet][index].url);

        if (photoData[currentPhotoSet][index].liked === true)
        {   
            $(this).addClass("liked");
        }
        else
        {
            $(this).removeClass("liked");
        }
    });

    //Animate the old photos off of the screen
    $("#match").hide("slide", { direction: "left" }, 1000);
}

I do some random things, and then at the end of the function, I want to call an effect on #match unconditionally. There is no event after which I want to execute this effect (if it matters, an event determines whether I call SwapOnScreenPhotos in the first place). How am I supposed to execute this effect?

EDIT:

Sorry, let me clarify myself. I had gotten the impression that every jQuery expression follows a similar formula. $('selector').event(function() { //function stuff});

My code $("#match").hide("slide", { direction: "left" }, 1000); deviates sharply from this example. My code more closely resembles the following model: $('selector').function. Notice that there is no event that dictates when my code should be executed and when it should not be executed. Is there a way to call jQuery functions without this event? When I try run the above code, I am given this error:

Uncaught TypeError: Property ‘#’ of object # is not a function jquery.js:8780
Tween.run jquery.js:8780
tick jquery.js:8491
jQuery.fx.timer jquery.js:9032
Animation jquery.js:8555
jQuery.fn.extend.animate.doAnimation jquery.js:8871
jQuery.extend.dequeue jquery.js:1894
jQuery.fn.extend.queue jquery.js:1937
jQuery.extend.each jquery.js:611
jQuery.fn.jQuery.each jquery.js:241
jQuery.fn.extend.queue jquery.js:1930
jQuery.fn.extend.animate jquery.js:8881
jQuery.each.jQuery.fn.(anonymous function) jquery.js:8853
AnimateMatch match.js:21
SwapOnscreenPhotos match.js:70
$.ajax.success match.js:167
jQuery.Callbacks.fire jquery.js:974
jQuery.Callbacks.self.fireWith jquery.js:1082
done jquery.js:7650
jQuery.ajaxTransport.send.callback

I assumed that this error was caused by my failure to specify an event. Does this make more sense?
Thank you

  • 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-06-11T10:59:21+00:00Added an answer on June 11, 2026 at 10:59 am

    You’re trying to use the JQuery UI hide; this is the error message you get if the JQuery UI library hasn’t been loaded, and you’re instead working with plain JQuery.

    For example, if I run your code on this (Stack Overflow) page using Firebug, then I get the same error.

    $("body").hide("slide", { direction: "left" });
    

    TypeError: Property ‘#’ of object # is not a function


    So in summary, there’s nothing wrong with how you’re trying to call the function. I think the problem is that you’ve neglected to include the JQuery UI library, or it hasn’t been loaded correctly.

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

Sidebar

Related Questions

I would like to have a function that can wrap any other function call.
I have function getCartItems in cart.js and I want to call that function in
I have a C program which has a function call that is defined in
I have a variable that I'm using to build a JavaScript function call, and
I have a function that needs to call a virtual method many times in
I have a function call in a program that I'm maintaining has 28 arguments
I have a function call in a query, and that result has to be
I have a function that I call with ?clear-cart appended to the end of
I have this function call passed as a string: var dcall = tumbsNav(1); Is
I have a function call: long foo(mystruct **list) where the definition of mystruct is

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.