Re: Passing a search through a form
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 55008
interpreted = N
texte = It's just you ;)WebDNA is doing the right thing... remember, it's an "inside-out" parser - it processes all the tags inside the [interpret] context before executing the interpret itself, which will essentially re-parse the enclosed code a second time. On the first pass, it will replace [query] with the variable's value ([search...]) and will process the [raw] contexts (leaving things like [founditems]). On the second pass, it will interpret all the square-bracket thingies left behind by the first pass.- brianOn Dec 16, 2003, at 10:48 AM, Gary Krockover wrote:> Thanks Ken!>> It works, however I'm having to wrap all webdna inside the interpret > with raw tags:>> [interpret]> [query]> [raw][founditems][/raw]> [raw][/founditems][/raw]> [raw][/search][/raw[> [/interpret]>> Which seems totally incorrect but it's working....am I wiggin' out the > webdna interpreter by doing this or is it just getting to me?>> :)>> GK>> At 09:21 AM 12/16/2003, you wrote:>>> ... I'm wanting to let the user pass a complete search via a text >>> area [search db=....] without ending [/search], not needed) and >>> that's no problem however [interepret][query][/interpret] won't run >>> the search.>>>>>>> from post:>>> [If ("[dosearch]"="T")]>>> [Then]>>> [Interpret][query][/Interpret]>>> [founditems]>>>
>>> [ListFields [datasource]]>>> [interpret][[FieldName]][/interpret] | >>> [/ListFields]>>>
>>> [/founditems]>>> [/search]>>> [/Then]>>> [Else][/Else]>>> [/If]>>>>>> I was correct, you're not nesting your webdna code properly. What >> you're doing is this, a perfect example of improper nesting:>>>> [interpret][query][/interpret]>> [founditems]>> [/founditems]>> [/search]>>>> ... but what you need to do is to properly nest your contexts:>>>> [interpret]>> [query]>> [founditems]>> [/founditems]>> [/search]>> [/interpret]>-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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:
It's just you ;)WebDNA is doing the right thing... remember, it's an "inside-out" parser - it processes all the tags inside the [interpret] context before executing the interpret itself, which will essentially re-parse the enclosed code a second time. On the first pass, it will replace [query] with the variable's value ([search...]) and will process the [raw] contexts (leaving things like [founditems]). On the second pass, it will interpret all the square-bracket thingies left behind by the first pass.- brianOn Dec 16, 2003, at 10:48 AM, Gary Krockover wrote:> Thanks Ken!>> It works, however I'm having to wrap all webdna inside the interpret > with raw tags:>> [interpret]> [query]> [raw][founditems][/raw]> [raw][/founditems][/raw]> [raw][/search][/raw[> [/interpret]>> Which seems totally incorrect but it's working....am I wiggin' out the > webdna interpreter by doing this or is it just getting to me?>> :)>> GK>> At 09:21 AM 12/16/2003, you wrote:>>> ... I'm wanting to let the user pass a complete search via a text >>> area [search db=....] without ending [/search], not needed) and >>> that's no problem however [interepret][query][/interpret] won't run >>> the search.>>>>>>> from post:>>> [If ("[dosearch]"="T")]>>> [Then]>>> [interpret][query][/Interpret]>>> [founditems]>>> >>> [ListFields [datasource]]>>> [interpret][[FieldName]][/interpret] | >>> [/ListFields]>>>
>>> [/founditems]>>> [/search]>>> [/Then]>>> [Else][/Else]>>> [/If]>>>>>> I was correct, you're not nesting your webdna code properly. What >> you're doing is this, a perfect example of improper nesting:>>>> [interpret][query][/interpret]>> [founditems]>> [/founditems]>> [/search]>>>> ... but what you need to do is to properly nest your contexts:>>>> [interpret]>> [query]>> [founditems]>> [/founditems]>> [/search]>> [/interpret]>-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/
Brian Fries
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:
mac hack (1997)
Shipping charges depending on tax rate? (1997)
Encyption mail was Suggestions for Topics ... (1998)
Max Record length (1997)
webcat/chat/javascript/IE on windows only problem - long,code included - nevermind (2002)
Date Sorting (1997)
Quickie question on the email templates (1997)
Security Issue (1997)
Mozilla/4. and Browser Info.txt (1997)
Snake Bites (1997)
Problem with date and ranges (2002)
Orderfile context problem (1998)
Email Formatting (1998)
Authorizenet and expiration dates (2002)
Resume Catalog ? (1997)
Image maps/Webcat (1997)
RE: Writefile outside WebSTAR hierarchy? (1997)
[WebDNA] WebDNA-folder-Mac-FastCGI-8.5.1.zip (404 error) (2018)
[OT] Bulk Email Software (2002)
[TaxableTotal] - not working with AOL and IE (1997)