Re: javascript src path on apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 6, 2007 6:54 PM, Hiep Nguyen <hiep@xxxxxxxxxx> wrote:
> i have problem with path for java on my apache:

You mean JavaScript, which is something quite different from Java.

> this is working just fine:
> <script language="javascript" src="calendar.js" type="text/javascript"></script>
>
> but as soon as i move calendar.js to a sub-folder includes/
> <script language="javascript" src"/includes/calendar.js"
> type="text/javascript"></script>
>
> then it's not working.

Is the = missing in the second src on your site as well? In which
case, that's probably the problem: src="/includes/calendar.js" should
work, assuming that /var/www/html is indeed your DocumentRoot and
there isn't anything fancy happening to the location of .js files.

Martijn.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux