Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6884079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:27:47+00:00 2026-05-27T05:27:47+00:00

I am using [script.js][1] as async script loader along with my master page. The

  • 0

I am using [script.js][1] as async script loader along with my master page. The pages on the root are working fine using the master page file as it’s master page. When it comes to web pages that are inside folders like below then the path does not work fine. Script loader loads the files from wrong url. How do i make it load from correct url regardless of the path.

Admin

-users

 -createuser.aspx

The contents of the loader file

//show the path to load scripts files from
$script.path("/js/");

//load jquery first and then load the dependent scripts
$script.order(["jquery.min","slider"],function(){
    //load the application specific file
    $script("app");
});

how do i get the path to web application on client side for example path should resolve to
http://domainname/virtualdirectory/js/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:27:48+00:00Added an answer on May 27, 2026 at 5:27 am

    Are you looking for somthing like this?

    <%= Page.ResolveClientUrl("~/Scripts/test.min.js") %>
    

    This will resolve the url for you from the HTML side. I am not familiar with $script.path, but I am wondering if you can do somthing like $script.path('<%=Page.ResolveClientUrl("~/Scripts/test.min.js") %>');

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a script to load some images async using jQuery. Here is
I am using a script that is sending out emails and I am receiving
I'm using a script that connects to a cluster through ssh and sends some
I am writing a deployment script using MSBuild. I want to clean my web
i have a script that calls a php file and gets an JSON object
I am using the async version of Google Analytics along with custom variables and
I'm using a PHP script that is waiting for two values through $_GET. I'm
I make program to read xml file by using traditional JavaScript. <script type=text/javascript> var
I have been creating an async server socket that sends and recives xml using
I'm using Facebook login api for login purpose to my website. <div id=fb-root></div> <script>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.