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:

page redirect in webDNA (1997) [Sum] function? (1997) about this server and links to who (1997) Re:quit command on NT (1997) WebCatalog 4.0 has been released! (2000) WebCat2 beta FTP site (1997) [WebDNA] FYI: Internet slowly wakes up to PayPal's quiet fee hike (2009) Processing all html files through WebCat or Typhoon (1998) [LOOKUP] (1997) Shipping.db (1998) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Just a thought (1998) [WebDNA] Email time bug? (2011) Problems passing [SKU] with $Replace in 2.0 (1997) WebCat2 beta 11 - new prefs ... (1997) File Upload (1997) t or f (1997) different show next (1997) [WebDNA] how to clear the [username] and [password] values the browser has stored? (2008) RE: [WebDNA] Record click-thrus (2008)