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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 335k
  • Answers 335k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer header_remove() since php 5.3 header_register_callback() is also coming soon May 14, 2026 at 3:38 am
  • Editorial Team
    Editorial Team added an answer Can you use OnItemCreated event to do that? Assuming, the… May 14, 2026 at 3:38 am
  • Editorial Team
    Editorial Team added an answer The DataTemplate gets its DataContext explicitly set to the item… May 14, 2026 at 3:38 am

Related Questions

The page having problems is... http://schnell.dreamhosters.com/index.php?page=gallery# I use Firebug to debug my jQuery and
I have a checkbox list control on my asp.net web form that I am
I have a WebView that I'm using to open some files stored in the
I'm writing a page in ASP.NET and am having problems following the cycle of
I'm having problems using the Html.DropDownList helper on a MVC RC1 form. In the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.