Gadget System.Gadget.Settings.write

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alan75
    New Member
    • Apr 2007
    • 60

    Gadget System.Gadget.Settings.write

    1) is System.Gadget.S ettings.write secure? would it be save to store login password?

    2) this is the code i wrote to store the settings, but the value fail to save. did i do something wrong or less?

    Code:
    //the javascript portion
    System.Gadget.Settings.write("username", user.value);
    
    //the html portion
    <input name="user" type="text" id="user">
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Have you checked the documentation?

    Comment

    • alan75
      New Member
      • Apr 2007
      • 60

      #3
      i solved part 2 of my post. thanks.

      i cant find the part in documentation of how the value are saved, is it secure/encrypted?

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Originally posted by alan75
        i solved part 2 of my post. thanks.
        Good. Can you post the working code for the benefit of others. Thanks.

        Originally posted by alan75
        i cant find the part in documentation of how the value are saved, is it secure/encrypted?
        See if this article helps. The documentation on the security aspect is a little sparse.

        Comment

        • alan75
          New Member
          • Apr 2007
          • 60

          #5
          Originally posted by acoder
          Good. Can you post the working code for the benefit of others. Thanks.
          there is actually no error in the code, but with the poor documentation as usual from microsoft, i place the code on the wrong page. if anyone has prob with this issue, pls state there, i would be happy to email you the whole project.

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by alan75
            there is actually no error in the code, but with the poor documentation as usual from microsoft, i place the code on the wrong page. if anyone has prob with this issue, pls state there, i would be happy to email you the whole project.
            Thanks for the offer, or if it's not too much of a problem, just attach it to your post.

            Comment

            • alan75
              New Member
              • Apr 2007
              • 60

              #7
              sorry for the late reply.

              this line:
              System.Gadget.S ettings.write(" username", user.value);

              should be written on the page that save the value and not the main page. a simple mistake made by a newbie like me.

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                Better late than never ;) Thanks for posting.

                Comment

                Working...