You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "robert mcguinness (JIRA)" <ji...@apache.org> on 2010/10/25 20:12:22 UTC
[jira] Commented: (WICKET-1349) Wicket Ajax response generates a
"^" character in the javascript code
[ https://issues.apache.org/jira/browse/WICKET-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924660#action_12924660 ]
robert mcguinness commented on WICKET-1349:
-------------------------------------------
Was able to reproduce with Wicket 1.4.12 and Firefox 3.6.11:
<wicket:head>
<script type="text/javascript">
$(document).ready(function(){
var textField = $(":text:first");
textField.live("focus", function() {
$("input[name='suggestedUserId']").attr("checked",false);
});
var radios = $("input[name='suggestedUserId']");
radios.live("click", function() {
textField.val($(this).val());
});
});
</script>
</wicket:head>
returns:
<script type="text/javascript" id="com-availity-axi-web-component-panel-UserIdInUsePanel-0">
$(document).ready(function(){
var textField = $(":text:first");
textField.live("focus", function() {
$("input[name='suggestedUserId']^").attr("checked",false);
});
var radios = $("input[name='suggestedUserId']^");
radios.live("click", function() {
textField.val($(this).val());
});
});
</script>
> Wicket Ajax response generates a "^" character in the javascript code
> ---------------------------------------------------------------------
>
> Key: WICKET-1349
> URL: https://issues.apache.org/jira/browse/WICKET-1349
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.1
> Environment: IE6 and IE7
> Reporter: Wen Tong Allan
> Assignee: Igor Vaynberg
>
> I have a page that uses AjaxFallbackDefaultDataTable (using SortableDataProvider ). The markup contains user-define javascript that I added. When I try to do some action (delete row) with the table, the page doesn't refresh in IE6 and IE7. I checked the Wicket Ajax Debugger and it displays:
> > > ERROR: Error while parsing response: Object required
> > > INFO: Invoking post-call handler(s)...
> > > INFO: invoking failure handler(s)...
> I also noticed that the user-define javascript that was returned by the ajax debugger was appended by "^". (See javascript below):
> // enable disable button.
> function setButtonState() {
> var formObj = eval(document.getElementsByName("contactListForm")[0]^);
> var state = anyChecked(formObj);
> document.getElementsByName("deleteContactsButton")[0]^.disabled = !state;
> document.getElementsByName("newContactGroupButton")[0]^.disabled = !state;
> document.getElementsByName("newEventButton")[0]^.disabled = !state;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.