Re: [WebDNA] I'm stuck... :-(
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102228
interpreted = N
texte = From the docs...http://dev.webdna.us/ref/pages.html?context=IfContext.htmlComparison: containsExample: [If "[browsername]" ^ "Mozilla"] variable [browsername] contains the text MozillaSo you just need[If ("[browsername]" ^ "iPhone")|("[browsername]" ^ "Blackberry")]PaulOn 25 Mar 2009, at 18:53, Rob wrote:> Ok... I have some code that works good, but not the way I want it > to. ....Very high maintenance.>> I'm doing a redirect for wireless devices from the home page, and > need to know if there is a way to reduce the comparison string. I'd > like to reduce it down to iphone, or Blackberry, etc.>> Here is a piece of the code:>> [if]("[BROWSERNAME]"="Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2_1 > like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) > Version/3.1.1 Mobile/5H11 Safari/525.20") | > ("[BROWSERNAME]"="BlackBerry8330/4.3.0 Profile/MIDP-2.0 > Configuration/CLDC-1.1 VendorID/126 UP.Browser/5.0.3.3")]> [Then][REDIRECT url=mobile/index.html][/Then]> [Else][/Else]> [/if]>> So is there a better way to reduce:> "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2_1 like Mac OS X; en-us) > AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5H11 > Safari/525.20">> Down to:> Iphone?>> Can't think of any way to do it with the [BROWSERNAME] tag.>> The WAP system in the storebuilder doesn't seem to work, or is > outdated.>> Rob>> ---------------------------------------------------------> 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> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
From the docs...http://dev.webdna.us/ref/pages.html?context=IfContext.htmlComparison: containsExample: [If "[browsername]" ^ "Mozilla"] variable [browsername] contains the text MozillaSo you just need[If ("[browsername]" ^ "iPhone")|("[browsername]" ^ "Blackberry")]PaulOn 25 Mar 2009, at 18:53, Rob wrote:> Ok... I have some code that works good, but not the way I want it > to. ....Very high maintenance.>> I'm doing a redirect for wireless devices from the home page, and > need to know if there is a way to reduce the comparison string. I'd > like to reduce it down to iphone, or Blackberry, etc.>> Here is a piece of the code:>> [if]("[browsername]"="Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2_1 > like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) > Version/3.1.1 Mobile/5H11 Safari/525.20") | > ("[browsername]"="BlackBerry8330/4.3.0 Profile/MIDP-2.0 > Configuration/CLDC-1.1 VendorID/126 UP.Browser/5.0.3.3")]> [Then][REDIRECT url=mobile/index.html][/Then]> [Else][/Else]> [/if]>> So is there a better way to reduce:> "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2_1 like Mac OS X; en-us) > AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5H11 > Safari/525.20">> Down to:> Iphone?>> Can't think of any way to do it with the [browsername] tag.>> The WAP system in the storebuilder doesn't seem to work, or is > outdated.>> Rob>> ---------------------------------------------------------> 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> old archives: http://dev.webdna.us/TalkListArchive/
Paul Willis
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:
NT 2.1b10 (1998)
Setting up WebCatalog with Retail Pro data (1996)
suffix mapping for NT? (1997)
WebCat/Flash/authentication/protection (2000)
[WebDNA] [BULK] which of these tags exist in 7.0 (2011)
WebCatalog for Postcards ? (1997)
More questions about serial number dishing (1997)
Store Builder, technical infos (1998)
Sorry I didn't pay attention-but ??? (1997)
Can't use old cart file (was One more try) (1997)
Re:Help name our technology! (1997)
CountChars (2004)
Credit Card Number checking (1997)
What's wrong with this [append] context? (2000)
shipping costs (1997)
SSL PROBLEM (1999)
WebDNA-Talk Digest mode broken (1997)
Re2: frames & carts (1997)
Field lenght (1998)
unsubscribe (1997)