Elements go missing
I've run into an odd issue. It has nothing to do with my code. Sometimes, FF just sets an entire DIV to "HIDDEN". This occurs in IE also, but a simple clean cache resolves the issue.
My concern is once I go into production, this may occur randomly. Is there a way to troubleshoot this can of behaviour? Has this something to do with my rendering? Or has this something to do with my webserver?
Thanks for any input.
Jack
You could add logging statements to Ext functions which your code might be calling in error.
Like Element.hide, Element.setVisible, Component.hide, Component.setVisible
Then examine the log. You could even log stack traces by throwing and catching an error, and capturing its stack so that you can sift through it and trace back to the line of code with the mistake in it.
Well that's what I'd do. Report back on your line of attack and your progress.
The only components that can hold state are:
- items in layout:'border' (height/width/collapsed)
- Ext.Window (top/left/height/width)
- Ext.GridPanel (column order/width/hidden)
If it seems to be happening at "random" it might be related to an ajax callback returning, or something else you may have running on a timer.
Does your code contain the following line:
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
In that case you should put this on top of your code:
Ext.Component.prototype.stateful = false;
and add stateful:true and stateId:'
I'm not much of a programmer, so could you point me in the right direction for doing as you said:
"You could add logging statements to Ext functions which your code might be calling in error"
Thanks
Jack
Thank you for the detailed explanation. Just a short question regarding :
"add stateful:true and stateId:'
Is stateful inheritable. Meaning, inside a window component, I have textboxes, combos etc, do they automatically inherit the statufl, or does stateful really need to be for every component, like you said, "want to keep state"
Thanks
Jack
#If you have any other info about this subject , Please add it free.# |