trifleJS icon indicating copy to clipboard operation
trifleJS copied to clipboard

trifle.modules.WebPage.js (157,17): Parameter is not valid.

Open juliensobrier opened this issue 10 years ago • 2 comments

I got this error:

WebPage.prototype.render(filename) trifle.modules.WebPage.js (157,17): Parameter is not valid.

I'm not sure if (157,17) refers to the .Net source code or the javascript file TrifleJS. executes. Line 157 in WebPage.cs has no code. I looked for "Parameter is not valid" in the whole project, I could not find it.

juliensobrier avatar Feb 05 '15 06:02 juliensobrier

The issues is that the viewport width was set to 0 (undefined in Javascript). See https://github.com/juliensobrier/trifleJS/commit/df345c550e1434ef71f90ee27b0f0f9c3517f021 for some additonal checks

juliensobrier avatar Feb 10 '15 23:02 juliensobrier

Hi Julien, this looks like the javascript used in trifleJS to setup the internal javascript environment (replumb the 'page' methods/setters to their .net counterparts) is throwing an error. Possibly when passing a parameter to the .NET _render() method. Sorry been a bit busy lately no had much of a chance to look at triflejs this month yet.

sdesalas avatar Feb 11 '15 15:02 sdesalas