Re: Nesting WebDNA in JavaScript

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48630
interpreted = N
texte = Hi GaryThanks for the suggestion :)My initial thoughts were that this would process the same JavaScript over and over for each of the brands in my db but unfortunately it doesn't do that either. After trying a variety of variations on placement of the webdna 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 that it was displayed as though in the [raw] tags. When I tried to do the same using // 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 may be >> 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 to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Nesting WebDNA in JavaScript (Tim Robinson 2003)
  2. Re: Nesting WebDNA in JavaScript (Gary Krockover 2003)
  3. Re: Nesting WebDNA in JavaScript (Alan White 2003)
  4. Re: Nesting WebDNA in JavaScript (Gary Krockover 2003)
  5. Re: Nesting WebDNA in JavaScript (Pedro Rivera 2003)
  6. Re: Nesting WebDNA in JavaScript (Alan White 2003)
  7. Re: Nesting WebDNA in JavaScript (Donovan 2003)
  8. Re: Nesting WebDNA in JavaScript (Alan White 2003)
  9. Re: Nesting WebDNA in JavaScript (Alan White 2003)
  10. Re: Nesting WebDNA in JavaScript (Alan White 2003)
  11. Re: Nesting WebDNA in JavaScript (Gary Krockover 2003)
  12. Re: Nesting WebDNA in JavaScript (Alan White 2003)
  13. Re: Nesting WebDNA in JavaScript (Donovan 2003)
  14. Re: Nesting WebDNA in JavaScript (Gary Krockover 2003)
  15. Re: Nesting WebDNA in JavaScript (Alan White 2003)
  16. Re: Nesting WebDNA in JavaScript (Donovan 2003)
  17. Re: Nesting WebDNA in JavaScript (Clint Davis 2003)
  18. Nesting WebDNA in JavaScript (Alan White 2003)
Hi GaryThanks for the suggestion :)My initial thoughts were that this would process the same JavaScript over and over for each of the brands in my db but unfortunately it doesn't do that either. After trying a variety of variations on placement of the webdna 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 that it was displayed as though in the [raw] tags. When I tried to do the same using // 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 may be >> 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 to Web Archive of this list is at: http://webdna.smithmicro.com/ Alan White

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:

Menu Syntax on Edit/Add templates (1998) WCf2 and nested tags (1997) MacAuthorize hub, no modal password dialog? (1997) Off Topic: Help Wanted (1997) Extended [ConvertChars] (1997) NT considerations (1997) Signal Raised Error (Part II) (1997) Multiple catalog databases and showcart (1997) different show next (1997) WebCatalog on Linux/MacOSX/etc (2000) Review comparison by PC Magazine: Open for On-line Business (1997) Converting characters to numbers ... (1997) Process SSI and WebCatalog.acgi (1998) OT - royalty free images (2002) Possible Bug in 2.0b15.acgi (1997) find with exceptions (1997) formula??? (2000) WebCat2final1 crashes (1997) [WebDNA] Archives (2009) ErrorMessages.db suggestion (1997)