[code]
public ActionResult Temp()
{
var scheduler = new DHXScheduler(this); //initializes dhtmlxScheduler
scheduler.LoadData = true;// allows loading data
scheduler.EnableDataprocessor = true;// enables DataProcessor in order to enable implementation CRUD operations
var box = scheduler.Lightbox.SetExternalLightbox(“Admin/Scheduler/CustomLightBox”, 600, 500);
scheduler.BeforeInit.Add(“init()”);
return View(scheduler);
}
[HttpPost]
public ActionResult CustomLightBox(CalendarEvent calEvent)
{
return PartialView(“CustomLightBox”, calEvent);
}[/code]
The error seems to be coming in the dhtmlxscheduler_custom_lightbox.js on the innerHTML.
form += '</form>';
if (!frame.Document)
var frameBody = frame.contentDocument.body;
else
var frameBody = frame.Document.body;
frameBody.innerHTML = form;
Thanks for any help, I can give more info if needed.
Yes, I get Line: 66 Error: Unknown runtime error. I’m pretty sure it has to do with invalid html. It looks like it trys to put the form inside the html head tag and then repeats the contents of the form, exlcuding the form itself and hidden elements in the body tag. I have attached an image of both. I’m using IE 8.
Above is the error message…not much detail.
This is what framebody.innerHTML looks like when my project breaks. Notice abandoned form tag at the end.
Any update on this? Unobtrusive validation doesn’t appear to work as well. It most have trouble with the form being in the head and the fields being duplicated in the head and body.
Hi,
please, try the attached sample,
does the issue happens there?
The validation rule is following
[Required]
[StringLength(15)]
public string text { get; set; } jqueryValidation.zip (738 KB)
Thanks for the reply. This doesn’t appear to work in IE 8 or in compatibility view. It keeps calling the LightboxControl action over and over. I tried in firefox and chrome and it appears to work. Sorry if you felt rushed, just wanted to make sure this worked before purchasing the control. Everything else seems great. Thanks.