Re: Showif/hideif within Javascript

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55898
interpreted = N
texte = 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. - brian On Feb 3, 2004, at 3:18 PM, Nitai @ ComputerOil wrote: > 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+=1]this is > not > shown[/showif]'); > } > > 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 > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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)
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. - brian On Feb 3, 2004, at 3:18 PM, Nitai @ ComputerOil wrote: > 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+=1]this is > not > shown[/showif]'); > } > > 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 > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/ Brian Fries

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:

Nesting format tags (1997) WCf2 and nested tags (1997) WC1.6 to WC2 date formatting (1997) Let's share the WebDNA.net domain ... (2005) [WebDNA] XML Help please (2009) Bug or syntax error on my part? (1997) Authenticating users without dialog box (1997) Help name our technology! (1997) Locking up with WebCatalog... (1997) WebCat2b12 - New features for 1.6 users ... (1997) pop up menu's (1998) WebCat2.0 [format thousands .0f] no go (1997) Browser Reloads and AddlineItem (1997) [OT] Test - THE ANSWER (2003) Help name our technology! I found it (1997) Bug Report, maybe (1997) I figured it out (1999) SSL do I need it?? (1998) problems with 2 tags (1997) Problems With NT 4.0.1 Install (2000)