Neatware  Header

    Task

  1. Go

    It went to destination URL and displayed a card. It pushed onto the history stack.

    _go( "href='href' sendreferer='boolean' 
         method='method' accept-charset='charset'" );
      setvar *
      postfield *
    go_();
    

    'href' attribute specifies the destination URL and it is required. If 'sendreferer' attribute value is true, a server can be set to assign access control. Its default value is false. 'method' attribute specifies the HTTP method. It may be get or put where get is the default value. 'accept-charset' attribute specifies a list of character set that a server recognized. The default value is unknown.

    __postfield methods inside the _go method specify the information tha is sent to server. The name/value pairs are packed into application/x-www-form-urlencoded content type. And they are sent to server according to the get or post method.

    _go( "href='http://www.snaml.com/snaml_mobile'" );
      __postfield( "name='abc' value='2000'" );
      __postfield( "name='def' value='3000'" );
    go_();
    

    will construct a HTTP GET request

    http://www.snaml.com/snaml_mobile?abc=2000&def=3000
  2. Prev

    _prev method navigates to the previous URL in the history stack. It completes a pop operation on the history stack. If the stack is empty, there is no effect.

    _prev();
      setvar *
    prev_();
    
  3. Noop

    It is a "no operation' method.

    __noop();
  4. Refresh

    It updates card variables and refresh the display.

    _refresh();
      setvar *
    refresh_();