tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TAP5-712) Form component: javascript error in IE when submitting form
Date Fri, 01 Apr 2011 00:12:05 GMT

     [ https://issues.apache.org/jira/browse/TAP5-712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Howard M. Lewis Ship closed TAP5-712.
-------------------------------------

    Resolution: Won't Fix
      Assignee: Howard M. Lewis Ship

The waitForPage() logic was added for a specific reason and is essential.  Because you say
this only affects users of IE who are using it in developer mode, I can't see this as a big
issue.

The alternative is much uglier; it would involve rendering link tags and forms as (possibly)
span tags (so that clicking them would not take effect) and then using JavaScript to convert
them to their proper type after the fact ... perhaps there are other options, but all involve
disabling the page and re-enabling it with JavaScript. That screws anyone who doesn't use
JavaScript, and further, requires JS even on the very first page of the application, which
has its downsides for performance and scalability.

> Form component: javascript error in IE when submitting form
> -----------------------------------------------------------
>
>                 Key: TAP5-712
>                 URL: https://issues.apache.org/jira/browse/TAP5-712
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Sergey Didenko
>            Assignee: Howard M. Lewis Ship
>         Attachments: VoteForm.java, VoteForm.tml, VoteForm3.java, VoteForm3.tml
>
>
> IE6, IE7 and IE8 popup a javascript error dialog if script debugging is enabled in browser
settings. "A Runtime Error has occured. Do you wish to Debug? Error: Tapestry is undefined".
> Debugging shows that the reason is ' onsubmit="javascript:Tapestry.waitForPage(event);"
' part of ' <form enctype="application/x-www-form-urlencoded" onsubmit="javascript:Tapestry.waitForPage(event);"
action=... '
> This can be very bad for web developers that visit tapestry based site.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message