form can not get the value about

Sciter Forums Bug reports form can not get the value about

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  hello123 1 week, 4 days ago.

  • Author
    Posts
  • #49344

    hello123
    Participant

    This is a demo:

    
    <html>
    <head>
        <script type="text/tiscript">
            self.ready = function(){
                $(textarea#json).value = String.printf("%V", $(form).value).replace("\t","  "); 
            }
        </script>
    </head>
    <body>
    <form>
    	<input|text(test) #title value="test" />
    	<input|hidden(test2) #title value="test2" />
    	<input|text(test3) style="display:none;" value="test3"/>
    </form>
    <textarea #json></textarea>
    </body>
    </html>
    

    I can’t get test2 and test3,bug?

  • #49351

    Andrew
    Keymaster

    Bug, yes. Fixed here already.

    By the way, JSON pretty printing:

    $(textarea#json).value = JSON.stringify( $(form).value, "  ");
    
  • #49364

    hello123
    Participant

    Thanks!

You must be logged in to reply to this topic.