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:

[shell] (2003) includes (2003) OK, here goes... (1997) wrong input values? (1997) WebCat2 several catalogs? (1997) problem with [Format Days_To_Date] (2000) [addlineitems] as oppossed to url command=add (2000) Web requests in que... (2007) Log-in Scheme (2003) Summing fields (1997) Grouping items in results page (2000) Showing unopened cart (1997) Help with Repost Data msg from form (1997) t or f (1997) Sort Order on a page search (1997) starting news site + small store (2000) RE: TeaRoom (1997) CGI and SSI (2002) Progress !! WAS: Trouble with formula.db (1997) [returnraw] and form variables (1998)