Ticket #191 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

custom validator js causes duplicated postbacks

Reported by: xue Owned by: wei
Priority: urgent Milestone: 3.0.2
Component: Prado Framework v3 Version: 3.0
Severity: major Keywords:
Cc:

Description (last modified by xue) (diff)

This happens only on IE, not FF.

When a page has a custom validator and a TButton, clicking on the button will cause postback twice (i.e., running index.php twice on the server side). TLinkButton looks fine. I haven't checked other postback controls.

Please check the associated functionality test (tests/FunctionalTests/tickets/index.php?page=Ticket191)

Change History

Changed 3 years ago by xue

  • description modified (diff)

Changed 3 years ago by wei

  • status changed from new to closed
  • resolution set to invalid

Unable to verify in Firefox 1.5, IE 7 beta1, Safari 2.0.3, opera 8, Camino 1.0.1.

Changed 3 years ago by Jaco <jaco@…>

I can verify that there is a problem with duplicated postbacks with a TButton. I'm trying to build a small testcase. The problem is however that it seems to occur randomly, it looks like it is related to the amount of components on the page, a lot of components means it occurs more often than with a small page.

I suspect there is some problem with a javascript (onclick?) event handler which submits the form twice sometimes, maybe related to a DefaultButton?.

If i can create a consistent testcase i'll create a new ticket.

Changed 3 years ago by xue

  • status changed from closed to reopened
  • resolution invalid deleted

Wei, could you test on IE 6.0? I think IE 7.0 fixed many problems.

See also #202.

Changed 3 years ago by xue

...this is getting tricky. I couldn't verify the issue on another machine's IE. So let's wait for more issue reports.

Changed 3 years ago by wei

  • milestone changed from 3.0.1 to 3.0.2

Still unable to verify in IE 6

Changed 2 years ago by xue

  • status changed from reopened to closed
  • resolution set to fixed

This is caused by google toolbar (beta version). Calling Event.stop(event) in postback fixes the problem (but it loses the feature of not stopping event.)

Note: See TracTickets for help on using tickets.