Monday, 15 August 2011

c# - Runtime Error: Syntax error in Java Script in clean Basic MVC 4 ASP.NET Project -



c# - Runtime Error: Syntax error in Java Script in clean Basic MVC 4 ASP.NET Project -

i new asp.net , created mvc 4 asp .net project. runs in browser errors below , don't why so.

błąd czasu wykonywania kodu javascript means runtime error java script.

'iexplore.exe' (script): loaded 'script code (windows net explorer)'. exception thrown @ line 5302, column 6 in http://localhost:6468/scripts/jquery-1.8.2.js 0x800a139e - błąd czasu wykonywania kodu javascript: syntaxerror exception thrown @ line 37, column 60610 in http://localhost:3176/d36ef192c476437f94f058c98480760b/browserlink 0x800a139e - błąd czasu wykonywania kodu javascript: syntaxerror exception thrown @ line 37, column 60451 in http://localhost:3176/d36ef192c476437f94f058c98480760b/browserlink 0x800a139e - błąd czasu wykonywania kodu javascript: syntaxerror exception thrown @ line 37, column 60451 in http://localhost:3176/d36ef192c476437f94f058c98480760b/browserlink 0x800a139e - błąd czasu wykonywania kodu javascript: syntaxerror exception thrown @ line 37, column 60451 in http://localhost:3176/d36ef192c476437f94f058c98480760b/browserlink 0x800a139e - błąd czasu wykonywania kodu javascript: syntaxerror exception thrown @ line 37, column 60451 in http://localhost:3176/d36ef192c476437f94f058c98480760b/browserlink 0x800a139e - błąd czasu wykonywania kodu javascript: syntaxerror thread 0x1324 has exited code 259 (0x103). thread 0x11f8 has exited code 259 (0x103). thread 0x954 has exited code 259 (0x103).

_layout.cshtml file:

<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>@viewbag.title</title> @styles.render("~/content/css") @scripts.render("~/bundles/modernizr") </head> <body> <div id="header"> <h1>asp.net mvc music store</h1> <ul id="navlist"> <li class="first"><a href="/" id="current">home</a></li> <li><a href="/store/">store</a></li> </ul> </div> @renderbody() @scripts.render("~/bundles/jquery") @rendersection("scripts", required: false) </body> </html>

http://localhost:3176/d36ef192c476437f94f058c98480760b/browserlink:

line 37 col 60541:

{return w.apply(f,x.call(m.queryselectorall(n),0)),f}catch(p){}finally{k||d.removeattribute("id")}}

answered similar question on here. reposting here.

those handled exceptions, correct? if so, can safely ignore of javascript syntax "errors" in output window. jquery team finds acceptable utilize handled exceptions logic flow. yes, decision makes debugging application through vs more difficult. clouds output window.

for more info check jquery ticket 14123.

c# javascript internet-explorer asp.net-mvc-4

No comments:

Post a Comment