Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft JScript runtime error: Member not found

i am using asp.net mvc3 and jquery dialogue to open partial view in main view

here is my structure..

partialview 1

<input type="button" onclick="function1();">

partial view 2

<form method="post"> 
    //some elements

    @Html.RenderPartial("partialview1");
</form> 

view 1

<script src="myscript.js" />
<script src="jquery.js"/> 
//some element

<div>
    load partialview 2 as jquery dialogue 
</div>

myscript.js

  function function1()
  {
     //some code
  }

this is just only overview of my application

now in above structure if i click on button in the partialview1 i am getting this error : Microsoft JScript runtime error: Member not found.

like image 523
BrainCoder Avatar asked Nov 30 '12 14:11

BrainCoder


People also ask

What is Microsoft JScript runtime error?

If you're getting a "Microsoft JScript runtime error" that means that node. js isn't even getting invoked; instead Windows Script Host is trying to run your code. That's probably a problem with filetype associations; IIRC Windows defaults to trying to execute a ". js" file with WSH.

What causes runtime error Javascript?

Runtime errors, also called exceptions, occur during execution (after compilation/interpretation). For example, the following line causes a runtime error because here the syntax is correct, but at runtime, it is trying to call a method that does not exist.

What are the jQuery&Microsoft JScript runtime errors?

Microsoft JScript runtime error: Unable to get value of the property 'defaultView': object is null or undefined 0 Jquery Ajax & Microsoft JScript runtime error: Syntax error, unrecognized expression:

How to fix Microsoft JScript DLL error 3 ways?

How to Fix Microsoft.JScript.dll Errors in 3 Steps (Time to complete: ~5-15 minutes) 1 Restore your PC back to the latest restore point, "snapshot", or backup image before error occurred. ... 2 If recently installed Bible Pro (or related software), uninstall then try reinstalling Bible Pro software. ... 3 Perform a Windows Update.

How to download the Windows version of JScript?

Locate your Windows operating system version in the list of below "Download Microsoft.JScript.dll Files". Click the appropriate "Download Now" button and download your Windows file version. Restart your computer.

What does'member not found'mean?

1 Actually, 'Member Not Found' occurs on all browsers and other non-browser programs. In browsers, placing a button or radial with the same name as the function it calls within a form induces this error. Either rename the button or move it outside of the form.


1 Answers

I found the solution in my case.

<input id="function1" type="button" onclick="function1();">

I have used id of the input type button (ie: function1) as the same name of function (ie: function1).

As I don't know much about it. But by changing id of the button or function name solves my problem.

like image 143
BrainCoder Avatar answered Nov 13 '22 04:11

BrainCoder