﻿function init_Textbox(_moduleid, _iseditable) {
  var html = "";
  $.ajax({
      type: "POST",
      url: "/desktopmodules/sitebuilder/components/WebService.asmx/FetchHTML",
      // pass parameters to webmethod
      data: "{ModuleID: " + _moduleid + "}",
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      success: function(msg) {
          // clear all current modules
          $('#placeholder').empty();
          // if data is returned, iterate through response
          if (null != msg) {
              html = msg.HTML;
              $('#lnkaddnew span span.t').html('Edit New Content');
          }
          $('#modulebody').append(html);
          SetEditControls(_iseditable, _moduleid, 'Textbox');
      }
  });
}

