Menu

#1581 HtmlImageInput missing coordinate parameters

Latest SVN
closed
RBRi
None
1
2014-03-06
2014-03-05
Carsten
No

If an input with type='image' is "clicked" with javascript the NAME.x and NAME.y parameters are missing from the request. That is beacuse HtmlInput.click(Event) is called and HtmlImageInput.wasPositionSpecified_ is never set to true.

The attached patch overrides HtmlImageInput.click(Event) which sets wasPositionSpecified_ to true and x/y to 0 (Same behaviour as real browser have). It also includes a test case.

1 Attachments

Discussion

  • Carsten

    Carsten - 2014-03-05

    Disregard the attached patch, it breaks HtmlInputImage.click(x,y). I attach a new patch when I fixed it.

     
  • Carsten

    Carsten - 2014-03-06

    New patch which also fixes the previous problem.

     
  • RBRi

    RBRi - 2014-03-06
    • status: open --> accepted
    • assigned_to: RBRi
     
  • RBRi

    RBRi - 2014-03-06
    • status: accepted --> closed
     
  • RBRi

    RBRi - 2014-03-06

    Thanks for the patch.

     

Log in to post a comment.