Re: [WebDNA] Good advise on [Showif] or alternative...
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 108549
interpreted = N
texte = You could also do a [showif [thisurl]=3D[thisurlplusget]]..[/showif]It will only show if the URL is "clean" of variables.- chrisOn Feb 7, 2012, at 19:00, Palle Bo Nielsen wrote:> Hi Chris,>=20> I think you nailed it. I will try it out when [thisurlplusget] -fix =hits me ;-) - but it seems like to right solution.>=20> Thanks to everybody for good inspiration.>=20> /Palle>=20>=20> On 07/02/2012, at 21.49, christophe.billiottet@webdna.us wrote:>=20>> What about>>=20>> [function name=3DCALL_DOMAIN][return][listmimeheaders =name=3Dhost&exact=3DF][url][value][/url][/listmimeheaders][/return][/funct=ion]>>=20>> the URL that was called is [CALL_DOMAIN][thisurlplusget]>>=20>> Then you compare it with www.macnyt.dk/forum/>>=20>> - chris>>=20>> On Feb 7, 2012, at 18:34, Palle Bo Nielsen wrote:>>=20>>> Hi Dave,>>>=20>>> The &exact=3DT would just be considered a part of the URL and =according to the documentation there is not place for an exact=3Dt in =this context, unfortunately.>>>=20>>> /Palle>>>=20>>>=20>>> On 07/02/2012, at 21.30, Dave Stengel wrote:>>>=20>>>> Not sure is this would work but maybe try adding &exact=3DT to the =string>>>>=20>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/&exact=3DT] -- RESULT A =[/showif]>>>>=20>>>> Dave>>>> ______________________________>>>>=20>>>> On Tue, Feb 7, 2012 at 11:49 AM, Palle Bo Nielsen>>>>
wrote:>>>>> Hi Dave,>>>>>=20>>>>> I would argue that...>>>>>=20>>>>> If actual URL was 'http://www.macnyt.dk/something/' then both A =and B scenarios would.>>>>>=20>>>>> Expected result is that only RESULT B should be the case.>>>>>=20>>>>> And please note that actual URL should be based on a 'pure' URL =with no variables like your alternative suggestions (this is my =ambition)...>>>>>=20>>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/] -- RESULT A [/showif]>>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/something/] -- RESULT B =[/showif]>>>>>=20>>>>> /Palle>>>>>=20>>>>>=20>>>>>=20>>>>> On 07/02/2012, at 20.40, Dave Stengel wrote:>>>>>=20>>>>>> If you're showing based on current url maybe try:>>>>>>=20>>>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/forum/]>>>>>>=20>>>>>> or you could pass a variable in a link from the proceeding page =like:>>>>>>=20>>>>>> Lin=k to Forum>>>>>>=20>>>>>> then on http://www.macnyt.dk/forum/ put your showif>>>>>>=20>>>>>> [showif [do]=3Dshow]http://www.macnyt.dk/forum/[/Showif]>>>>>>=20>>>>>> Good luck, hope this helps.>>>>>> Dave>>>>>> ________________________>>>>>>=20>>>>>>=20>>>>>>=20>>>>>> On Tue, Feb 7, 2012 at 11:24 AM, Palle Bo Nielsen>>>>>> wrote:>>>>>>> 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>>>>>>> /Palle--------------------------------------------------------->>>>>>> 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>>>>>>=20>>>>>>=20>>>>>>=20>>>>>> -->>>>>> Dave Stengel>>>>>>=20>>>>>> http://www.mobilinksoftware.com>>>>>> 209.820.1300>>>>>> dave@mobilinkpro.com>>>>>> --------------------------------------------------------->>>>>> 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>>>>>=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>>>>=20>>>>=20>>>>=20>>>> --=20>>>> Dave Stengel>>>>=20>>>> http://www.mobilinksoftware.com>>>> 209.820.1300>>>> dave@mobilinkpro.com>>>> --------------------------------------------------------->>>> 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>>>=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>>=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>=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:
You could also do a [showif [thisurl]=3D[thisurlplusget]]..[/showif]It will only show if the URL is "clean" of variables.- chrisOn Feb 7, 2012, at 19:00, Palle Bo Nielsen wrote:> Hi Chris,>=20> I think you nailed it. I will try it out when [thisurlplusget] -fix =hits me ;-) - but it seems like to right solution.>=20> Thanks to everybody for good inspiration.>=20> /Palle>=20>=20> On 07/02/2012, at 21.49, christophe.billiottet@webdna.us wrote:>=20>> What about>>=20>> [function name=3DCALL_DOMAIN][return][listmimeheaders =name=3Dhost&exact=3DF][url][value][/url][/listmimeheaders][/return][/funct=ion]>>=20>> the URL that was called is [CALL_DOMAIN][thisurlplusget]>>=20>> Then you compare it with www.macnyt.dk/forum/>>=20>> - chris>>=20>> On Feb 7, 2012, at 18:34, Palle Bo Nielsen wrote:>>=20>>> Hi Dave,>>>=20>>> The &exact=3DT would just be considered a part of the URL and =according to the documentation there is not place for an exact=3Dt in =this context, unfortunately.>>>=20>>> /Palle>>>=20>>>=20>>> On 07/02/2012, at 21.30, Dave Stengel wrote:>>>=20>>>> Not sure is this would work but maybe try adding &exact=3DT to the =string>>>>=20>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/&exact=3DT] -- RESULT A =[/showif]>>>>=20>>>> Dave>>>> ______________________________>>>>=20>>>> On Tue, Feb 7, 2012 at 11:49 AM, Palle Bo Nielsen>>>> wrote:>>>>> Hi Dave,>>>>>=20>>>>> I would argue that...>>>>>=20>>>>> If actual URL was 'http://www.macnyt.dk/something/' then both A =and B scenarios would.>>>>>=20>>>>> Expected result is that only RESULT B should be the case.>>>>>=20>>>>> And please note that actual URL should be based on a 'pure' URL =with no variables like your alternative suggestions (this is my =ambition)...>>>>>=20>>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/] -- RESULT A [/showif]>>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/something/] -- RESULT B =[/showif]>>>>>=20>>>>> /Palle>>>>>=20>>>>>=20>>>>>=20>>>>> On 07/02/2012, at 20.40, Dave Stengel wrote:>>>>>=20>>>>>> If you're showing based on current url maybe try:>>>>>>=20>>>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/forum/]>>>>>>=20>>>>>> or you could pass a variable in a link from the proceeding page =like:>>>>>>=20>>>>>> [cart]">Lin=k to Forum>>>>>>=20>>>>>> then on http://www.macnyt.dk/forum/ put your showif>>>>>>=20>>>>>> [showif [do]=3Dshow]http://www.macnyt.dk/forum/[/Showif]>>>>>>=20>>>>>> Good luck, hope this helps.>>>>>> Dave>>>>>> ________________________>>>>>>=20>>>>>>=20>>>>>>=20>>>>>> On Tue, Feb 7, 2012 at 11:24 AM, Palle Bo Nielsen>>>>>> wrote:>>>>>>> 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>>>>>>> /Palle--------------------------------------------------------->>>>>>> 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>>>>>>=20>>>>>>=20>>>>>>=20>>>>>> -->>>>>> Dave Stengel>>>>>>=20>>>>>> http://www.mobilinksoftware.com>>>>>> 209.820.1300>>>>>> dave@mobilinkpro.com>>>>>> --------------------------------------------------------->>>>>> 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>>>>>=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>>>>=20>>>>=20>>>>=20>>>> --=20>>>> Dave Stengel>>>>=20>>>> http://www.mobilinksoftware.com>>>> 209.820.1300>>>> dave@mobilinkpro.com>>>> --------------------------------------------------------->>>> 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>>>=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>>=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>=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
christophe.billiottet@webdna.us
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:
how do I delete 1 of 2 identical records? (2003)
Netscape (2002)
Order not created error (1997)
PCS Emailer's role ? (1997)
File Uploads... (1997)
Webcatalog acgi conflict? (1999)
WC2.0 Memory Requirements (1997)
WebCat2 several catalogs? (1997)
Fwd: HTML encoding in URLs (1997)
Re1000001: Setting up shop (1997)
Weird Cookie Problem Part 2 (2007)
WebCat2b15MacPlugin - [protect] (1997)
Hello??? (1997)
anyone on the list work with Generator and WebCat together? (1999)
Encrypt/decrypt bug in 3.0.5b12 (1999)
I've had it! (1999)
[lookup] speed sales pitch (2003)
calculating tax rates, mail order solutions and version 2 (1997)
invoice.tpl (1998)
Download Question (1997)