D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] directories in javascript



hi,

I have put the first bit of javascript I have ever used
on my website, at www.eclipse.co.uk/morgad/exmplmenu_var.js 
but I having massive trouble getting the links to work
when I call the script from other directories
(e.g. www.eclipse.co.uk/morgad/aquapics/diary.html )

I have got round it for now by hardcoding the
www.eclipse.co.uk/morgad/ root into all paths
but there has to be a better way than this.

(it stops my home mirror/offline development copies working)

any ideas ?

best regards
dave morgan
-- 
http://www.eclipse.co.uk/morgad/index.html      gpg:0x64B5E037 
fingerprint:AD3B 81F6 63A3 C921 D5AA  D1BD 83D0 9548 64B5 E037
UKRA#1243
from address killfiled. use reply-to address for replies !

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly