You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "santosh yadav (JIRA)" <ji...@apache.org> on 2007/08/10 01:45:18 UTC

[jira] Created: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
---------------------------------------------------------------------------------------------------------------------------------

                 Key: WW-2100
                 URL: https://issues.apache.org/struts/browse/WW-2100
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.6
         Environment: Internet Explorer 6.0
            Reporter: santosh yadav


Hi,

I am trying to assign a javascript function to handler event of s:submit with ajax theme.
Inside javascript, I am trying to do few form validations and then refresh a div with required action.
It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
If I again refresh the whole page and try then it works.
It works fine in firefox all the time. 

P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 

Please find below javascript function used for reference:
function refreshDiv(widget, node) {
    var ajaxResultDiv = dojo.widget.byId('divId');
    ajaxResultDiv.href = 'href';
    ajaxResultDiv.formId = 'formId';
          //some validations
    ajaxResultDiv.refresh();
}

Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2100:
-----------------------------

    Fix Version/s:     (was: 2.0.11)
                   2.0.12

> Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2100
>                 URL: https://issues.apache.org/struts/browse/WW-2100
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Internet Explorer 6.0
>            Reporter: santosh yadav
>             Fix For: 2.0.12
>
>
> Hi,
> I am trying to assign a javascript function to handler event of s:submit with ajax theme.
> Inside javascript, I am trying to do few form validations and then refresh a div with required action.
> It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
> If I again refresh the whole page and try then it works.
> It works fine in firefox all the time. 
> P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 
> Please find below javascript function used for reference:
> function refreshDiv(widget, node) {
>     var ajaxResultDiv = dojo.widget.byId('divId');
>     ajaxResultDiv.href = 'href';
>     ajaxResultDiv.formId = 'formId';
>           //some validations
>     ajaxResultDiv.refresh();
> }
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Posted by "santosh yadav (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41791 ] 

santosh yadav commented on WW-2100:
-----------------------------------

Hi,
I guess, I missed this one -
I am getting debug message "DEBUG:  widget ID collision on ID: APPROVAL_FORM_ID_" 
where "APPROVAL_FORM_ID" is the id of form, that I am trying to submit. 

But I am getting this debug message during all operations (even when its not failing).

> Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2100
>                 URL: https://issues.apache.org/struts/browse/WW-2100
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Internet Explorer 6.0
>            Reporter: santosh yadav
>
> Hi,
> I am trying to assign a javascript function to handler event of s:submit with ajax theme.
> Inside javascript, I am trying to do few form validations and then refresh a div with required action.
> It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
> If I again refresh the whole page and try then it works.
> It works fine in firefox all the time. 
> P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 
> Please find below javascript function used for reference:
> function refreshDiv(widget, node) {
>     var ajaxResultDiv = dojo.widget.byId('divId');
>     ajaxResultDiv.href = 'href';
>     ajaxResultDiv.formId = 'formId';
>           //some validations
>     ajaxResultDiv.refresh();
> }
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2100.
---------------------------------

    Resolution: Cannot Reproduce

Please post question on the user list. I didn't noticed the first time around, but you are not using topics to refresh the div, which is the "supported" way of doing it, as there are a few confusing functions in the contentpanel class that look similar, refresh, refreshContent, etc. 

> Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2100
>                 URL: https://issues.apache.org/struts/browse/WW-2100
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.6
>         Environment: Internet Explorer 6.0
>            Reporter: santosh yadav
>             Fix For: 2.1.3
>
>
> Hi,
> I am trying to assign a javascript function to handler event of s:submit with ajax theme.
> Inside javascript, I am trying to do few form validations and then refresh a div with required action.
> It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
> If I again refresh the whole page and try then it works.
> It works fine in firefox all the time. 
> P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 
> Please find below javascript function used for reference:
> function refreshDiv(widget, node) {
>     var ajaxResultDiv = dojo.widget.byId('divId');
>     ajaxResultDiv.href = 'href';
>     ajaxResultDiv.formId = 'formId';
>           //some validations
>     ajaxResultDiv.refresh();
> }
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41782 ] 

Musachy Barroso commented on WW-2100:
-------------------------------------

Acn you give more details on what how does it fail? Is there an error? If you set debug="true" in head, is there any error in the log at the bottom of the page?

> Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2100
>                 URL: https://issues.apache.org/struts/browse/WW-2100
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Internet Explorer 6.0
>            Reporter: santosh yadav
>
> Hi,
> I am trying to assign a javascript function to handler event of s:submit with ajax theme.
> Inside javascript, I am trying to do few form validations and then refresh a div with required action.
> It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
> If I again refresh the whole page and try then it works.
> It works fine in firefox all the time. 
> P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 
> Please find below javascript function used for reference:
> function refreshDiv(widget, node) {
>     var ajaxResultDiv = dojo.widget.byId('divId');
>     ajaxResultDiv.href = 'href';
>     ajaxResultDiv.formId = 'formId';
>           //some validations
>     ajaxResultDiv.refresh();
> }
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Posted by "santosh yadav (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41790 ] 

santosh yadav commented on WW-2100:
-----------------------------------

Hi,

I do not see any errors in the log. 
But the div which I am trying to refresh, shows error "Error loading <href> (12030 Unknown)".
where <href> is the url of action, I am trying to invoke.

If I use errorText attribute of s:div, then value of that attribute is displayed instead of above error message.

> Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2100
>                 URL: https://issues.apache.org/struts/browse/WW-2100
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Internet Explorer 6.0
>            Reporter: santosh yadav
>
> Hi,
> I am trying to assign a javascript function to handler event of s:submit with ajax theme.
> Inside javascript, I am trying to do few form validations and then refresh a div with required action.
> It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
> If I again refresh the whole page and try then it works.
> It works fine in firefox all the time. 
> P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 
> Please find below javascript function used for reference:
> function refreshDiv(widget, node) {
>     var ajaxResultDiv = dojo.widget.byId('divId');
>     ajaxResultDiv.href = 'href';
>     ajaxResultDiv.formId = 'formId';
>           //some validations
>     ajaxResultDiv.refresh();
> }
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41782 ] 

musachy edited comment on WW-2100 at 8/9/07 6:51 PM:
-------------------------------------------------------------

Can you give more details on what how does it fail? Is there an error? If you set debug="true" in head, is there any error in the log at the bottom of the page?

      was (Author: musachy):
    Acn you give more details on what how does it fail? Is there an error? If you set debug="true" in head, is there any error in the log at the bottom of the page?
  
> Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2100
>                 URL: https://issues.apache.org/struts/browse/WW-2100
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Internet Explorer 6.0
>            Reporter: santosh yadav
>
> Hi,
> I am trying to assign a javascript function to handler event of s:submit with ajax theme.
> Inside javascript, I am trying to do few form validations and then refresh a div with required action.
> It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
> If I again refresh the whole page and try then it works.
> It works fine in firefox all the time. 
> P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 
> Please find below javascript function used for reference:
> function refreshDiv(widget, node) {
>     var ajaxResultDiv = dojo.widget.byId('divId');
>     ajaxResultDiv.href = 'href';
>     ajaxResultDiv.formId = 'formId';
>           //some validations
>     ajaxResultDiv.refresh();
> }
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2100) Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2100:
-----------------------------

    Fix Version/s: 2.0.11

> Refreshing a div from javascript using dojo fails on subsequent attempts after first refresh in IE 6.0. It works fine in firefox.
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2100
>                 URL: https://issues.apache.org/struts/browse/WW-2100
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Internet Explorer 6.0
>            Reporter: santosh yadav
>             Fix For: 2.0.11
>
>
> Hi,
> I am trying to assign a javascript function to handler event of s:submit with ajax theme.
> Inside javascript, I am trying to do few form validations and then refresh a div with required action.
> It works fine first time in IE 6.0.  But once the div is refreshed, doing same activity next time fails. 
> If I again refresh the whole page and try then it works.
> It works fine in firefox all the time. 
> P.S: Error is not consistent. I mean, sometime it works couple of times in succession and then fails. Sometimes it fails after first try. 
> Please find below javascript function used for reference:
> function refreshDiv(widget, node) {
>     var ajaxResultDiv = dojo.widget.byId('divId');
>     ajaxResultDiv.href = 'href';
>     ajaxResultDiv.formId = 'formId';
>           //some validations
>     ajaxResultDiv.refresh();
> }
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.