Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#357 closed enhancement (fixed)

Relax relative URL requirement for dojo.hostenv.loadPath(...)

Reported by: john.r.fallows@… Owned by: alex
Priority: high Milestone:
Component: Core Version: 0.2
Keywords: Cc:
Blocked By: Blocking:

Description

Support absolute URLs in dojo.hostenv.setModulePrefix(...) for integration with Weblets.

Change History (7)

comment:1 Changed 13 years ago by david

By absolute you mean /foo/bar/, right?

comment:2 Changed 13 years ago by anonymous

Right.

So, if a webapp consists of the following resources:

http://some.server:port/webapp/welcome-to-dojo.html http://some.server:port/webapp/dojo/dojo.js http://some.server:port/webapp/custom/my/namespace/__package__.js

Then, it should be possible from within welcome-to-dojo.html to call:

setModulePrefix("my.namespace", "/webapp/custom/my/namespace");

rather than:

setModulePrefix("my.namespace", "../../custom/my/namespace");

comment:3 Changed 13 years ago by alex

Component: GeneralCore
Milestone: 0.3.1
Status: newassigned

comment:4 Changed 13 years ago by John R Fallows <john.r.fallows@…>

Summary: Relax relative URL requirement for dojo.hostenv.setModulePrefix(...)Relax relative URL requirement for dojo.hostenv.loadPath(...)

Updating summary to reflect appropriate method name, dojo.hostenv.loadPath.

comment:5 Changed 13 years ago by John R Fallows <john.r.fallows@…>

Possibly compute relative path in setModulePrefix, to avoid changing the semantics of loadPath?

comment:6 Changed 13 years ago by alex

Resolution: fixed
Status: assignedclosed

fixed in [4243]

comment:7 Changed 12 years ago by (none)

Milestone: 0.3.1

Milestone 0.3.1 deleted

Note: See TracTickets for help on using tickets.