What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: [WebDNA] Good advise on [Showif] or alternative...

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108547
interpreted = N
texte = Hi Govinda, I will try to explain in an alternative way. But first thanks for your = input which I am trying to decipher :) Well, imaging having one physical file of WebDNA acting in different = ways depending on the actual URL which is loaded. Like = 'http://www.macnyt.dk/forum/' loads a list of the most recent articles = in a forum and 'http://www.macnyt.dk/forum/?query=3D72837' loads a = specific thread and shows it. Note, that both results is from the same = WebDNA file and as such have the same URL - the only difference is that = the second URL has some variables attached. So now I would like to make some [showif] statements to help me showing = the user what he requested. If he requested = 'http://www.macnyt.dk/forum/' then the first imageinary showif (below) = should work. ---- [showif [thisurl]=3D/forum/] result a [/showif] [showif [thisurl]=3D/forum/?query=3D72837]] result b [/showif] ---- The problem is that if I do a '[showif [thisurl]=3D/forum/?query=3D72837]]= ' then this is also parsing the '[showif [thisurl]=3D/forum/]' since = [thisurl] only contain the 'forum' part and not the '?quert=3D72837' = part. If I was to use the newer version of (thisurlplus..something] then it = would also pass. The challenge is that it is quite easy to catch a variable value like = the 'query=3D72837' but I have a hard time catching just an = initial/default page lige /forum/ with no attached variables. I hope I was a bit more clear - even though I feel a but confused and = tired my self. /Palle On 07/02/2012, at 21.33, Govinda wrote: >>=20 >>=20 >> Hi all, >>=20 >> Seeking some good advise on what might just be a very simple case... >>=20 >> If need to make a [showif] on a specific URL, which needs to be >> 'http://www.macnyt.dk/forum/' nothing more nothing less. >>=20 >> My experience is that if I make an '[showif >> = [something]=3Dhttp://www.macnyt.dk/forum/?some=3Dadditional_variable&and=3D= another >> ]' then is passes as well. >>=20 >> In '[showif]' we have EQUAL, NOT EQUAL, CONTAINS, BEGINS WITH, LESS = THAN, >> GREATER THAN, DIVISIBLE BY - but none of the seems to do the trick. >>=20 >> Good ideas and inspiration is appreciated. >=20 > Hi Palle >=20 > I am confused what is actually proving difficult for you. Could you = explain the issue again, in different words? >=20 > Or, if I do understand.. then could you try this: >=20 > (the opening [showif] tag is all on one line:) >=20 > [showif [URL][thisurl][formVariables][if = ("[index]"=3D"1")][then]?[/then][else]&[/else][/if][name]=3D[url][value][/= url][/formvariables][/URL]=3D[URL]http://www.macnyt.dk/forum/[/URL]] > =09 > [/showif] >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Good advise on [Showif] or alternative... (Christer Olsson 2012)
  2. Re: [WebDNA] Good advise on [Showif] or alternative... (christophe.billiottet@webdna.us 2012)
  3. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  4. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  5. Re: [WebDNA] Good advise on [Showif] or alternative... (christophe.billiottet@webdna.us 2012)
  6. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  7. Re: [WebDNA] Good advise on [Showif] or alternative... (Govinda 2012)
  8. Re: [WebDNA] Good advise on [Showif] or alternative... (Dave Stengel 2012)
  9. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  10. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  11. RE: [WebDNA] Good advise on [Showif] or alternative... ("Michael A. DeLorenzo" 2012)
  12. RE: [WebDNA] Good advise on [Showif] or alternative... ("Michael A. DeLorenzo" 2012)
  13. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  14. Re: [WebDNA] Good advise on [Showif] or alternative... (Dave Stengel 2012)
  15. [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
Hi Govinda, I will try to explain in an alternative way. But first thanks for your = input which I am trying to decipher :) Well, imaging having one physical file of WebDNA acting in different = ways depending on the actual URL which is loaded. Like = 'http://www.macnyt.dk/forum/' loads a list of the most recent articles = in a forum and 'http://www.macnyt.dk/forum/?query=3D72837' loads a = specific thread and shows it. Note, that both results is from the same = WebDNA file and as such have the same URL - the only difference is that = the second URL has some variables attached. So now I would like to make some [showif] statements to help me showing = the user what he requested. If he requested = 'http://www.macnyt.dk/forum/' then the first imageinary showif (below) = should work. ---- [showif [thisurl]=3D/forum/] result a [/showif] [showif [thisurl]=3D/forum/?query=3D72837]] result b [/showif] ---- The problem is that if I do a '[showif [thisurl]=3D/forum/?query=3D72837]]= ' then this is also parsing the '[showif [thisurl]=3D/forum/]' since = [thisurl] only contain the 'forum' part and not the '?quert=3D72837' = part. If I was to use the newer version of (thisurlplus..something] then it = would also pass. The challenge is that it is quite easy to catch a variable value like = the 'query=3D72837' but I have a hard time catching just an = initial/default page lige /forum/ with no attached variables. I hope I was a bit more clear - even though I feel a but confused and = tired my self. /Palle On 07/02/2012, at 21.33, Govinda wrote: >>=20 >>=20 >> Hi all, >>=20 >> Seeking some good advise on what might just be a very simple case... >>=20 >> If need to make a [showif] on a specific URL, which needs to be >> 'http://www.macnyt.dk/forum/' nothing more nothing less. >>=20 >> My experience is that if I make an '[showif >> = [something]=3Dhttp://www.macnyt.dk/forum/?some=3Dadditional_variable&and=3D= another >> ]' then is passes as well. >>=20 >> In '[showif]' we have EQUAL, NOT EQUAL, CONTAINS, BEGINS WITH, LESS = THAN, >> GREATER THAN, DIVISIBLE BY - but none of the seems to do the trick. >>=20 >> Good ideas and inspiration is appreciated. >=20 > Hi Palle >=20 > I am confused what is actually proving difficult for you. Could you = explain the issue again, in different words? >=20 > Or, if I do understand.. then could you try this: >=20 > (the opening [showif] tag is all on one line:) >=20 > [showif [url][thisurl][formvariables][if = ("[index]"=3D"1")][then]?[/then][else]&[/else][/if][name]=3D[url][value][/= url][/formvariables][/URL]=3D[url]http://www.macnyt.dk/forum/[/URL]] > =09 > [/showif] >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Palle Bo Nielsen

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:

Reversed words (1997) Encyption mail was Suggestions for Topics ... (1998) Running 2 two WebCatalog.acgi's (1996) Cookies and webcat (1997) Encryption (2000) WC 4? (2001) Three new problems, maybe a fourth (1997) Ruby on Rails (was Looping Search) (2006) Another question (1997) Limit on nested [ShowIf]'s? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Date search - yes or no (1997) PIXO support (1997) StoreBuilder Shopping Cart (2000) RE: 2nd WebCatalog2 Feature Request (1996) Date search - yes or no (1997) Sendmail html/text and CCS problem (2003) Where is f2? (1997) Looking for a Manual (1997) two questions (1997)