Re: Browser based content...

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59567
interpreted = N
texte = I'm kinda running off the top of my head and pre-coffeee... but... the only thing I can see at first glance is that the variable setting and [hideif] stuff is redundant since you are using [if/then/else], so the code could be shorrtened like so: [if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))] [then]Good Menu[/then] [else]Other Menu[/else] [/if] HTH -- Oh and I apologize ahead of time if I am on crack. -Dan On Fri, 08 Oct 2004 15:24:07 +0100 Alan White wrote: >Hi Eveyone > >I know I have posted about this before and was told I could do it but can anyone see what is >wrong with this piece of code? I want to display one menu for all other browsers and one for mac >i5.2 because it is the spawn of satan. > >[if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))] > [then][text]showgoodmenu=T[/text][/then] > [else][text]showgoodmenu=F[/text][/else] >[/if] > >[hideif [showgoodmenu]=F] > Good Menu >[/hideif] > >Example : http://www.hanon-shop.com/testarea/testmenu.html > >TIA >Alan > > > >------------------------------------------------------------- >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: Browser based content... ( Alan White 2004)
  2. Re: Browser based content... ( Brian Fries 2004)
  3. Re: Browser based content... ( "Dan Strong" 2004)
  4. Browser based content... ( Alan White 2004)
I'm kinda running off the top of my head and pre-coffeee... but... the only thing I can see at first glance is that the variable setting and [hideif] stuff is redundant since you are using [if/then/else], so the code could be shorrtened like so: [if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))] [then]Good Menu[/then] [else]Other Menu[/else] [/if] HTH -- Oh and I apologize ahead of time if I am on crack. -Dan On Fri, 08 Oct 2004 15:24:07 +0100 Alan White wrote: >Hi Eveyone > >I know I have posted about this before and was told I could do it but can anyone see what is >wrong with this piece of code? I want to display one menu for all other browsers and one for mac >i5.2 because it is the spawn of satan. > >[if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))] > [then][text]showgoodmenu=T[/text][/then] > [else][text]showgoodmenu=F[/text][/else] >[/if] > >[hideif [showgoodmenu]=F] > Good Menu >[/hideif] > >Example : http://www.hanon-shop.com/testarea/testmenu.html > >TIA >Alan > > > >------------------------------------------------------------- >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/ "Dan Strong"

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:

[WebDNA] Rack Mount Server(s) Available (2009) PCS Frames (1997) Emailer & IMail List Server (1998) Time Tracking (2003) [protect admin] (1997) Header Values won't take. (1998) Re:listfiles-looking for slick solution (1997) newcart (1997) PWS suffix mapping (2000) Help! Odd, irreproducible happenings. (1998) WebTEN vs webSTAR (1998) Formulas.db + Users.db (1997) hideif glitch (2003) RE: Deafness (1998) F3 crashing server (1997) Sherlock plug-in? (1999) multi-paragraph fields (1997) Possible Bug in 2.0b15.acgi (1997) Need a Calendar System (2001) More on the email templates (1997)