Re: Embedded [Search] Context Snippets (Very Useful)

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17817
interpreted = N
texte = >Question 1 - What's the action=search parameter for? It's not used in the search, so are you possibly using it for something else? Like a showif context that's in your template but not included in your snippets perhaps? >Yes, the action=search is used so I can have the search form and results on the same page, but only show the results when it's the result of action=search (using showif). I tend to do this a lot now with simple search pages.>Question 2 - Maybe I am misinterpreting something, but I don't understand how your s_ and [getchars] technique is going to prevent someone from changing one of the parameters in the URLs. It seems to me that the only way to really keep URL parameters from being changed is to hard-code them into the search context.You're correct that it doesn't protect you from people entering their own search parameters. However, it does let you hard code and override some important parameters like max. It is meant to be used in situations where you might otherwise use command=search, but do not want to for style reasons or are unable to (such as with Typhoon).> >Comment - You don't have to put the &startat=[startat] inside a showif context (in your search context). WebCat starts with 1 whenever startat = anything other than a number. It only starts at some other index value when the startat value is actually a number ...That may be the case, but it is ambiguous and undocumented so I don't like to rely on that always being the case. > >By the way, Congratulations! 2589 out of 44895 is in the top 6 percent! :) >Thanks, but finishing results in Bay To Breakers mean very little outside the top 200 or so. About 40,000 people run that don't register (80,000 total), many of whom jump in halfway through the race to avoid the Hayes Street Hill.John. John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Embedded [Search] Context Snippets (Very Useful) (Kenneth Grome 1998)
  2. Re: Embedded [Search] Context Snippets (Very Useful) (John Hill 1998)
  3. Re: Embedded [Search] Context Snippets (Very Useful) (Kenneth Grome 1998)
  4. Embedded [Search] Context Snippets (Very Useful) (John Hill 1998)
>Question 1 - What's the action=search parameter for? It's not used in the search, so are you possibly using it for something else? Like a showif context that's in your template but not included in your snippets perhaps? >Yes, the action=search is used so I can have the search form and results on the same page, but only show the results when it's the result of action=search (using showif). I tend to do this a lot now with simple search pages.>Question 2 - Maybe I am misinterpreting something, but I don't understand how your s_ and [getchars] technique is going to prevent someone from changing one of the parameters in the URLs. It seems to me that the only way to really keep URL parameters from being changed is to hard-code them into the search context.You're correct that it doesn't protect you from people entering their own search parameters. However, it does let you hard code and override some important parameters like max. It is meant to be used in situations where you might otherwise use command=search, but do not want to for style reasons or are unable to (such as with Typhoon).> >Comment - You don't have to put the &startat=[startat] inside a showif context (in your search context). WebCat starts with 1 whenever startat = anything other than a number. It only starts at some other index value when the startat value is actually a number ...That may be the case, but it is ambiguous and undocumented so I don't like to rely on that always being the case. > >By the way, Congratulations! 2589 out of 44895 is in the top 6 percent! :) >Thanks, but finishing results in Bay To Breakers mean very little outside the top 200 or so. About 40,000 people run that don't register (80,000 total), many of whom jump in halfway through the race to avoid the Hayes Street Hill.John. John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com John Hill

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], Sorta: WebCat-Talk List (2000) Running WebCat from a CD-ROM (1997) latest version? (1998) [item] appears after 'remove last item' ... (1997) Part Html part WebDNA (1997) PCS Frames-Default page is solution! (1997) attacment pdf (2001) Windows-based Code Editor (2002) sorting and grouping (1998) Size Limitation through a POST via SSL? (2005) Re:2nd WebCatalog2 Feature Request (1996) WebMerchant/MacAuthorize (1998) Encyption mail (1998) Using Cookie for client specific info? (1997) WebMerchant? (1998) 1 cent answer? (1998) reversing the effects of [url] (1997) Add htmlarea 3 to SiteBuilder (2004) OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998) Attention all list readers (1997)