Custom Spread Events on Internet Explorer 7

Posted by: fernando.sepulveda on 29 September 2017, 8:22 am EST

    • Post Options:
    • Link

    Posted 29 September 2017, 8:22 am EST

    Hi Spread Team,

    I am working with Spread 9.0.

    I am having little problems trying to attach custom events (EditStart, DataChanged, etc) on a spread in Internet Explorer 7. I have tried with the following sentences with no luck:

    1.- fps_spread.onEditStart = function(){alert(‘hi’);}

    2.- fps_spread.EditStart = function(){alert(‘hi’);}

    3.- fps_spread.attachEvent(‘EditStart’, function(){alert(‘hi’);})

    4.- fps_spread.attachEvent(‘onEditStart’, function(){alert(‘hi’);})

    5.- fps_spread[“EditStart”] = function(){alert(‘hi’);}

    6.- fps_spread[“onEditStart”] = function(){alert(‘hi’);}

    Please note the function alert is for reference purposes. Please note too that “addEventListener” is not available on Internet Explorer 7.

    What I am doing wrong? It is neccesary to work with that explorer (very old applications).

    Thanks in advance.

  • Posted 3 October 2017, 2:42 am EST

    Hello,

    Please use the code as follows for onEditStart:

    Thanks,

    Deepak Sharma

  • Posted 4 October 2017, 3:20 am EST

    Dear deepak.sharma,

    I have had test the sample given with no luck.

    The only way to fire custom events of the spread was to write the events directly on HTML (Inline HTLM).

    I’m using Internet Explorer 11 with Compatibility View, which changes the document to Internet Explorer 7, maybe that’s the reason the another examples doesn’t work.

    I will appreciate if you can confirm the problem in that scenario.

    Thanks in advance.

  • Posted 6 October 2017, 3:24 am EST

    Hello,

    IE7 does not have “addEventListener” attribute to work with but it should support attachEvent. Also code given by above should work fine.

    Please add the following in your page and see if it works:

    Thanks,

    Deepak Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels