Announcement

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

    Including External JS in the HEAD

    In playing around with that StatusBar widget I posted, I tried to load it in the head tag just after the other SC files. SC complained about it not writing content in the body tag.

    I found this post: http://forums.smartclient.com/showpost.php?p=1378&postcount=13 that mentions that external libs must be in the body tag (for SC code). Why is this? I can understand for widget creation, but in my case I'm creating a class which, in an ideal world, would not affect nor necessitate a body tag.

    #2
    You should create your members of the status bar in an initWidget() method rather than during the class creation.

    Comment


      #3
      That's just what I needed. I've updated to other thread with more proper code.

      Thanks!

      Comment

      Working...
      X