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][searchdb=admin/prefs.db&nePREFdata=0][founditems][pref]=[value]&[/founditems][/search][/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]&[formvariables name=__&exact=F]Text[lookupdb=admin/categories.db&lookinfield=C_ID&value=[getcharsstart=3][name][/getchars]&returnfield=C_CART]=[url][value][/url]&[/formvariables][/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][/!]
[includefile=title.inc] |
|
[includefile=search.inc] | [includefile=[body_include]] |
[!] [/!] | |
UCB The Scholar's WorkstationeStore. |
[!] 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 tokeep 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:
|
- 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][searchdb=admin/prefs.db&nePREFdata=0][founditems][pref]=[value]&[/founditems][/search][/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]&[formvariables name=__&exact=F]Text[lookupdb=admin/categories.db&lookinfield=C_ID&value=[getcharsstart=3][name][/getchars]&returnfield=C_CART]=[url][value][/url]&[/formvariables][/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][/!] [includefile=title.inc] |
|
[includefile=search.inc] | [includefile=[body_include]] |
[!] [/!] | |
UCB The Scholar's WorkstationeStore. |
[!] 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 tokeep 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:
all records returned. (1997)
[newcart] (1998)
2.0Beta Command Ref (can't find this instruction) (1997)
log files (1998)
[format] question (2000)
Help!!!! (1999)
WebDNA to IM connectivity? (2006)
[OT] HTML render (2003)
ShowNext (1997)
[WebDNA] some tests (2011)
can WC render sites out? (1997)
Sitebuilder / StoreBuilder - *related.db* (2008)
How true is this? (1999)
[ot] ShowIf & HideIf Question (1998)
[delete] problem (1997)
Email within tmpl ? (1997)
Attn: Power Palle (2004)
Emailer update for Mac? (1998)
Price Change (2000)
&max= (2003)