Hi, i have as custom Control where i load the jquery lib that works if i on the base path of the document. but when i go deper folder it won't be load my jquery lib. how can i get the curent base path in my custom control?
for example if i have the root path localhost/umbraco it works but localhost/umbraco/folder1/folder2/ don't work Use Umbraco 7.1,Webforms
Sounds to me like you need to reference your jQuery library as an absolute path. Something like the following. Note the url starting with a forward slash.
How load Jquery when not base path
Hi, i have as custom Control where i load the jquery lib
that works if i on the base path of the document. but when i go deper folder it won't be load my jquery lib.
how can i get the curent base path in my custom control?
for example if i have the root path
localhost/umbraco
it works
but
localhost/umbraco/folder1/folder2/
don't work
Use Umbraco 7.1,Webforms
dont you have like a masterpage - couldn't you just load the js files on there?
Hi Axel,
Sounds to me like you need to reference your jQuery library as an absolute path. Something like the following. Note the url starting with a forward slash.
Thanks, Dan.
is working on a reply...