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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:20:13+00:00 2026-05-12T18:20:13+00:00

The page having problems is… http://schnell.dreamhosters.com/index.php?page=gallery# I use Firebug to debug my jQuery and

  • 0

The page having problems is…
http://schnell.dreamhosters.com/index.php?page=gallery#

I use Firebug to debug my jQuery and other code tidbits and it’s been proving very useful for Javascript/jQuery debugging. However, at the same time, it’s been one of the most frustrating debugging experiences I’ve ever gone through. I’m not sure why but sometimes it seems like I can copy someone else’s methodology from a tutorial, character for character, and yet still come up with errors.

In any case, the problem here is that Firebug claims there is a bug on line 20 of the source.

missing : after property id
[Break on this error] $(‘#table’).animate({“left: ” + attr + “px”}, 2000);\n

This bug seems like a huge load to me because the colon is right there! And this is why debugging jQuery/Javascript is such a pain sometimes. The error messages are rather convoluted and sometimes don’t even make a lick of sense to me. Or maybe that’s just Firebug.

Either way, the goal I’m going for here is that I’m trying to dynamically change the animate function such that the more you click the left arrow, the further left the grid of images is shifted (due to the nature of the CSS ‘left’ property). I have Javascript variables and a hidden input tag to help hold essential values, but the major hurdle is getting the animate function to recognize these variables. Near as I can tell it will only accept string literals for arguments on how to animate and the documentation doesn’t help me because it doesn’t discuss the use of variables with animate, as if it’s impossible.

Well, let’s just say I don’t like impossible, he likes to get in my way a lot.

  • 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-12T18:20:14+00:00Added an answer on May 12, 2026 at 6:20 pm

    The object literal passed to the animate function is not well formed, it should be:

    $('#table').animate({left: attr + "px"}, 2000);
    

    Edit: Looking closely to your code, you are also trying to get a value from an input with id = “count”, and you have a missing # character to have an ID selector:

    var count = +$('#count').val(); // get #count value as Number
    

    You are also incrementing this count variable, but you should first convert it to Number, because the value attribute of input elements are string. (I did it using the unary plus operator on the right-hand side of the assignment).

    You have to convert it to a number, because if you add two variables and one of them is a string, concatenation will take place:

     "1" + 1 == "11"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a rookie designer having a few troubles with this page: http://www.resolvegroup.co.nz/javasurvey.php There are
I'm having problems with jQuery after a page gets loaded via an iframe. Here's
I am having problems setting up wgsi with django. I'm following this http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/ .
I'm having problems with incremental values without refreshing the page using jquery. I have
I am having problems overlaping two boxes. Should I use absolute positioning? z-index or
I'm writing a page in ASP.NET and am having problems following the cycle of
I'm having problems with string matching in PHP. I've 2 html elements in my
I'm having problems finding the right hook to use for my plugin. I'm trying
I am having problems with my login page. It pulls through the Username correctly
I'm having problems passing parameters (in this case, @plan_id) to the next page (new_user_url).

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.