Re: Nesting WebDNA in JavaScript
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48639
interpreted = N
texte = Alan,I just plugged your code into a new page and created a simple 'brand.db' andI'm seeing the WebDNA parsed ok. I'll upload what I've got shortly to mywebserver, but briefly, if I view source I'm seeing:That repeated over again each time for each record in the db.GKHi GaryThanks for the suggestion :)My initial thoughts were that this would process the same JavaScript overand over for each of the brands in my db but unfortunately it doesn't dothat either. After trying a variety of variations on placement of thewebdna tags I have come to the conclusion that the webdna will not parse(well at least for me...) in the JavaScript.To test further I user [!] [/!] to comment out the webdna only to find thatit was displayed as though in the [raw] tags. When I tried to do the sameusing // as a JavaScript comment instead, the page started working again...Any further suggestions anyone?ThanksAlanon 13/3/03 2:32 pm, Gary Krockover at gary@garykrockover.com wrote:> Did you try moving the search outside of the beginning of the javascript?> Oh, and just noticed that your /founditems is missing the [, so that is> probably the problem, but here's my suggestion anyways:>>> [search db=admin/brand.db&neIDdatarq=find_all&THE_BRANDsort=1]> [founditems]> >> [/founditems]> [/search]>> GK>>>-------------------------------------------------------------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:
Alan,I just plugged your code into a new page and created a simple 'brand.db' andI'm seeing the WebDNA parsed ok. I'll upload what I've got shortly to mywebserver, but briefly, if I view source I'm seeing:That repeated over again each time for each record in the db.GKHi GaryThanks for the suggestion :)My initial thoughts were that this would process the same JavaScript overand over for each of the brands in my db but unfortunately it doesn't dothat either. After trying a variety of variations on placement of thewebdna tags I have come to the conclusion that the webdna will not parse(well at least for me...) in the JavaScript.To test further I user [!] [/!] to comment out the webdna only to find thatit was displayed as though in the [raw] tags. When I tried to do the sameusing // as a JavaScript comment instead, the page started working again...Any further suggestions anyone?ThanksAlanon 13/3/03 2:32 pm, Gary Krockover at gary@garykrockover.com wrote:> Did you try moving the search outside of the beginning of the javascript?> Oh, and just noticed that your /founditems is missing the [, so that is> probably the problem, but here's my suggestion anyways:>>> [search db=admin/brand.db&neIDdatarq=find_all&THE_BRANDsort=1]> [founditems]> >> [/founditems]> [/search]>> GK>>>-------------------------------------------------------------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/
Gary Krockover
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:
Cart # Starting at 1000 (2000)
OS X Problem... (2000)
Where is f2? (1997)
RAM variables (1997)
OT: Javascript help (2003)
[/application] error? (1997)
Initiating NewCart (1997)
TCPconnect using SSL. If not WebCat, How? (1999)
auto enter dates (1998)
Bulletin Board.... (2000)
Can't Update records (1997)
Speaking of... (1999)
Search in 2 or more catalogs (1997)
Paths (2000)
Re:Merging databases (1997)
Site Builder & IE Mac (2004)
WebCat2b15MacPlugin - [protect] (1997)
X etc.... (1999)
Date format (2000)
calculating tax rates, mail order solutions and version 2 (1997)