Re: [OT] RE: Drop down menu - Part 1

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47144
interpreted = N
texte = Sure. Here goes the code:Default.tpl : [Include file=check_ctype.inc][text multi=t][search db=admin/prefs.db&nePREFdata=0][founditems][pref]=[value]&[/founditems][/sea rch][/text] [SETMIMEHEADER name=Pragma&value=no-cache] [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT] [SETMIMEHEADER name=Cache-Control&value=max-age=0] [NAME] [text]body_include=results.inc[/text] [!]============================== Handle Add to Shopping Cart ================================= [showif [action]=Add] [!] Add the main sku to the cart [/!] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][sku][/url]]quantity=[qty]&[formva riables name=__&exact=F]Text[lookup db=admin/categories.db&lookinfield=C_ID&value=[getchars start=3][name][/getchars]&returnfield=C_CART]=[url][value][/url]&[/formvaria bles][/addlineitem] [!] Add all the related skus to the cart as well [/!] [formvariables name=--&exact=F] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][value][/url]][/addlineitem] [/formvariables] [/showif] [/!]
[include file=title.inc]
[include file=search.inc][include file=[body_include]]
[!] [/!]         
UCB The Scholar's Workstation eStore.
[!] Hidden link for spiders and robots [/!] [Search db=admin/products.db&neSKUdata=FindAll&max=1] [founditems] [/founditems] [/Search] ======================END of Default.tpl CODE ========================= I had to send the code for mm_menu.js in a second message, in order to keep the message under 30K required by the list.The mm_menu.js has [], but is simply declared, not included in the code. Thank you so much for any tips, I really appreciate it!Marcos +++++++++++++++++ On 1/22/03 2:13 PM, Pedro Rivera wrote:> Can you post the code? > > -----Original Message----- > From: Marcos Saramago [mailto:marcos1@tsw.berkeley.edu] > Sent: Wednesday, January 22, 2003 1:56 PM > To: WebDNA-Talk@talk.smithmicro.com > Subject: Re: Drop down menu > > > Thank you for your response. > > There are no [] in the JavaScript generated by Fireworks. I tried the [Raw] > tags, and all I get is a blank page with Error: Missing closing tag 'RAW'. > The tag is not missing. > > Although I'm very impressed with the power of WebDNA, I'm new to it. I > inherited this site a few months ago and I'm learning it as I go. I'm > remaking the whole site, and got really stuck now. > > What really puzzles me is why does the SmithMicro site works perfectly well, > and mine goes absolutely blank, giving me no clues...It's either on or off. > > Thanks! > > Marcos > > > > > On 1/22/03 1:14 PM, Pedro Rivera wrote: > >> The problem we had was with the [] brackets. Like Alain said put it in a >> all_your_code.js file. >> Or in our case we used the [RAW] code here [/RAW] tag and it works like a >> charm >> >> -----Original Message----- >> From: Marcos Saramago [mailto:marcos1@tsw.berkeley.edu] >> Sent: Wednesday, January 22, 2003 12:39 PM >> To: WebDNA-Talk@talk.smithmicro.com >> Subject: Drop down menu >> >> >> Hello, >> >> Iım trying to implement some features to the internal site Iım working on. >> Iım on MacOS X.2. >> >> Iım trying to add a drop down menu navbar to the site. Just like the one > at >> http://www.smithmicro.com/, I made it with Fireworks MX and it works >> perfectly well. When I add the script between the HEAD tags, the whole > page >> goes blank on reload, going back to normal after removing it. Then I added >> the code for the image map of the navbar into the page. It appears, but > does >> not work, and wherever I place it, the rest of the page after it does not >> appear. I tried to add the HEAD code again, and once more, the whole page >> goes blank. >> >> Any tips would be truly appreciated. Thanks! >> >> >> Marcos >> >> >> ------------------------------------------------------------- >> 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/ >> > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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: [OT] RE: Drop down menu - Part 1 (Marcos Saramago 2003)
Sure. Here goes the code:Default.tpl : [Include file=check_ctype.inc][text multi=t][search db=admin/prefs.db&nePREFdata=0][founditems][pref]=[value]&[/founditems][/sea rch][/text] [SETMIMEHEADER name=Pragma&value=no-cache] [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT] [SETMIMEHEADER name=Cache-Control&value=max-age=0] [NAME] [text]body_include=results.inc[/text] [!]============================== Handle Add to Shopping Cart ================================= [showif [action]=Add] [!] Add the main sku to the cart [/!] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][sku][/url]]quantity=[qty]&[formva riables name=__&exact=F]Text[lookup db=admin/categories.db&lookinfield=C_ID&value=[getchars start=3][name][/getchars]&returnfield=C_CART]=[url][value][/url]&[/formvaria bles][/addlineitem] [!] Add all the related skus to the cart as well [/!] [formvariables name=--&exact=F] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][value][/url]][/addlineitem] [/formvariables] [/showif] [/!]
[include file=title.inc]
[include file=search.inc][include file=[body_include]]
[!] [/!]         
UCB The Scholar's Workstation eStore.
[!] Hidden link for spiders and robots [/!] [Search db=admin/products.db&neSKUdata=FindAll&max=1] [founditems] [url][sku][/URL].htm> [/founditems] [/Search] ======================END of Default.tpl CODE ========================= I had to send the code for mm_menu.js in a second message, in order to keep the message under 30K required by the list.The mm_menu.js has [], but is simply declared, not included in the code. Thank you so much for any tips, I really appreciate it!Marcos +++++++++++++++++ On 1/22/03 2:13 PM, Pedro Rivera wrote:> Can you post the code? > > -----Original Message----- > From: Marcos Saramago [mailto:marcos1@tsw.berkeley.edu] > Sent: Wednesday, January 22, 2003 1:56 PM > To: WebDNA-Talk@talk.smithmicro.com > Subject: Re: Drop down menu > > > Thank you for your response. > > There are no [] in the JavaScript generated by Fireworks. I tried the [raw] > tags, and all I get is a blank page with Error: Missing closing tag 'RAW'. > The tag is not missing. > > Although I'm very impressed with the power of WebDNA, I'm new to it. I > inherited this site a few months ago and I'm learning it as I go. I'm > remaking the whole site, and got really stuck now. > > What really puzzles me is why does the SmithMicro site works perfectly well, > and mine goes absolutely blank, giving me no clues...It's either on or off. > > Thanks! > > Marcos > > > > > On 1/22/03 1:14 PM, Pedro Rivera wrote: > >> The problem we had was with the [] brackets. Like Alain said put it in a >> all_your_code.js file. >> Or in our case we used the [raw] code here [/RAW] tag and it works like a >> charm >> >> -----Original Message----- >> From: Marcos Saramago [mailto:marcos1@tsw.berkeley.edu] >> Sent: Wednesday, January 22, 2003 12:39 PM >> To: WebDNA-Talk@talk.smithmicro.com >> Subject: Drop down menu >> >> >> Hello, >> >> Iım trying to implement some features to the internal site Iım working on. >> Iım on MacOS X.2. >> >> Iım trying to add a drop down menu navbar to the site. Just like the one > at >> http://www.smithmicro.com/, I made it with Fireworks MX and it works >> perfectly well. When I add the script between the HEAD tags, the whole > page >> goes blank on reload, going back to normal after removing it. Then I added >> the code for the image map of the navbar into the page. It appears, but > does >> not work, and wherever I place it, the rest of the page after it does not >> appear. I tried to add the HEAD code again, and once more, the whole page >> goes blank. >> >> Any tips would be truly appreciated. Thanks! >> >> >> Marcos >> >> >> ------------------------------------------------------------- >> 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/ >> > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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/ Marcos Saramago

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:

where to put code (1998) IP Address Ranges in a Database. (2003) [WebDNA] WebDNA future (2010) [WebDNA] Auto Suggest Form (2014) formvariables not passing (2000) [WriteFile] problems (1997) ISPs and WebCat (2001) Just-in-RAM? (2000) NT Setup (1998) Pieces Show Up! Curse You! (2000) Adding Text (2000) A little syntax help (1997) Email (1998) checksum for credit cards? (1997) [referrer] tag (1997) Re:2nd WebCatalog2 Feature Request (1996) mySQL numfound (2006) syntax question, not in online refernce (1997) IE 6 form caching issue. (2003) Wonderin' whats the way (1998)