Home
The Toolkit for Online Communities
15898 Community Members, 1 member online, 2294 visitors today
Log In Register

Forum OpenACS Development: proc require_YUI_JS hardwiring of protocol.

OpenACS Home : Forums : OpenACS Development : proc require_YUI_JS hardwiring of protocol.

Icon of Envelope Request notifications

When the proc require_YUI_JS, with ajaxhelper set to false, is called to source files, the http protocol is hard-coded:

::xowiki::Includelet proc require_YUI_JS {{-version 2.7.0} {-ajaxhelper true} path} {
    if {$ajaxhelper} {
      ::xo::Page requireJS "/resources/ajaxhelper/yui/$path"
    } else {
      ::xo::Page requireJS "http://yui.yahooapis.com/$version/build/$path"
    }
  }

This means that you cannot use this method to source files from third party servers over https without IEx throwing warnings.

Would it be better to modify this code to remove the "http:" from the method so that the browser uses the prevailing connection instead?

Regards
Richard