Re: Need relative path explanation

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11530
interpreted = N
texte = >I'm trying to use relative paths when applying an action from one tmpl to >another tmpl. With absolute paths it works okay, but via relative paths >it doesn't. I get the following message. > >Error: template 'relSearchresults.tmpl' not found > >In my relsearch.tmpl I have the following: > >
action=../../../WebCatalog.acgi$search?db=../../Store/OurDBs/Invoice.db> > > >The relSearchresults.tmpl is in the same folder as relsearch.tmpl. > >I have tried the following: > > > >and > > > >all above lines produce the same error message. If the tmpls are all in >the same folder, why do I need to use an absolute path to reference the >result template to an action? Hi Curt,1- Don't use colons at all. 2- Using ../ tells WebSTAR to look up one level. You cannot repeat the ../ to look up more than one level. In other words, never use more than one ../ in front of a file name. 3- Use / when you want to start from the WebSTAR root folder. 4- Don't use anything when you want to start in the same folder as the current template.Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html Associated Messages, from the most recent to the oldest:

    
  1. Re: Need relative path explanation (Grant Hulbert 1997)
  2. Re: Need relative path explanation (Sven U. Grenander 1997)
  3. Re: Need relative path explanation (w curt eggemeyer 1997)
  4. Re: Need relative path explanation (w curt eggemeyer 1997)
  5. Re: Need relative path explanation (Grant Hulbert 1997)
  6. Re: Need relative path explanation (Grant Hulbert 1997)
  7. Re: Need relative path explanation (Kenneth Grome 1997)
  8. Re: Need relative path explanation (Sven U. Grenander 1997)
  9. Need relative path explanation (w curt eggemeyer 1997)
  10. Re: Need relative path explanation (Kenneth Grome 1997)
>I'm trying to use relative paths when applying an action from one tmpl to >another tmpl. With absolute paths it works okay, but via relative paths >it doesn't. I get the following message. > >Error: template 'relSearchresults.tmpl' not found > >In my relsearch.tmpl I have the following: > >action=../../../WebCatalog.acgi$search?db=../../Store/OurDBs/Invoice.db> > > >The relSearchresults.tmpl is in the same folder as relsearch.tmpl. > >I have tried the following: > > > >and > > > >all above lines produce the same error message. If the tmpls are all in >the same folder, why do I need to use an absolute path to reference the >result template to an action? Hi Curt,1- Don't use colons at all. 2- Using ../ tells WebSTAR to look up one level. You cannot repeat the ../ to look up more than one level. In other words, never use more than one ../ in front of a file name. 3- Use / when you want to start from the WebSTAR root folder. 4- Don't use anything when you want to start in the same folder as the current template.Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Forcing a NEWCART (1997) Help! WebCat2 bug (1997) Lookup Notfound (1998) Auto conversion of URLs? (1998) getting images' width/height (1998) WCS Newbie question (1997) newbie Q: [cart] documentation (1999) WebCat2b13MacPlugIn - [include] (1997) Intermitent problem using [referrer] (1997) can you reassign loop index? (1998) Duplicate Cart Problem in Netscape (2000) Practice runs ? (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) select multiple (1997) [WebDNA] Apache 2 httpd.conf Question (2008) Hummm .... (2002) Country & Ship-to address & other fields ? (1997) Using Webcatalog to write a search engine.... (2001) [WebDNA] divisible by 1 (2011) Email notification to one of multiple vendors ? (1997)