I get the following error from executing my code: Microsoft JScript runtime error : The operation failed to complete due to error 80020101.
The following link is what I found in Stackoverflow: Problem with Ajax request: error 80020101
var div = $("<div class='modal'>").html($(result.getWebFormDesignFieldContentsResult));
Passed in the information, result.getWebFormDesignFieldContentsResult is a long string of HTML and JAVASCRIPT that is not yet parsed in the DOM. I just find it strange since I worked on it the other day and then tried to add additional functionality ... breaking it. :(
The string passed in is quite large, but there is something like:
<div>input tags for filtering</div> <select><option></option>...[150 option tags]... </select> <anchor tag to return contents> <script type = "text/javascript"> ...stuff fires related to the above items... </script>
I thought that he was having a problem with passing information passed as a string to be placed in a div tag, since it CANNOT look like script tags.
Has anyone else done this or what should I give some guidance on how to handle this? Maybe I want to create a string object and then break the contents accordingly and place the html in html only and then process the js in a different style.
Result String (result.getWebFormDesignFieldContentsResult)
You can also visit here: http://jsfiddle.net/3kFv2/
<table style='width:inherit;'> <tr> <td> <input type='text' id ='queryInput' onkeypress = 'clearTimeout(timerVar); timerVar = setTimeout(function(){ fetchFieldInfo($("#queryInput").val()); },1000);' /> </td> <td style = 'text-align:right;'> <a class = 'modalButton' id = 'queryButton' runat='server' value = 'Re-Filter' onCLick = '$("div.modal").fadeOut(); fetchFieldInfo($("#queryInput").val());'>Re-Filter</a> </td> </tr> <tr> <td colspan='2' style='margin-left:auto; margin-right:auto; text-align:center;'><select size = '20' id = 'selectList' name = 'selectList' ><option value = '1000'>Abutment Notes</option><option value = '2300'>Abutments Notes</option><option value = '2302'>Abutments Notes Maint Need</option><option value = '2301'>Abutments Notes Remarks</option><option value = '10942'>Concrete Deterioration Maint Need</option></select></td> <td> <div style='width:300px;height:300px;' id = 'modalInfoPanel'> </div> </td> </tr> <tr> <td></td> <td style='text-align:right;'> <a class = 'modalButton' id = 'buttonReturnValue' value = 'Return Selected Element' onClick='$("div.modal, div.overlay").fadeOut();'>Return Selected Element</a> </td> </tr> </table> <script type = 'text/javascript'> function ajaxDisplayContents(value){ </script>
source share