Moved from Yellowgrass to WebDSL issue.

  • When entering a tag followed by [return], I get an 404 in firefox 17.0.1

  • At the log in page, it would be nice if [return]-key forces the log-in action.

  • #302

Submitted by Elmer van Chastelet on 15 January 2013 at 14:29

On 15 January 2013 at 14:29 Elmer van Chastelet tagged 1.3.0

On 15 January 2013 at 14:30 Elmer van Chastelet tagged @dannygroenewegen

On 15 January 2013 at 15:10 Danny Groenewegen commented:

This is caused by using a submitlink or ajax submit (using onclick= actions), instead of a regular submit (which translates to <input type="submit" and is invoked when pressing enter). A workaround is needed to emulate the browser form submit behavior, e.g. some Javascript hooked to the form submit. This also needs to be tested in forms with multiple submits and multiple submit variants.


On 16 January 2013 at 16:47 Eelco Visser commented:

The problem with the submit is that it cannot be used with an icon instead of text. A workaround is to have two submits:

      input(query)[placeholder="Search", class="span2"]  
      submit search(query) [class="btn", style="display:none;"] { "Search" } // is not displayed
      submitlink search(query) [class="btn"] { iSearch }                     // icon

The first is not displayed, but catches the enter event, the second is displayed and can be clicked with mouse or touch. It is not clear that there is a better solution due to the limitation of <input type="submit"> in html.


On 16 January 2013 at 16:47 Eelco Visser closed this issue.

On 16 January 2013 at 16:47 Eelco Visser tagged workaround

On 16 January 2013 at 16:47 Eelco Visser removed tag @dannygroenewegen

Log in to post comments