Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Absolut path for Javascript

Absolut path for Javascript

Scheduled Pinned Locked Moved ASP.NET
javascriptsysadminhelplearning
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    altctrlnick
    wrote on last edited by
    #1

    I am trying to refer resource files from Productions Server on to my Master Page. But unable to accompolish that "> In the above code, Instead of having relative paths I would like to give absolute paths... Can someone help me with a work around

    N 1 Reply Last reply
    0
    • A altctrlnick

      I am trying to refer resource files from Productions Server on to my Master Page. But unable to accompolish that "> In the above code, Instead of having relative paths I would like to give absolute paths... Can someone help me with a work around

      N Offline
      N Offline
      NeverHeardOfMe
      wrote on last edited by
      #2

      What has this to do with JavaScript? If you want to gove an absolute path then give one. Or precede the url with ~/ link href="~/common/etc

      A 1 Reply Last reply
      0
      • N NeverHeardOfMe

        What has this to do with JavaScript? If you want to gove an absolute path then give one. Or precede the url with ~/ link href="~/common/etc

        A Offline
        A Offline
        altctrlnick
        wrote on last edited by
        #3

        Thank You for the reply, Sorry it was not particular with Javascript or css... Its with all resource files. I am aware of tilde "~" I want to give an absolute location path like http://www.mydomain.com/main.css Is that possible, If yes, Can you elaborate?

        G 1 Reply Last reply
        0
        • A altctrlnick

          Thank You for the reply, Sorry it was not particular with Javascript or css... Its with all resource files. I am aware of tilde "~" I want to give an absolute location path like http://www.mydomain.com/main.css Is that possible, If yes, Can you elaborate?

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          altctrlnick wrote:

          I want to give an absolute location path like http://www.mydomain.com/main.css

          Then do that. Any resource that the browser requests can be requested using a complete url.

          Despite everything, the person most likely to be fooling you next is yourself.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups