javascript - Unable to get property 'contentWindow' of undefined or null reference -


i have ajax editor in bootstrap modal. first time modal opens runs fine, next time toolbar no longer there , throws error. ideas might happening?

thanks

unhandled exception @ line 84, column 9 in http://localhost:53818/scriptresource.axd?d=qnqjulwx76vy-vopv0soyewuqjsyitje2m_rwwfpn9dp9kl-kveuy2eip-ixad4lmlqvg3esyd48cwhyjvzaf9a1yrm5xmxfczwi0padvafnv8mz4aoolzvdvbmrkxacgpsjb28ti_zex-htr-9ysw2&t=ffffffffda74082d 

error thrown in scriptresource.axd - this._doc = this.get_element().contentwindow.document;

 _initiframe: function(value) {     if (!sys.extended.ui.htmleditor.isie) {         this._savedvalue = value;         this._absandfixedparents = this._getabsandfixedparents();     }     var str = sys.extended.ui.htmleditor.trim(this._preparecontent(value));     this._doc = this.get_element().contentwindow.document;      if (!sys.extended.ui.htmleditor.isie) {         this._doc.designmode = "on";     } 

this modal

 <div id="modaleventseditor" class="modal">     <div class="modal-dialog">         <div class="modal-content">               <asp:updatepanel id="eventsupdatepanel" runat="server">                 <contenttemplate>                       <div class="modal-header">                         <button class="close" aria-hidden="true" type="button" data-dismiss="modal">×</button>                         <h4 class="modal-title">events</h4>                     </div>                     <div class="modal-body">                            <div role="form">                                <fieldset>                                 <div id="eventdatediv" class="form-group">                                     <label id="eventdatelabel" for="inputeventdate">date</label>                                     <asp:textbox id="inputeventdate" cssclass="form-control" placeholder="the date of event" runat="server"></asp:textbox>                                     <ajaxtoolkit:calendarextender runat="server" targetcontrolid="inputeventdate"></ajaxtoolkit:calendarextender>                                 </div>                                  <div id="eventtimediv" class="form-group">                                     <label id="eventtimelabel" for="inputeventtime">time</label>                                     <input id="inputeventtime" class="form-control" runat="server" type="text" placeholder="the time of event" />                                 </div>                                  <div id="eventauthordiv" class="form-group">                                     <label id="eventauthorlabel" for="inputeventauthor">author</label>                                     <input id="inputeventauthor" runat="server" class="form-control" type="text" placeholder="the author of notice" />                                  </div>                                  <div id="eventtitlediv" class="form-group">                                     <label id="eventtitlelabel" for="inputeventtitle">title</label>                                     <input id="inputeventtitle" runat="server" class="form-control" type="text" placeholder="the title of notice" />                                 </div>                               </fieldset>                           </div>                          <div id="editorcontainer">                             <cc1:editor id="editor1" runat="server" />                         </div>                       </div>                       <div class="modal-footer">                         <button class="btn btn-default" type="button" data-dismiss="modal">close</button>                         <button id="modaleventseditorbutton" runat="server" class="btn btn-primary" type="button">save changes</button>                     </div>                 </contenttemplate>             </asp:updatepanel>          </div>     </div> </div> 

it appears ms ajax async editor control is, well, not asynchronous!! proverbial chocolate fireguard.

as ms asp.net forum use tinymce went down path. bit of headache work modal figured out in end - if wants method leave message , post code


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -