{"id":1829,"date":"2022-08-30T15:19:47","date_gmt":"2022-08-30T15:19:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/jquery-autocomplete-issue-with-net-mvc-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:19:47","modified_gmt":"2022-08-30T15:19:47","slug":"jquery-autocomplete-issue-with-net-mvc-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jquery-autocomplete-issue-with-net-mvc-collection-of-common-programming-errors\/","title":{"rendered":"JQuery Autocomplete issue with .net mvc-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m having a problem using autocomplete in conjunction with other javascript libraries that I need in my project.<\/p>\n<p>When I run this simple example it works fine in the first time. It shows the autocomplete window perfectly, but if I try to change the word I&#8217;m typing it generates this error in Chrome:<\/p>\n<p>Uncaught ReferenceError: pos is not defined on the file jquery-1.4.4-vsdoc.js:2495<\/p>\n<p>This is the code:<\/p>\n<pre><code>$(function () {\n        var availableTags = [\n          \"ActionScript\",\n          \"AppleScript\",\n          \"Asp\",\n          \"BASIC\",\n          \"C\",\n          \"C++\",\n          \"Clojure\",\n          \"COBOL\",\n          \"ColdFusion\",\n          \"Erlang\",\n          \"Fortran\",\n          \"Groovy\",\n          \"Haskell\",\n          \"Java\",\n          \"JavaScript\",\n          \"Lisp\",\n          \"Perl\",\n          \"PHP\",\n          \"Python\",\n          \"Ruby\",\n          \"Scala\",\n          \"Scheme\"\n        ];\n        $(\"#txtPesquisar\").autocomplete({\n            source: availableTags\n        });\n    });\n<\/code><\/pre>\n<p>and I lead all these javascripts in my master page for my project.<\/p>\n<p>I don&#8217;t know why I get this error.<\/p>\n<pre><code>\n\n      \n  \n\n\n        \n\n \n \n\n\n\n             \n--%&gt;\n\n\n     \n\n    \n\n\n\n\n<\/code><\/pre>\n<p>I red something here in the forum it could be a postback functions but I don&#8217;t know how to figure it out.<\/p>\n<p>Thanks for your help<\/p>\n<ol>\n<li>\n<p>did you notice? the file vsdoc it&#8217;s a little bit older than jQuery version, even you should remove the vsdoc.js from the runtime version.<\/p>\n<p>if open the vsdoc you can find with this note.<\/p>\n<pre><code> \/*\n * This file has been commented to support Visual Studio Intellisense.\n * You should not use this file at runtime inside the browser--it is only\n * intended to be used only for design-time IntelliSense.  Please use the\n * standard jQuery library for all production use.\n *\n * Comment version: 1.4.4a\n *\/\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-12-02 20:56:26. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m having a problem using autocomplete in conjunction with other javascript libraries that I need in my project. When I run this simple example it works fine in the first time. It shows the autocomplete window perfectly, but if I try to change the word I&#8217;m typing it generates this error in Chrome: Uncaught ReferenceError: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1829","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1829"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1829\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}