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:

List Address Changed! (1998) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) Installing WebDNA on Linux (2007) Generating Report Totals (1997) Listfiles (1998) Help!!!! Purchases not going through! FIXED! (1997) Outsourcing, et al. (2005) carriage returns in data (1997) PCS Emailer's role ? (1997) Search (1997) Append command (2000) searchable list archive (1997) system crashes, event log (1997) Cool ShowNext (was Blasted shownext (request for 4.0)) (1998) [WebDNA] Calendar Examples (2019) [off] Promotions/ECRC (1997) Authorize.net setup (2002) Migrating to NT -Reply (1997) [WebDNA] Help me install (WebDNA 7 fastcgi install on Lion 10.7.3) (2012) CopyFile not working? (2000)