locked
[WinJS] Resets value of form to default value after MessageDialog

    Question

  • default.html
    buttons.js
    default.js

    These are my codes (on pastebin). For some reason my whole form resets to the default values when I press the button. I read through my code 10 times and still don't see the problem. It's probably a stupid mistake I made (A)

    Help is appreciated :D


    • Edited by StefanJanssen Sunday, August 03, 2014 5:58 PM strange link behaviour
    Sunday, August 03, 2014 5:57 PM

Answers

  • Hi StefenJanssen,

    Remove the <form> tag from your code should help.

    <form> tag is used to submit the page and refresh the page. If form tag is a must, you may need to save the data to the local, and reload them after the form refreshed. More information take a look at the documentation: Part 2: Manage app lifecycle and state

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Monday, August 04, 2014 4:34 AM
    Moderator