Just starting out? Need help? Post your questions and find answers here.
-
LuckyLuke
- Posts: 20
- Joined: Wed Oct 26, 2016 9:50 am
Post
by LuckyLuke »
The procedure UsePlugins is not working anymore. Error message: requirejs is not defined (in chrome)
http://forums.spiderbasic.com/viewtopic.php?f=9&t=293
Code: Select all
Procedure UsePlugins(*FunctionUsingPlugins, EnforceDefine=#False)
!var cfg=$.extend({ enforceDefine: v_enforcedefine, paths: window.SpiderPlugins.paths }, window.SpiderPlugins.extensions);
!requirejs.config(cfg);
!require(window.SpiderPlugins.names, p_functionusingplugins);
InitPlugins(#False)
EndProcedure
-
Fred
- Site Admin
- Posts: 1510
- Joined: Mon Feb 24, 2014 10:51 am
Post
by Fred »
2.00 doesn't uses requirejs anymore, but you should be able to still use require().
-
Peter
- Posts: 1093
- Joined: Mon Feb 24, 2014 10:17 pm
- Location: 127.0.0.1:9080
-
Contact:
Post
by Peter »
Fred wrote:2.00 doesn't uses requirejs anymore, but you should be able to still use require().
sorry for bumping, but how can i use require.config()?
Code: Select all
require.config({
paths: {
foo: 'libs/foo-1.1.3'
}
});
Browser wrote:require.config is not a function
Thanks in advance & Greetings ... Peter
-
Fred
- Site Admin
- Posts: 1510
- Joined: Mon Feb 24, 2014 10:51 am
Post
by Fred »
We use the internal dojo require() implementation, i don't know if you can specify path
-
Peter
- Posts: 1093
- Joined: Mon Feb 24, 2014 10:17 pm
- Location: 127.0.0.1:9080
-
Contact:
Post
by Peter »
Fred wrote:We use the internal dojo require() implementation, i don't know if you can specify path
ok, thanks for your fast reply anyway.
Greetings ... Peter
-
Fred
- Site Admin
- Posts: 1510
- Joined: Mon Feb 24, 2014 10:51 am
Post
by Fred »