Re: details

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50320
interpreted = N
texte = Thanks John, I'll try to get through this. I don't know if you saw the code I posted, but maybe that is a big part of the problem. It's probably not the most elegant way of coding things. On Monday, May 12, 2003, at 02:58 pm, John Peacock wrote:> kmac wrote: >> I guess I'm an idiot, because I can't get this going. > > Without seeing more of your code, we cannot help you. I'll try and > give you a couple of general recommendations and you can see if they > help point you in the right direction: > > 1) [shownext] predates the time when people generally used [search] as > a context, so it operates only as part of a search _command_; > > 2) The target of the [shownext] link will be in an implied search > context, so if you are using an additional [search] context, it will > no work (you'll have to roll your own); > > 3) [ShowNext position=begin&method=post&max=1] will display all of the > parameters actively part of the current search as type=hidden> so it is very useful for debugging (see below); > > 4) most of the arguments about not using commands (preferring > contexts) is needless paranoia (IMNSHO), especially when it comes to > search pages - if you are so concerned about people being able to > rewrite your search queries, take your data off the Internet, > disconnect the PC from all power, and bury it in 300 tons of concrete; > now your data is completely safe! > > My suggestion is to make a simple page the just includes the > [shownext] context and another page that references that page as part > of the search you are trying to perform (this is just for testing and > experimentation). Your _target_ page will look kind of like this (if > it was named ShowFile.tpl): > > > > > > >
> [ShowNext position=begin&method=post&max=1] >
> [searchstring] > >
> [/ShowNext] >
> > > > Your search page will need to have all of your search terms plus a > couple to enable the [shownext]; as a form, it would look something > like this: > >
> > > > > >
> > NOTE that the three 'type=hidden' lines are required terms that must > be in any search in order for [shownext] to function. NOTE also that > the max term in the search is not the same as the max term in the > [shownext]; the former is the number of records to return on each page > and the latter is how many instances of the [shownext] loop itself > should display on the page. > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4501 Forbes Boulevard > Suite H > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5748 > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Re: Please send hosting details. THANK YOU. (Owkaye Go 2009)
  2. [WebDNA] Please send hosting details (Owkaye Go 2009)
  3. Re: WebDNA emailer details ( sal danna 2005)
  4. WebDNA emailer details ( Tangel@IslandPress.Org 2005)
  5. Re: details (kmac 2003)
  6. Re: details (John Peacock 2003)
  7. Re: details (kmac 2003)
  8. Re: details (dbrooke 2003)
  9. Re: details (kmac 2003)
  10. Re: details (kmac 2003)
  11. Re: details (Donovan 2003)
  12. Re: details (kmac 2003)
  13. Re: details (Donovan 2003)
  14. Re: details (John Peacock 2003)
  15. Re: details (WebCat @ Inkblot Media 2003)
  16. Re: details (kmac 2003)
  17. Re: details (John Peacock 2003)
  18. Re: details (kmac 2003)
  19. Re: details (Kenneth Grome 2003)
  20. Re: details (Gary Krockover 2003)
  21. details (kmac 2003)
  22. Details of shipping - Totalqty calculations (updates@virtualrep.com (Updates) 1997)
Thanks John, I'll try to get through this. I don't know if you saw the code I posted, but maybe that is a big part of the problem. It's probably not the most elegant way of coding things. On Monday, May 12, 2003, at 02:58 pm, John Peacock wrote:> kmac wrote: >> I guess I'm an idiot, because I can't get this going. > > Without seeing more of your code, we cannot help you. I'll try and > give you a couple of general recommendations and you can see if they > help point you in the right direction: > > 1) [shownext] predates the time when people generally used [search] as > a context, so it operates only as part of a search _command_; > > 2) The target of the [shownext] link will be in an implied search > context, so if you are using an additional [search] context, it will > no work (you'll have to roll your own); > > 3) [ShowNext position=begin&method=post&max=1] will display all of the > parameters actively part of the current search as type=hidden> so it is very useful for debugging (see below); > > 4) most of the arguments about not using commands (preferring > contexts) is needless paranoia (IMNSHO), especially when it comes to > search pages - if you are so concerned about people being able to > rewrite your search queries, take your data off the Internet, > disconnect the PC from all power, and bury it in 300 tons of concrete; > now your data is completely safe! > > My suggestion is to make a simple page the just includes the > [shownext] context and another page that references that page as part > of the search you are trying to perform (this is just for testing and > experimentation). Your _target_ page will look kind of like this (if > it was named ShowFile.tpl): > > > > > > >
> [ShowNext position=begin&method=post&max=1] >
> [searchstring] > >
> [/ShowNext] >
> > > > Your search page will need to have all of your search terms plus a > couple to enable the [shownext]; as a form, it would look something > like this: > >
> > > > > >
> > NOTE that the three 'type=hidden' lines are required terms that must > be in any search in order for [shownext] to function. NOTE also that > the max term in the search is not the same as the max term in the > [shownext]; the former is the number of records to return on each page > and the latter is how many instances of the [shownext] loop itself > should display on the page. > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4501 Forbes Boulevard > Suite H > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5748 > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ kmac

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:

New commands in Final candidate (1997) encryption in browser? (1998) WebCommerce: Folder organization ? (1997) WebDNA for Dummies (2004) Sorting Problems (2004) TCPconnect using SSL. If not WebCat, How? (1999) Hiding the URL(was Cart ID Duplication) (2001) 2nd WebCatalog2 Feature Request (1996) Triggers under MacOSx (2003) shownext & math (1997) Supressing Error Messages (1998) How about this? (1998) Associative lookup style? (1997) [date format] w/in sendmail (1997) Re:2nd WebCatalog2 Feature Request (1996) How to append text after the sign & (1997) 2.0Beta Command Ref (can't find this instruction) (1997) [subtotal] and others (1997) WSDL Wizard (2003) [group] ? (1997)