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 afunction.So in the function I would like to evaluate this value (1) and display atext or not. Something like:function test(id){return myvalue ('some value here which work', '[hideif +id+=3D1]this is notshown[/showif]');}=20Can this be done? If yes, how can I have the hideif working in there? Thevalue "id" passes fine and also shows up with the correct value.TIA.Nitai--=20Tools to energize your businessWeb Content Management =ABRedakto=BB & eBusiness SystemsComputerOil=AE AGDammstrasse 75400 Baden / SwitzerlandTelefon +41 (0)844 44 55 66info@computeroil.comhttp://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:
Hi all,Need a little help here.I have a javascript function which will pass a value, lets say "1" to afunction.So in the function I would like to evaluate this value (1) and display atext or not. Something like:function test(id){return myvalue ('some value here which work', '[hideif +id+=3D1]this is notshown[/showif]');}=20Can this be done? If yes, how can I have the hideif working in there? Thevalue "id" passes fine and also shows up with the correct value.TIA.Nitai--=20Tools to energize your businessWeb Content Management =ABRedakto=BB & eBusiness SystemsComputerOil=AE AGDammstrasse 75400 Baden / SwitzerlandTelefon +41 (0)844 44 55 66info@computeroil.comhttp://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)