Re: [WebDNA] I'm stuck... :-(
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102229
interpreted = N
texte = Darn.... I gotta remember to use the online docs instead of my own... got to used to working alone before the revival .. ;-)Thanks Paul...On 25-Mar-09, at 1:14 PM, Paul Willis wrote:> From the docs...>> http://dev.webdna.us/ref/pages.html?context=IfContext.html>> Comparison: contains> Example: [If "[browsername]" ^ "Mozilla"] variable [browsername] > contains the text Mozilla>> So you just need>> [If ("[browsername]" ^ "iPhone")|("[browsername]" ^ "Blackberry")]>> Paul>> On 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/>> ---------------------------------------------------------> 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:
Darn.... I gotta remember to use the online docs instead of my own... got to used to working alone before the revival .. ;-)Thanks Paul...On 25-Mar-09, at 1:14 PM, Paul Willis wrote:> From the docs...>> http://dev.webdna.us/ref/pages.html?context=IfContext.html>> Comparison: contains> Example: [If "[browsername]" ^ "Mozilla"] variable [browsername] > contains the text Mozilla>> So you just need>> [If ("[browsername]" ^ "iPhone")|("[browsername]" ^ "Blackberry")]>> Paul>> On 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/>> ---------------------------------------------------------> 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/
Rob
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:
Shopping Cart - prices? (1997)
WebCat2b15MacPlugin - showing [math] (1997)
How do you hide [math]stuff[/math] (1997)
Frames and WebCat (1997)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Layers,Dreamweaver and WebCat Code (2000)
webcat & permissions (1999)
Date or time comparisons have bugs ... (1998)
before after on (1998)
Monitoring Script (2008)
[DELETEFILE] via http (2003)
[WebDNA] Serious sendmail problems in 8.02 and 8.1 (2015)
Kanji in http requests (1998)
Generating Report Totals (1997)
using showpage and showcart commands (1996)
[OT]R E: [WebDNA] UPS integration (2010)
Show first couple of lines. (2003)
Dumb Question about Docs (1997)
WebCat2 beta 11 - new prefs ... (1997)
[WebDNA] OT - Selling Domain Names? (2009)