🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.programming
4 messages
4 total messages Started by Freak Wed, 27 Nov 2002 14:44
HTML-relatieve adressering
#6580
Author: Freak
Date: Wed, 27 Nov 2002 14:44
16 lines
1465 bytes
Hi,

in mijn html-pagina heb ik staan:
cmd="C:\Documents and Settings\ikke\My Documents\My Webs\Site-X\Plant.htm"
verwijzend naar een jscript waarin staat
function Do(obj)
   {
    var cmd = eval(obj).cmd
    window.navigate(cmd)

   }
Dit werkt perfekt!
Om nu niet altijd de referenties te moeten wijzigen om naar de echte website
te gaan, zoek ik een oplossing om relatieve ardressering te gebruiken. Iets
met "../plant.htm"
Iemand een idee
Re: HTML-relatieve adressering
#6603
Author: Cofke
Date: Thu, 28 Nov 2002 10:18
4 lines
1132 bytes

>  "../plant.htm"
dat is toch het antwoord op uw vraag?!
Re: HTML-relatieve adressering
#6612
Author: Freak
Date: Thu, 28 Nov 2002 15:22
10 lines
1384 bytes
"Cofke" <cof69@hotmail.com> wrote in message
news:b4mF9.2613$mJ1.780205161@hebe.telenet-ops.be...
>
>
> >  "../plant.htm"
> dat is toch het antwoord op uw vraag?!
>
>
Sorry maar dat werkt niet!
Re: HTML-relatieve adressering
#6616
Author: Cofke
Date: Thu, 28 Nov 2002 18:37
21 lines
1707 bytes
Freak <edca-NoSpam-@tiscalinet.be> schreef in berichtnieuws
9xqF9.24749$Ti2.4758@afrodite.telenet-ops.be...
>
> "Cofke" <cof69@hotmail.com> wrote in message
> news:b4mF9.2613$mJ1.780205161@hebe.telenet-ops.be...
> >
> >
> > >  "../plant.htm"
> > dat is toch het antwoord op uw vraag?!
> >
> >
> Sorry maar dat werkt niet!
>
>
Ik had het zelf nog niet geprobeerd, waarschijnlijk is dit enkel voor HTML
en niet voor java.
Probeer eens met een variable waarin het path gezet word. Dan moet ge die
alleen aanpassen als uw path veranderd.
Greetz
Cofke
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads