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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:05:54+00:00 2026-05-26T04:05:54+00:00

Visual Studio is objecting to the script below and returns a message that says

  • 0

Visual Studio is objecting to the script below and returns a message that says “Expecting More Source Characters”. This I assume is the reason this script won’t fire on the page.

Usually when I get this message in VS it means I forgot a semi colon. However I don’t think that is the case this time. What could be causing this error?

jQuery(document).ready(function ($) {
var Category = "animals";
var BaseURL = "http://localhost:61741/VocabGame/play?cat=";
var URL = BaseURL + Category;

    $.getJSON(URL, {
        tags: "Pinyin",
        tagmode: "any",
        format: "json"
    },
    function (data) {
    $('#ChoiceA').append = data.nouns[0].Pinyin;
    $('#ChoiceB').append = data.nouns[1].Pinyin;
    });
  • 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-26T04:05:54+00:00Added an answer on May 26, 2026 at 4:05 am

    I think you’re missing the closing }) and also have a problem with your .append() lines. Try this:

    jQuery(document).ready(function ($) {
        var Category = "animals";
        var BaseURL = "http://localhost:61741/VocabGame/play?cat=";
        var URL = BaseURL + Category;
    
        $.getJSON(URL, {
            tags: "Pinyin",
            tagmode: "any",
            format: "json"
        }, function (data) {
            $('#ChoiceA').append(data.nouns[0].Pinyin);
            $('#ChoiceB').append(data.nouns[1].Pinyin);
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a Windows Forms Application project using Visual Studio 2010. That being said:
I realize that it's been asked and answered that Visual Studio does not support
Visual studio keeps including sourceannotations.h to my C++ projects. This file seems to be
Visual Studio 2005. I was converting some of my source code to C#. However,
Visual Studio 2008, to be more specific. We're testing out moving to Perforce for
Visual Studio is x86 until at least the 2010 release comes around update: this
Visual Studio insists that it has to create executables in bin/Debug/ instead of just
Visual Studio has a plugin that allows one to copy code from any editor
Visual studio 2008 isn't catching syntax errors. for example: Tpc_feed(void); compiles fine. this: Tpc_feed(void);;;;;;;
Visual Studio 2010 .NET 3.5 Is there any tool that can trace the http

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.