RE: Displaying Location

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13291
interpreted = N
texte = Trevor ->We have WebCat running on a server with which hosts multiple domains. >Is it possible to have WebCat read the full location, rather than just >the directory path? >[ThisUrl] displays /page.html >I want to be able to display http://www.domain.com/page.html >or http://www.domain2.com/page.html, depending on what the user had >typed in the location window.You can't do this (yet) - [ThisURL] displays the path relative to the server root. If you want to get very complicated, you could try using [hideif] and [showif] based on whether [referrer] contains 'domain.com' or 'domain2.com', but this would get a bit clunky if you had too many domains. A future version of WebCatalog may allow you to get more of the HTTP header information passed by the browser (which would let you do what you are trying to do), but it won't happen for a while.I hope this answers your question,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. RE: Displaying Location (grichter@panavise.com (Gary Richter) 1997)
  2. RE: Displaying Location (Kenneth Grome 1997)
  3. RE: Displaying Location (Marc Eagle 1997)
Trevor ->We have WebCat running on a server with which hosts multiple domains. >Is it possible to have WebCat read the full location, rather than just >the directory path? >[thisurl] displays /page.html >I want to be able to display http://www.domain.com/page.html >or http://www.domain2.com/page.html, depending on what the user had >typed in the location window.You can't do this (yet) - [thisurl] displays the path relative to the server root. If you want to get very complicated, you could try using [hideif] and [showif] based on whether [referrer] contains 'domain.com' or 'domain2.com', but this would get a bit clunky if you had too many domains. A future version of WebCatalog may allow you to get more of the HTTP header information passed by the browser (which would let you do what you are trying to do), but it won't happen for a while.I hope this answers your question,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Marc Eagle

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:

Running 2 two WebCatalog.acgi's (1996) ssh shutdown (2005) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Enhancement Request for WebCatalog-NT (1996) WebCatalog (1999) Changes to [ReturnRaw] in 3.0 (1998) creating a ShipCosts database (1997) Change to UPPERCASE (2000) First postarg not taking in $Commands (1997) Help!!!! Purchases not going through! FIXED! (1997) retrieve header field (2001) Emailer setup (1997) Trouble with formula.db (1997) Test (2003) problems with 2 tags (1997) ShowNext Command (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) building / customizing stores (2000) So many lookers, hey smith micro (2003) Post arguments problem mac? (1997)