[INVALID] Ext.FormViewPort Issue
*NEW - Coolite Toolkit Version 0.7 now available for DOWNLOAD. See also Examples Explorer.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
[INVALID] Ext.FormViewPort Issue
Subscribe
Last Login: 11/12/2008 8:16:38 PM
Posts: 5,
Posted 7/24/2008 10:27:07 PM

Group: Coolite Early Adopter

I've been playing around with Coolite for a couple of project ideas I have in the pipeline.. I really like what I see here, good work!, however, to be able to use the library I have to wait until more controls are supported. I have come across what appears to be a bug though. I was getting some odd behaviour in a test app.

I get an error in Firebug 'Ext.FormViewport is not a constructor'

the line is:


Ext.onReady(function(){Ext.QuickTips.init();this.vp=new Ext.FormViewport({id:"vp


I had a look at the latest documentation from the extjs website and it looks like FormViewport has been renamed to Viewport..

Last Login: Today @ 12:41:22 AM
Posts: 750,
Posted 7/24/2008 11:32:03 PM

Group: Core Development Team
 Hi Stuart,

The Ext.FormViewport is internal Coolite JavaScript class adopted for ASP.NET (because native ExtJs ViewPort class is not working under ASP.NET, postback doesn't occur). The Ext.FormViewport placed in coolite-core.js file which linked when theCoolite ViewPort control is on the page

--
Vladimir Shcheglov
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
Last Login: 11/12/2008 8:16:38 PM
Posts: 5,
Posted 7/24/2008 11:43:22 PM

Group: Coolite Early Adopter
Hi vladsch,

Thanks for the reply. The coolite library is generating the code that is throwing that error.

I have a viewport that contains a borderlayout. Then i programmatically add a new ext:panel control to the contentcontrols collection of the center panel after a button click and I get that error.

Thanks,
Stuart
Last Login: Today @ 12:41:22 AM
Posts: 750,
Posted 7/24/2008 11:50:42 PM

Group: Core Development Team
 Hi Stuart,

Thanks for your clarification.

Can you post (or attach) code which cause the problem?
--
Vladimir Shcheglov
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
Last Login: 11/12/2008 8:16:38 PM
Posts: 5,
Posted 7/24/2008 11:56:25 PM

Group: Coolite Early Adopter

Oop.. apologies, I was instantiating pre-compiled web user controls at run-time into a page and the precompiled control had a scriptmanager in it. When I removed the scriptmanager the issue went away.

Many Thanks,
Stuart

Last Login: Today @ 12:27:12 AM
Posts: 1,644,
Posted 7/24/2008 11:59:14 PM

Group: Core Development Team
Hi Stuart,

Can you provide us with a code sample which reproduces this problem? The error should not occur if you are creating the ViewPort from Coolite Toolkit code, so we're very interested to see how the error is generated.
--
Geoffrey McGill
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
Last Login: 11/12/2008 8:16:38 PM
Posts: 5,
Posted 7/25/2008 12:33:36 AM

Group: Coolite Early Adopter
Hi Geoffrey,

I will put together a small test app that demonstrates the issue over the weekend and post it here.

Thanks,
Stuart
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 12:47am