Showif/hideif within Javascript

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55891
interpreted = N
texte = Hi all, Need a little help here. I have a javascript function which will pass a value, lets say "1" to a function. So in the function I would like to evaluate this value (1) and display a text or not. Something like: function test(id) { return myvalue ('some value here which work', '[hideif +id+=3D1]this is not shown[/showif]'); } =20 Can this be done? If yes, how can I have the hideif working in there? The value "id" passes fine and also shows up with the correct value. TIA. Nitai --=20 Tools to energize your business Web Content Management =ABRedakto=BB & eBusiness Systems ComputerOil=AE AG Dammstrasse 7 5400 Baden / Switzerland Telefon +41 (0)844 44 55 66 info@computeroil.com http://computeroil.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: Showif/hideif within Javascript ( "Nitai @ ComputerOil" 2004)
  2. Re: Showif/hideif within Javascript ( Brian Fries 2004)
  3. Showif/hideif within Javascript ( "Nitai @ ComputerOil" 2004)
Hi all, Need a little help here. I have a javascript function which will pass a value, lets say "1" to a function. So in the function I would like to evaluate this value (1) and display a text or not. Something like: function test(id) { return myvalue ('some value here which work', '[hideif +id+=3D1]this is not shown[/showif]'); } =20 Can this be done? If yes, how can I have the hideif working in there? The value "id" passes fine and also shows up with the correct value. TIA. Nitai --=20 Tools to energize your business Web Content Management =ABRedakto=BB & eBusiness Systems ComputerOil=AE AG Dammstrasse 7 5400 Baden / Switzerland Telefon +41 (0)844 44 55 66 info@computeroil.com http://computeroil.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/ "Nitai @ ComputerOil"

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:

searches with dash, period etc. (2000) Database changes (1998) Nested tags count question (1997) Signal Raised error (1997) Where's Cart Created ? (1997) If Empty ? (1997) lookup and two records? (1997) showif and cart (1997) Odd [math] behaviour (2003) [taxRate] [TaxTotal] ? (1997) Been meaning to ask... (1997) Shipping based in distance and weight (1999) textarea input- nevermind (2002) Directory Overload (1998) [WebDNA] WebDNA 7 64bits for OSX (2012) Admin Edit prob. (1997) WebCatalog can't find database (1997) Possible Bug in 2.0b15.acgi (1997) Problem with Setheader (2001) WebSTAR 2.1 freezes my Mac (1997)