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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:06:45+00:00 2026-05-26T16:06:45+00:00

I have clearly got this wrong (because it doesn’t work) but I thought the

  • 0

I have clearly got this wrong (because it doesn’t work) but I thought the following two code blocks where functional identical, but one is working as expected, the other is not.

Working:

mfObject.questions = {}
mfObject.questions.active = "#"+$('.ui-page-active').attr('id');

Not Working:

mfObject.questions = {
    active : "#"+$('.ui-page-active').attr('id');
}
  • 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-26T16:06:46+00:00Added an answer on May 26, 2026 at 4:06 pm

    You should not have a ; at the end of the property assignment.

    mfObject.questions = {
        active : "#"+$('.ui-page-active').attr('id') // <-- no semicolon here
    }
    

    Properties assigned inside an object literal are separated by commas if there are multiple assignments, and semicolons would never appear as terminators to a property assignment (though they may be present internally if you assigned a function to a property).

    // Correct property assignment in an object literal
    mfObject.questions = {
      active: "someval",
      prop1: "someval1",
      prop2: "someval2",
      prop3: function() {
        console.log("I have semicolon terminators in a function");
        console.log("because I have multiple statements");
      },
      prop4: "someval4"
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at System.Collections.Generic.Dictionary<TKey, TValue> , it clearly implements ICollection<KeyValuePair<TKey, TValue>> , but doesn't have
I have already build boost.python lib by mingw,Got two lib files: libboost_python-mgw45-mt-1_46_1.a libboost_python-mgw45-mt-d-1_46_1.a But
I hope I can explain this clearly enough. I have my main form (A)
I have added some code which compiles cleanly and have just received this Windows
I don't think this can be done cleanly, but I'll ask anyway. I have
Perhaps this is my lack of understanding, but I would have assumed that doing
I've got a problem with my code. It basically looks like this: someclass.hpp: class
I've got a brand new code-signing certificate and have been wondering which files I
I got the following code snippet from Peter Norvig's website; it's a decorator to
I have the following code: HTML: <div class=sectionInner><div class=carousel></div></div> <div class=sectionInner></div> <div class=sectionInner></div> <div

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.