Re: Showif/hideif within Javascript

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55907
interpreted = N
texte = Ok, thank you for your answer. Not being a super javascript guy, do you kno= w of any way to do this? Some sort of code snippet, just to get started:-) Thank you. Nitai On 4/2/04 6:24 AM, "Brian Fries" wrote: > Can't do that... the [hideif] is parsed on the server before being sent > to the browser, which is where the Javascript is processed, so the DNA > will always parse before the Javascript. From what I see, you should be > able to rewrite the javascript to handle the whole thing without any > DNA at all. >=20 > - brian >=20 > On Feb 3, 2004, at 3:18 PM, Nitai @ ComputerOil wrote: >=20 >> Hi all, >>=20 >> Need a little help here. >>=20 >> I have a javascript function which will pass a value, lets say "1" to a >> function. >>=20 >> So in the function I would like to evaluate this value (1) and display >> a >> text or not. Something like: >>=20 >> 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. >>=20 >> TIA. >>=20 >> Nitai >>=20 > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com > -- >=20 >=20 > ------------------------------------------------------------- > 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/ >=20 --=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)
Ok, thank you for your answer. Not being a super javascript guy, do you kno= w of any way to do this? Some sort of code snippet, just to get started:-) Thank you. Nitai On 4/2/04 6:24 AM, "Brian Fries" wrote: > Can't do that... the [hideif] is parsed on the server before being sent > to the browser, which is where the Javascript is processed, so the DNA > will always parse before the Javascript. From what I see, you should be > able to rewrite the javascript to handle the whole thing without any > DNA at all. >=20 > - brian >=20 > On Feb 3, 2004, at 3:18 PM, Nitai @ ComputerOil wrote: >=20 >> Hi all, >>=20 >> Need a little help here. >>=20 >> I have a javascript function which will pass a value, lets say "1" to a >> function. >>=20 >> So in the function I would like to evaluate this value (1) and display >> a >> text or not. Something like: >>=20 >> 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. >>=20 >> TIA. >>=20 >> Nitai >>=20 > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com > -- >=20 >=20 > ------------------------------------------------------------- > 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/ >=20 --=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:

PCS Frames (1997) Resume Catalog ? (1997) SSL with IIS 4.0 (1998) HTML Editors (1997) problems with WebCat-Plugin () Updating checkboxes made easy !!! (1998) More on ShippingCost help needed (1998) $append (1998) WebDNA Feature Request (2006) Mozilla/4. and Browser Info.txt (1997) [WebDNA] Count Lines (2011) WebCatalog for Postcards ? (1997) Checking for blank form fields (sort of...) (1998) [WebDNA] Variable truncating when using javascript openwindow (2011) Hiding HTML and page breaks (1997) Date/Time format problems (1997) Possible to reset Linux file permissions w/in webcat [shell] ? (2000) Custom Tags or Modular Code (2001) WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997)