Application Deactivation : Doubt on iHD Sim Behaviour

I hav a scenario :::::

APP_FOO is active.
step1) Script ( through DOMCORE API) changes the BUTTON from "red" to "blue"
step2) Script deactivates the current app APP_FOO( which contains the BUTTON)
step3) Script activates another app .

....later we activate APP_FOO again .

Now guess the color of BUTTON

Result on ihdSim: BUTTON is red

DOUBT : Should not it be blue ..since the script changed the loaded DOM

Or does deactivation implies flushing out changes on a) LIVE DOM
b) LOADED DOM
c) BOTH
offcourse if answer is c) then iHDSim behaves nice and correctly.




Answer this question

Application Deactivation : Doubt on iHD Sim Behaviour

  • Cataa

    De-activating an application is like shutting it down. The changes you make through the W3C APIs are only to the in-memory representation of the DOM, not to the actual file that is loaded.

    When you re-activate the application, the original XML file is re-loaded without any of your changes.



  • vhhughes

    Yes, you have killed the application.

  • .net sukbir


     Peter Torr - MSFT wrote:

    De-activating an application is like shutting it down. The changes you make through the W3C APIs are only to the in-memory representation of the DOM, not to the actual file that is loaded.


    Does it mean , my  XPath variables will also be re-set, and my global script variables too be destroyed.

    i.e. in my game application i have to somehow save my game score because on the next activation everything would be destroyed.

    Thanks


  • Application Deactivation : Doubt on iHD Sim Behaviour