Re: Nesting WebDNA in JavaScript
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48638
interpreted = N
texte = I noticed you're missing a [ in [/founditems]. Try to fix that.-----Original Message-----From: Alan White [mailto:alan@streethreds.com]Sent: Thursday, March 13, 2003 7:19 AMTo: WebDNA-Talk@talk.smithmicro.comSubject: Re: Nesting WebDNA in JavaScriptHi 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> > > >> Here is the code in full in case you maybe spot something else that maybe>> causing issues... I'd have to admit that in the past I have kinda let>> Dreamweaver etc take the weight of of the need to learn JavaScript to any>> great extent. I can have a hack at code sitting in front of me but in> terms>> of this I am a bit stuck as to where to start :(>> >> >> >> on 13/3/03 2:10 pm, Donovan at dbrooke@ehg.net wrote:>> >>> Ah, after a second look at your code, I found I jumped the gun.>>> This looks O.K.>>> my bad,>>> >>> Donovan>>> >>> >>> Donovan wrote:>>> >>>>> >>>>> [search db=admin/brand.db&neIDdatarq=find_all&THE_BRANDsort=1]>>>>> [founditems]>>>>> >fw_menu_0.addMenuItem([THE_BRAND],location='brandindex.html?RA=[random][r>>>>> andom][random]&cart=[cart]&__brand=[ID]');>>>>> /founditems]>>>>> [/search]>>>>> > > > -------------------------------------------------------------> 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 toWeb 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:
I noticed you're missing a [ in [/founditems]. Try to fix that.-----Original Message-----From: Alan White [mailto:alan@streethreds.com]Sent: Thursday, March 13, 2003 7:19 AMTo: WebDNA-Talk@talk.smithmicro.comSubject: Re: Nesting WebDNA in JavaScriptHi 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> > > >> Here is the code in full in case you maybe spot something else that maybe>> causing issues... I'd have to admit that in the past I have kinda let>> Dreamweaver etc take the weight of of the need to learn JavaScript to any>> great extent. I can have a hack at code sitting in front of me but in> terms>> of this I am a bit stuck as to where to start :(>> >> >> >> on 13/3/03 2:10 pm, Donovan at dbrooke@ehg.net wrote:>> >>> Ah, after a second look at your code, I found I jumped the gun.>>> This looks O.K.>>> my bad,>>> >>> Donovan>>> >>> >>> Donovan wrote:>>> >>>>> >>>>> [search db=admin/brand.db&neIDdatarq=find_all&THE_BRANDsort=1]>>>>> [founditems]>>>>> >fw_menu_0.addMenuItem([THE_BRAND],location='brandindex.html?RA=[random][r>>>>> andom][random]&cart=[cart]&__brand=[ID]');>>>>> /founditems]>>>>> [/search]>>>>> > > > -------------------------------------------------------------> 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 toWeb 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/
Pedro Rivera
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:
SSL Certs (2003)
For those of you not on the WebCatalog Beta... (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
PCS Frames (1997)
Javascript Fields of Strawberry Roses and Green Bananas (2000)
Pithy questions on webcommerce & siteedit (1997)
Here's an example of an applet in a tpl (1997)
Denying access by IP address (2000)
webcat- multiple selection in input field (1997)
Search in 2 or more catalogs (1997)
[delete] problem (1997)
[text show=f&secure=t] or ...? (2000)
Authorizenet answers and more questions (2002)
Roundup function? (1997)
Looking for 5 to 12 shops with 3 URLs & statements (1997)
WebCatalog for guestbook ? (1997)
Browser Info.txt -- newest additions? (1997)
[IpAddress] Tag (1997)
Multiple fields on 1 input (1997)
passing the variable (1999)