Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18212
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2013-01-22 12:55 -0800 |
| References | <kdlq62$r2j$1@dont-email.me> |
| Message-ID | <982327f6-bcb4-473b-9667-40b07ea5688e@googlegroups.com> (permalink) |
| Subject | Re: Locate file in the website |
| From | Danny <dann90038@gmail.com> |
to Tony Yes, relative addressing in relation to a common reference point is the better approach for flexibility, that way if you ever move the files elsewhere in the webserver, the addressing remains. Say you move the parent folder for both Style and JavaScript folders, the ../ will still apply no matter where in the webserver hierarchy they get dropped. There's always the <base href="SOMEURL"> element, which appends SOMEURL string to any relative path in the file.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Locate file in the website "Tony" <tony.johansson@inport.com> - 2013-01-22 11:37 +0100 Re: Locate file in the website Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-01-22 08:28 -0700 Re: Locate file in the website Danny <dann90038@gmail.com> - 2013-01-22 12:55 -0800 Re: Locate file in the website Osmo Saarikumpu <osmo@weppipakki.com> - 2013-01-23 09:53 +0200
csiph-web