Re:no [search] with NT

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11989
interpreted = N
texte = >http://www.website.com/scripts/webcatalog/$webcat.dll/folder/template.tmpl&search?db=xxx.db&neskudatarq=0OK, the strange thing I see here is that & instead of $ after the .tmpl>The search worked, and the results were properly displayed on the results >page ... but the links from that page to other pages did not work.Here's how we recommend you set up URLs on both Mac and NT:Use relative paths as much as possible. You'll notice that inside GeneralStore and Classifieds that there are no explicit references to either a particular web server or even a particular folder or CGI. This makes it possible to move or rename that folder and still have the URLs work. It also makes Mac->NT porting possible. All the HREFs look like this:Browsers automatically stick the first part of the URL in front of the HREF for you, so when you click the link above what you see in your browser is this:Mac: http://www.yourserver.com/WebCatalog/GeneralStore/Results.tmpl NT: http://www.yourserver.com/Scripts/WebCatalog/$WebCat.dll/GeneralStore/Results.tmplAs long as the URLs in the successive pages (Results.tmpl) are also relative, the browser will continue to stick the correct stuff in front of the template name for you.IMPORTANT POINT: There is one difference between Mac and NT at this point. The very first link that gets you inside the GeneralStore must explicitly name the CGI. After that, the browsers automatically stick the important parts of the URL onto the links.At this point, NT WebCatalog does not have the equivalent to Macintosh suffix mapping, so you can't just link directly into some random .tmpl page and have it do the WebDNA stuff. We fake the suffix mapping by doing the URL-relative stuff I mentioned above.If you follow my example by looking at the NT welcome page and seeing how it references the CGI and the template, then use all relative links inside your site, you should be OK.If you want, you can put explicit calls to the CGI as Ken has done above, but it's just more typing. In his case it may be necessary, because the site was probably not designed with this in mind from the start.We are working on getting true suffix mapping, or at least something closer, out of NT.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re:no [search] with NT (Grant Hulbert 1997)
  2. Re:no [search] with NT (bob 1997)
  3. Re:no [search] with NT (Kenneth Grome 1997)
  4. Re:no [search] with NT (Grant Hulbert 1997)
  5. Re:no [search] with NT (Kenneth Grome 1997)
  6. Re:no [search] with NT (Grant Hulbert 1997)
  7. Re:no [search] with NT (Kenneth Grome 1997)
  8. Re:no [search] with NT (Grant Hulbert 1997)
  9. Re:no [search] with NT (Kenneth Grome 1997)
  10. Re:no [search] with NT (Kenneth Grome 1997)
  11. Re:no [search] with NT (Grant Hulbert 1997)
  12. Re:no [search] with NT (Kenneth Grome 1997)
  13. Re:no [search] with NT (Jay Van Vark 1997)
>http://www.website.com/scripts/webcatalog/$webcat.dll/folder/template.tmpl&search?db=xxx.db&neskudatarq=0OK, the strange thing I see here is that & instead of $ after the .tmpl>The search worked, and the results were properly displayed on the results >page ... but the links from that page to other pages did not work.Here's how we recommend you set up URLs on both Mac and NT:Use relative paths as much as possible. You'll notice that inside GeneralStore and Classifieds that there are no explicit references to either a particular web server or even a particular folder or CGI. This makes it possible to move or rename that folder and still have the URLs work. It also makes Mac->NT porting possible. All the HREFs look like this:
Browsers automatically stick the first part of the URL in front of the HREF for you, so when you click the link above what you see in your browser is this:Mac: http://www.yourserver.com/WebCatalog/GeneralStore/Results.tmpl NT: http://www.yourserver.com/Scripts/WebCatalog/$WebCat.dll/GeneralStore/Results.tmplAs long as the URLs in the successive pages (Results.tmpl) are also relative, the browser will continue to stick the correct stuff in front of the template name for you.IMPORTANT POINT: There is one difference between Mac and NT at this point. The very first link that gets you inside the GeneralStore must explicitly name the CGI. After that, the browsers automatically stick the important parts of the URL onto the links.At this point, NT WebCatalog does not have the equivalent to Macintosh suffix mapping, so you can't just link directly into some random .tmpl page and have it do the WebDNA stuff. We fake the suffix mapping by doing the URL-relative stuff I mentioned above.If you follow my example by looking at the NT welcome page and seeing how it references the CGI and the template, then use all relative links inside your site, you should be OK.If you want, you can put explicit calls to the CGI as Ken has done above, but it's just more typing. In his case it may be necessary, because the site was probably not designed with this in mind from the start.We are working on getting true suffix mapping, or at least something closer, out of NT.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

OT: Limit on # of Pulldown entries (1997) Problem with Formulas.db (1998) [ConvertChars] problem (1997) Multiple catalog databases and showcart (1997) Cannot get subtotal to work (1997) format and math on the fly (1998) Credit card types (1997) [WebDNA] HTTP Streaming -- impossible? (2010) Now when I send TeaRoom Order fields it does not post in Invoice. (1997) Kaaaaahhhhhhhnnnnnnn! (1997) Searchable WebCat (etc.) Docs ? (1997) Gettting IPAddress (2001) [WebDNA] HTML/OS vs. WebDNA ? (2008) Running _every_ page through WebCat-error.html (1997) serial number dishing (1997) [quantity] within formulas (1997) Logging purchases (1997) QuickBooks Import? (2007) SSL/Document Contains NO Data (1998) Setting up WebCatalog with Retail Pro data (1996)