Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    contentLoaded not fireing

    I have a HTMLFlow with some content that is listening for the contentLoaded function. My problem is that the contentLoaded function never seems to be fired, the alert() function isn't run.

    According to the API:

    "StringMethod fired when content is completely loaded in this htmlFlow. Has no default implementation. May be observed or overridden as a notification type method to fire custom logic when loading completes."

    So as I understand it this should work. Could some one please help me out to both explain why it isn't working?

    Also show me, if there is any other way, of making a function call after a HTMLFlow has completed the rendering of its content?

    Code:
    isc.HTMLFlow.create({
                ID:"inlinediv",
                width: "80%",
                contents:"<div id='container' style='height: 400px; background-color: red'></div>",
                
                contentLoaded : function() {
                    alert("content has loaded.");
                }
            });
    SmartClientVersion: 8.0
    BrowserVersion: Chrome 12.0.742.122
    DeveloperConsoleLog: 11:22:50.487:INFO:Log:initialized
    11:22:50.615:WARN:AutoObserver:Use addInterfaceProperties() to add methods to interface [Class AutoObserver]
    11:22:50.732:WARN:Log:New Class ID: 'DataView' collides with ID of existing object with value 'function DataView() { [native code] }'. Existing object will be replaced.
    This conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information.
    11:22:51.082:WARN:HLayout:ResultLinkLabel:Adding already drawn widget:isc_NoWrapLabel_0 to new parent:ResultLinkLabel. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.083:WARN:HLayout:ResultLinkLabel:Adding already drawn widget:isc_DynamicForm_0 to new parent:ResultLinkLabel. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.102:WARN:VLayout:isc_VLayout_0:Adding already drawn widget:isc_NoWrapLabel_1 to new parent:isc_VLayout_0. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.102:WARN:VLayout:isc_VLayout_0:Adding already drawn widget:isc_NoWrapLabel_2 to new parent:isc_VLayout_0. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.111:WARN:HLayout:ResultLinkBottom:Adding already drawn widget:numberOfClicks to new parent:ResultLinkBottom. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.111:WARN:HLayout:ResultLinkBottom:Adding already drawn widget:missMatchRate to new parent:ResultLinkBottom. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.112:WARN:HLayout:ResultLinkBottom:Adding already drawn widget:isc_VLayout_0 to new parent:ResultLinkBottom. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.135:WARN:HLayout:ResultLinkTop:Adding already drawn widget:isc_NoWrapLabel_3 to new parent:ResultLinkTop. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.136:WARN:HLayout:ResultLinkTop:Adding already drawn widget:isc_NoWrapLabel_4 to new parent:ResultLinkTop. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.146:WARN:VStack:ResultLinkContent:Adding already drawn widget:ResultLinkTop to new parent:ResultLinkContent. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.146:WARN:VStack:ResultLinkContent:Adding already drawn widget:resultLinkURL to new parent:ResultLinkContent. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.149:WARN:VStack:ResultLinkContent:Adding already drawn widget:ResultLinkBottom to new parent:ResultLinkContent. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.176:WARN:HLayout:ResultLink:Adding already drawn widget:resultLinkRankNumber to new parent:ResultLink. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.177:WARN:HLayout:ResultLink:Adding already drawn widget:ResultLinkContent to new parent:ResultLink. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.226:WARN:VLayout:SearchResultStats:Adding already drawn widget:NumSearches to new parent:SearchResultStats. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.226:WARN:VLayout:SearchResultStats:Adding already drawn widget:NumUsers to new parent:SearchResultStats. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.227:WARN:VLayout:SearchResultStats:Adding already drawn widget:NumPages to new parent:SearchResultStats. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.237:WARN:HStack:SearchResultGraph:Adding already drawn widget:Graph to new parent:SearchResultGraph. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.237:WARN:HStack:SearchResultGraph:Adding already drawn widget:SearchResultStats to new parent:SearchResultGraph. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.252:WARN:HStack:SearchResultFilters:Adding already drawn widget:isc_FilterLabel_0 to new parent:SearchResultFilters. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.253:WARN:HStack:SearchResultFilters:Adding already drawn widget:isc_FilterLabel_1 to new parent:SearchResultFilters. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.261:WARN:VStack:SearchResultFilterSection:Adding already drawn widget:isc_NoWrapLabel_5 to new parent:SearchResultFilterSection. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.261:WARN:VStack:SearchResultFilterSection:Adding already drawn widget:SearchResultFilters to new parent:SearchResultFilterSection. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.273:WARN:VLayout:SearchResultTop:Adding already drawn widget:SearchResultTitle to new parent:SearchResultTop. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.274:WARN:VLayout:SearchResultTop:Adding already drawn widget:SearchResultGraph to new parent:SearchResultTop. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.274:WARN:VLayout:SearchResultTop:Adding already drawn widget:SearchResultFilterSection to new parent:SearchResultTop. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.300:WARN:VStack:SearchResults:Adding already drawn widget:SearchResultTop to new parent:SearchResults. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.301:WARN:VStack:SearchResults:Adding already drawn widget:ResultLinkLabel to new parent:SearchResults. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.302:WARN:VStack:SearchResults:Adding already drawn widget:ResultLink to new parent:SearchResults. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.363:WARN:HLayout:SearchPaneTopLabels:Adding already drawn widget:isc_NoWrapLabel_6 to new parent:SearchPaneTopLabels. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.364:WARN:HLayout:SearchPaneTopLabels:Adding already drawn widget:CH to new parent:SearchPaneTopLabels. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.375:WARN:VLayout:SearchPaneTop:Adding already drawn widget:SearcPane_SearchField to new parent:SearchPaneTop. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.376:WARN:VLayout:SearchPaneTop:Adding already drawn widget:SearchPaneTopLabels to new parent:SearchPaneTop. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.397:WARN:VLayout:SearchPane:Adding already drawn widget:SearchPaneTop to new parent:SearchPane. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.398:WARN:VLayout:SearchPane:Adding already drawn widget:SearchPaneContent to new parent:SearchPane. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.414:WARN:HLayout:LookingFor:Adding already drawn widget:SearchPane to new parent:LookingFor. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.418:WARN:HLayout:LookingFor:Adding already drawn widget:SearchResults to new parent:LookingFor. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.498:WARN:HLayout:WhoSearches:Adding already drawn widget:inlinediv to new parent:WhoSearches. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.498:WARN:HLayout:WhoSearches:Adding already drawn widget:testbutton_label to new parent:WhoSearches. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.499:WARN:HLayout:WhoSearches:Adding already drawn widget:testbutton to new parent:WhoSearches. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.547:WARN:drawing:TABS_tabBar_baseLine:negative or zero area: height: 0, width: 1251, refusing to draw
    Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
    Canvas.readyToDraw()
    Canvas.draw(_1=>undef, undef, undef)
    StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef)
    Layout.$2x()
    Layout.drawChildren()
    ** recursed on Canvas.draw

    11:22:51.659:WARN:VLayout:isc_VLayout_1:Adding already drawn widget:TopStats to new parent:isc_VLayout_1. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.659:WARN:VLayout:isc_VLayout_1:Adding already drawn widget:TimeSelectGraph to new parent:isc_VLayout_1. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.659:WARN:VLayout:isc_VLayout_1:Adding already drawn widget:SelectFilter to new parent:isc_VLayout_1. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.665:WARN:VLayout:isc_VLayout_1:Adding already drawn widget:TABS to new parent:isc_VLayout_1. Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.
    11:22:51.690:WARN:drawing:TABS_tabBar_baseLine:negative or zero area: height: 0, width: 1251, refusing to draw
    Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
    Canvas.readyToDraw()
    Canvas.draw(_1=>undef, undef, undef)
    StatefulCanvas.draw(_1=>undef, _2=>undef, _3=>undef)
    Layout.$2x()
    Layout.drawChildren()
    ** recursed on Canvas.draw

    11:22:51.884:INFO:Log:isc.Page is loaded
    11:22:53.926:MMV6:WARN:ImgTab:isc_ImgTab_2:setImage: image 'stretch' couldn't be found
    11:22:55.272:MDN1:WARN:ImgTab:isc_ImgTab_0:setImage: image 'stretch' couldn't be found
    11:22:55.274:MDN1:WARN:ImgTab:isc_ImgTab_2:setImage: image 'stretch' couldn't be found
    11:22:55.284:MDN1:WARN:ImgTab:isc_ImgTab_2:setImage: image 'stretch' couldn't be found
    11:22:55.348:MUP9:WARN:ImgTab:isc_ImgTab_2:setImage: image 'stretch' couldn't be found
    11:23:01.397:MMV4:WARN:ImgTab:isc_ImgTab_2:setImage: image 'stretch' couldn't be found

    #2
    It might be worth mentioning that the HTMLFlow code above is inside of a TabSet and the tab isn't visible at first load of the TabSet.

    Also I have the following strange behavior.

    I rewrote the HTMLFlow as follows:
    Code:
    isc.HTMLFlow.create({
                ID:"inlinediv",
                autoDraw: false,
                contents:"<div id='container' style='height: 400px; background-color: red'></div>",
                
                visibilityChanged: function(isVisible) {
                    alert("inlinediv is visible: "+isVisible);
                }
            });
    I now get the following behavior.

    1. When the page is loaded the alert is triggered saying that isVisible is false.

    2. When i select the tab (that should execute the HTMLFlow code) I don't get any alert.

    3. Select another tab and once again I get an alert saying that isVisible is false.

    4. Select the tab (that should execute the HTMLFlow code) and this time I get an alert saying isVisible is true.

    If I continue switching between the tabs every thing works as I expect it. That is every time the visibility of the HTMLFlow changes I get an alert.

    Could this be a bug in the Smart Client framework? That the function visibilityChanged dosen't execute properly when inside a TabSet.

    Comment

    Working...
    X