LamaAni / XPress

An Alpha version website builder for C#
Other
0 stars 0 forks source link

Error on javascript activation "onmouseover" #4

Open IgorReidler opened 10 years ago

IgorReidler commented 10 years ago

Add an attribute "onmouseover" to a XPressControl with activation=Context. Then error appears in console

Uncaught SyntaxError: Unexpected identifier _get.cmd.link?source=XPress.Web.Core.XPressCore.js&lid=%3f%3f%3fh%3f%3f+d%3f%3f%3fk%3fq%3f%3f:307 (anonymous function) _get.cmd.link?source=XPress.Web.Core.XPressCore.js&lid=%3f%3f%3fh%3f%3f+d%3f%3f%3fk%3fq%3f%3f:307 jQuery.extend.each _get.cmd.link?source=XPress.Web.Core.jquery.js&lid=%3f%3f%3f%17%3f%3f%3f1%0cI%3f7%3f%3f%3f%3f:591 jQuery.fn.jQuery.each _get.cmd.link?source=XPress.Web.Core.jquery.js&lid=%3f%3f%3f%17%3f%3f%3f1%0cI%3f7%3f%3f%3f%3f:238 $.extend.Activate _get.cmd.link?source=XPress.Web.Core.XPressCore.js&lid=%3f%3f%3fh%3f%3f+d%3f%3f%3fk%3fq%3f%3f:292 $A$ _get.cmd.link?source=XPress.Web.Core.XPressCore.js&lid=%3f%3f%3fh%3f%3f+d%3f%3f%3fk%3fq%3f%3f:350 onmouseover

LamaAni commented 10 years ago

The error occurred when entering an invalid string into the onmouseover/onclick event. Fixed by converting event activation to JSON. (might be a bit slower?)