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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:49:08+00:00 2026-06-14T08:49:08+00:00

i created a very small mvc4 internet application that has an autocomplete textbox on

  • 0

i created a very small mvc4 internet application that has an autocomplete textbox on the home page. everything worked fine until i updated jquery using the nuget package manager to version 1.8.2, since then i get an Microsoft JScript runtime error: Object doesn't support this property or method error thrown by this function:

function reduce( elem, size, border, margin ) {
    $.each( side, function() {
    size -= parseFloat( $.curCSS( elem, "padding" + this, true) ) || 0;
        if ( border ) {
            size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true) ) || 0;
        }
        if ( margin ) {
            size -= parseFloat( $.curCSS( elem, "margin" + this, true) ) || 0;
        }
    });
    return size;

in the jquery-ui-1.8.20.js file.

this is how i call my script and styles in the _Layout.cshtml page:

@Styles.Render("~/Content/css")
@Styles.Render("~/Content/themes/base/css")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryui")
@RenderSection("scripts", required: false)

and the home page with the textbox:

  @using (Html.BeginForm("AutoComplete", "Home", FormMethod.Get, new { style = "text-align: center;" }))
{
    <input  type="text"  id="autocomplete"  name="key"  data-autocomplete=" @Url.Action("AutoCompleteData", "Home")"  /> 
}
@section scripts{
    <script type="text/javascript">
        $(document).ready(function () {
            $('#autocomplete').each(function () {
                $(this).autocomplete({
                    source: $(this).attr('data-autocomplete')
                });
            });
        });
    </script>
}

i tried changing the order of the scripts and styles call but it didn’t help.
the same code worked perfectly before the update.
any help would be appreciated.

EDIT:
i downloaded the newest jquery-ui files and added them to my project. I’m not receiving any errors now but when typing something to the textbox it looks like this:autocomplete
(the suggestions hide a part of the textbox and the bullets are visible),
after a refresh the suggestion are located fine but the bullets are still visible.

  • 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-14T08:49:09+00:00Added an answer on June 14, 2026 at 8:49 am

    so i downloaded the newest jquery files and replaced the ones installed by nuget, no luck!
    eventually i copied the content directory and the scripts directory form a new mvc4 project and everything works.

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

Sidebar

Related Questions

I created a very small web application using a JFace TableViewer . In the
I am writing a very small application with mvc4 and entity framework 5. I
I have a very small office environment, and my team sends created pdfs to
I've created a very simple Enterprise Application project with about 7 entity beans and
I'm building a very small web ERP application with PHP / mySQL / CodeIgniter
I have a small (very small) zend project that covers two modules, the admin
I created a very small code to add two integers and save the result
I am looking for a very small web application built especially to demonstrate jQuery
Hai i have Created a checkbox dynamically,,But the Size is very small so i
I have created a very small android app. I don't want to publish it

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.