How to check if ISC_Core has been loaded?

Hello guys,

We’re using the following here:
SmartGWT-2.4
GWT-2.1.1
Java 6u19

Everything is working fine on FF/GC/SF.
However, we’re having a hard time with IE.

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Wed, 18 Aug 2010 22:16:34 UTC

Message: Object required
Line: 1730
Char: 85
Code: 0
URI: http://cannot/show/to/you/ISC_Core.js

I am assuming that some piece of code is running before the ISC_Core is fully downloaded and loaded.

Any chance that someone has done it before?
How can we check if the SmartGWT JS (ISC) has been loaded?

Many thanks.

Following below is the StackTrace generated by SmartGWT Developer Tool.

10:08:20.606:MUP1:WARN:Log:Error:
        'Object required'
        in http://cannot/show/to/you/sc/modules/ISC_Core.js
        at line 1782
    [c]Element.getOffsetLeft(_1=>[DIVElement]{ID:isc_1})
    [c]Element.getOffset(_1=>"left", _2=>[Calendar
ID:isc_MiniCalendar_1_0], _3=>undef, _4=>false, _5=>true)
    Canvas.getLeftOffset(_1=>undef)
    Canvas.getPageLeft()
    Canvas.containsPoint(_1=>449, _2=>711, _3=>false)
    Canvas.visibleAtPoint(_1=>449, _2=>711, _3=>undef, _4=>undef, _5=>undef)
    [c]EventHandler.$k5(_1=>Obj{type:error}, _2=>undef)
    [c]EventHandler.handleMouseUp(_1=>Obj{type:error}, _2=>undef)
    [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(),
_2=>Obj{type:error})
    anonymous(event=>undef)
        "var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return
returnVal;"

Following attached is a screenshot of the IE Developer Tools.
When debugging the code and stepping into it goes through.

It also show to us a bunch of JS errors.
Which lead us to think that might be something wrong on the iSC_Core.js.

If you guys need any further information please let us know.

Any feedback is appreciated.
Thanks.

PS: The image is really low quality because of the restrictions of the forum on the image size - cannot exceed 146.5 KB.

Its really unfortunate that this still happening to us.

http://www.smartclient.com/technology/whysmart.jsp
“No cross-browser testing and debugging”

Thanks,

Read the FAQ - don’t mix GWT and SmartGWT components. Be sure to also read the QuickStart Guide.

Hello Isomorphic, thanks for your reply.
We read the FAQ and the QuickStart Guide already.

However, we’re in a situation that we need to mix GWT and SmartGWT.
We also do believe that there are many out there in the same situation.

So the solution would be to isolate this screen/window and use only SmartGWT?
Could you please provide some alternatives or directions on what to do?

Really appreciated your answer.
Thanks,

Any solution?

Yep, you will need to do some refactoring and remove any GWT component from where you’re using SmartGWT.
In other words: don’t mix GWT and SmartGWT components.

We’ve worked around using a timer, putting a loading dialog for 5secs and clicking in one of the components that reloads/refresh SmartGWT. It worked for us but we’re looking to move to the proper solution soon.
If I only knew that from the beginning..

Maybe I misunderstood, but i assumed that GWT could be used with SmartGWT?

Even the SmartGWT showcase does show usage with a GWT panel.

So does this mean, that if we need to use a GWT control, we need to first put it in a GWT panel?

Regards,
Basil Dsouza

As far as I know it can, but it just a set of SmartGWT components that can work with GWT.
However, this is not a recommended approach.

I wish it was that easy.

I can just repeat what Isomorphic said:
“don’t mix GWT and SmartGWT components.”

To be honest we’re looking into ways to reduce to the minimum our dependency on SmartGWT components.
You pretty much will need now to decide between GWT and SmartGWT.

hi

After a long time 1 and half day,i got the solution for this error

In my project,also the same error is coming,i think that some error in my code,but now i understand its due to mixing of gwt and smartgwt

In my code,i created an absolutepanel(gwt component) and am adding VLayout(smartgwt) extended custom class to it.thats the problem.
Really thankful for this thread..

but i have a doubt,actually smartgwt is extended component of gwt,so y it is not compatible in smartgwt???

Also I more doubt,is there any substitute for absolutepanel(in GWT) to smartgwt ???

Thanks again

Vinu

Glad to hear that this thread helped and you have solved your problem. :slight_smile:

I had a look in the SmartGWT code and it extends GWT just so it can be compiled and used in the GWT entry points.
Besides, the classes have no coding at all, its just a wrapper that makes a bunch of JavaScript calls to SmartClient JS.

http://forums.smartclient.com/showpost.php?p=50103&postcount=5

Have a look in the showcase of SmartGWT if its not there I would doubt so.
Otherwise, perhaps you might open a new thread to ask this question?

Good luck, doomed.

Hi Doomed

Am xtremely thankful for clearing my doubts also..
Then , for absolutepanel,there is no substitute..
actually i started my project in gwt and place the components absolutely..later i extended to smartgwt,but i dnt thnk there will be problem in mixing.so i had done that.but later am xtemely fed up with that error issue..but later on a search is made and this thread help me to correct me as well.
now i changed the code fully to smartgwt components and now no problem :slight_smile:
as i want to place components absolutely in that,i ask the question for the substitute of absolutepanel,later i didnt get ..still i place the components in Layout class and positioning made by layout margins .

Again so much thankful .. :slight_smile: