View Full Version : ViewPort with Linked Class
19 Jul 2010, 4:50 AM
I'm trying to figure out what I must be doing wrong here... I can get the viewport with all the objects to preview fine in XDS. However, FF and IE choke on an error that I'm having difficulty in tracing:-/. Could someone point me in the right direction?
< removed XDS project file >
Any tips are greatly welcomed.
19 Jul 2010, 12:28 PM
i exported your project and its seems OK. no errors... what error are you getting?
19 Jul 2010, 2:06 PM
Thanks for taking a look at my project... Below are the errors I'm getting from both IE8 & FF 3.6.6 (on WinXP).
FF3.6 View of project (http://RichieBartlett.com/downloads/Design%20Issue%2020100720-1.png)
FF error (http://RichieBartlett.com/downloads/Design%20Issue%2020100720-2.png)
IE error 1 (shows before any thing is rendered) (http://RichieBartlett.com/downloads/Design%20Issue%2020100720-3.png)
IE error 2 (shows after the dialogs are rendered but the viewport is not rendered) (http://RichieBartlett.com/downloads/Design%20Issue%2020100720-4.png)
* save and export project from XDS.
* Open (xds_index.html) in IE and FF to view errors. (no code edits, just straight viewing)
19 Jul 2010, 3:42 PM
maybe export didn't override some of your files.
you can try to delete all exported files and then re-export.
20 Jul 2010, 1:52 AM
:-? Hmm... That is strange... I guess the Designer did not overwrite the JS files... But deleting all the files and re-exporting resolved my issue.
20 Jul 2010, 10:00 AM
I think I know what happened...the .js class files for the linked instances were no doubt given an "xtype" that is registered with Ext.reg(). This registration happens at the bottom of the .js file, but that file is never overwritten if it already exists. So...my guess is that this project was an older project file from pre-1.0.2 and pre-"linked instances", and therefore the implementation files didn't have an xtype registered. This is an issue too when you export the project and then change the "userXType" field...the implementation (.js) file is not updated. It's an open ticket to resolve that issue by intelligently updating the file without disturbing the rest of the code.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.