Page 2 of 2

Re: StiMvcViewer bug

Posted: Fri Mar 22, 2013 1:47 pm
by brianj774
with the 1512 release, I continue to get the

SecurityError: The operation is insecure.
len = arr.length;

I'm wondering if this might be some kind of issue with scripts loading out of sequence? Here's my "report" page....

Oh, and another detail I think should be mentioned: this app is havily dependent on jQueryMobile. Perhaps that has something to do with the issue we are seeing (though that doesn't really explain why the 'Fx' versions of these calls all work right.

==================================================

Code: Select all

@model myApp.DAL.tblReport
@using System.Web.UI.WebControls;
@using Stimulsoft.Report.Mvc

@{
	ViewBag.Title = "Report";
}



<div id="reportPanel" style="height: 100%; width: 100%;">

	@Html.Stimulsoft().RenderMvcViewerScripts()
	@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {
		ActionGetReportSnapshot = "GetReportSnapshot",
		ActionExportReport = "ExportReport",

		Width = Unit.Percentage(100),
		Height = Unit.Pixel(800)
	})
</div>

Re: StiMvcViewer bug

Posted: Fri Mar 22, 2013 8:34 pm
by brianj774
getting closer....

So, as I was typing the above message, I remembered that when I originally wrote that code, that the documentation said that I should put the "RenderMvcViewerScripts()" in the html head tag. I went back, reread the documentation, verified it as true.

Then, I modified the code at the top of my render form to look like this:

Code: Select all

@{
	Layout = "_Layout_Reports.cshtml";
	ViewBag.Title = "Report";
}
Then I created a special Layout (_Layout_Reports.cshtml) file, installed the "RenderMvcViewerScripts()" in the html head tag, and removed jqueryMobile and all other scripts.

Now when I generate a new report...it still fails, saying that it can't find the MVC object. (ReferenceError: StiMvcViewer is not defined)

BUT, if I navigate directly to the page (bypassing all the jquerymobile stuff) I can actually get the report to render. It won't print, and is VERY flakey (zoom change loses the report and can't get it back, etc). But at least I can see the report.

So, whatever is wrong is somehow tied to my use of jquery mobile....any ideas?

Re: StiMvcViewer bug

Posted: Mon Mar 25, 2013 10:20 am
by HighAley
Hello.

The RenderMvcViewerScripts() wethod should be in the <head> element.
Please, send us a sample project, where this script are used and the preoblem could be reproduced.
We will try to fix it as fast as possible.

Thank you.

Re: StiMvcViewer bug

Posted: Mon Mar 25, 2013 12:30 pm
by brianj774
Aleksey, I think you misread my post. I got as far as I did by putting "RenderMvcViewerScripts()" in the head...

I'm still having difficulties with jqm transition to a report 'page' however.

Re: StiMvcViewer bug

Posted: Mon Mar 25, 2013 4:39 pm
by brianj774
From what I'm seeing, and I don't know how to describe it very well, neither the MvcViewer or MvcViewerFx scripts work from jquerymobile page transitions. However, contrary to the documentation, the Fx script versions seem to run just fine from deep in the page, while the non-Fx version fail at that point.

They both work from within the head tag, but ONLY on a full DOM reload.... I'm going to start a new thread for this issue.

Re: StiMvcViewer bug

Posted: Tue Mar 26, 2013 2:20 pm
by Vladimir
Hello,

We will answer in this forum topic:
http://forum.stimulsoft.com/viewtopic.php?f=14&t=36321

Thank you.