Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ISC_ClassBrowser load in head error

$
0
0
When I add <script src="isomorphic/system/modules/ISC_ClassBrowser.js"></script> to <head> of html page, I get error message:

Code:

Error: Attempt to write content into a page outside the BODY tag.  Isomorphic SmartClient requires this tag be present and all widgets be written out inside it.
Please ensure your file has a BODY tag and any code to draw SmartClient widgets is enclosed in this tag.
Stack trace:
        [a][c]Element.logMessage(_1=>2, _2=>"Error: Attempt to write content into a p..."[265], _3=>undef, _4=>undef) @ ISC_Core.js:996:190
        [a][c]Element.logError(_1=>"Error: Attempt to write content into a p..."[265], _2=>undef) @ ISC_Core.js:998:273
        Element._createAbsoluteElement(_1=>"<div id=isc_ScrollbarTest style='positio..."[151], _2=>undef) @ ISC_Core.js:1821:769
        Element._getNativeScrollbarSize() @ ISC_Core.js:1939:173
        Label.needHideUsingDisplayNone() @ ISC_Core.js:2685:184
        Label.init(_1=>Obj, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) @ ISC_Core.js:1964:9
        [a]Label.completeCreation(_1=>Obj, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) @ ISC_Core.js:328:6
        Class._create(_1=>Obj, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) @ ISC_Core.js:215:1837
        <anonymous>(2014-11-29=>undef) @ ISC_ClassBrowser.js:35:1325

Moving it to the <body> remedies this problem.

I get a similar problem when adding ISC_DSBrowser as well:

Code:

Error: Attempt to write content into a page outside the BODY tag.  Isomorphic SmartClient requires this tag be present and all widgets be written out inside it.
Please ensure your file has a BODY tag and any code to draw SmartClient widgets is enclosed in this tag.
Stack trace:
        [a][c]Element.logMessage(_1=>2, _2=>"Error: Attempt to write content into a p..."[265], _3=>undef, _4=>undef) @ ISC_Core.js:996:190
        [a][c]Element.logError(_1=>"Error: Attempt to write content into a p..."[265], _2=>undef) @ ISC_Core.js:998:273
        Element._createAbsoluteElement(_1=>"<div id=isc_ScrollbarTest style='positio..."[151], _2=>undef) @ ISC_Core.js:1821:769
        Element._getNativeScrollbarSize() @ ISC_Core.js:1939:173
        Label.needHideUsingDisplayNone() @ ISC_Core.js:2685:184
        Label.init(_1=>Obj, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) @ ISC_Core.js:1964:9
        [a]Label.completeCreation(_1=>Obj, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) @ ISC_Core.js:328:6
        Class._create(_1=>Obj, _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef) @ ISC_Core.js:215:1837
        <anonymous>(2014-11-29=>undef) @ ISC_DSBrowser.js:34:3068

Version: v100p_2014-11-29_Pro
Browser: Chrome latest (as of 11/30/14)

I'm not even sure why I had those 2 imports in there. Probably something I was tinkering with a while back. Thought I should bring it up, though.

Viewing all articles
Browse latest Browse all 4756

Trending Articles