Re: [WebDNA] I'm stuck... :-(
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102238
interpreted = N
texte = If you need someone with an iPhone to test it, let me=20know.>I'm using this code right now.>I have not tested it on every phone imaginable, but it=20>seems to work for most smart phones I've tested....=20>Although it's not tested on the iPhone.>>[text]accept=3D[GETMIMEHEADER name=3DAccept][/text]>[text]celldetected=3D[/text]>[showif [url][accept][/url]=3D[url]text/vnd.wap.wml[/url]]> [text]wapagent=3DT[/text]>[/showif]>[showif [wapagent]=3DT]> [text]celldetected=3DT[/text]>[/showif]>[showif [celldetected]=3DT]> [redirect url=3D/mobi/index.tpl]>[/showif]>>Matthew A Perosi JewelerWebsites.com>------------------------------by Psi Prime------->Senior Web Developer 323 Union Blvd.> Totowa, NJ 07512>Pre-Sales: 888.872.0274>Service: 973.413.8213>Training: 973.413.8214>Fax: 973.413.8217>>http://www.jewelerwebsites.com>http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc>http://www.psiprime.com>>>>Rob wrote:>> Dan,>>>> I just got involved due to a technical request, and=20>>haven't had much=20>> to do with the site involved. I think its just being=20>>handled=20>> generically, much like yours. I did notice on the newer=20>>blackberry's=20>> and iphones, it renders correctly, but on the older=20>>styles a lot of=20>> positional elements are off. It looks like its just set=20>>to a standard=20>> width of 320. I know the person working on it is on this=20>>list, and its=20>> up to him if he wishes to expand on it more.>>>> The detection was actually the easy part, and even=20>>easier now with the=20>> list help. I would imagine you could expand on it and=20>>detect size as=20>> well, but that would probably take a few hours to dump=20>>them all in,=20>> and months to find them all. With the shelf live of must=20>>phones, I=20>> think we'll just stick to the newer versions. Here is a=20>>link to the=20>> file I used, but for the most part, I went thru some of=20>>the server=20>> logs for the site involved, as the list didn't seem up=20>>to date. I=20>> haven't even heard of half these things....>>>> http://homepage.mac.com/rforest/downloads/mobile.zip>>>> More info, as well as files, at this link:>> http://studiohyperset.wordpress.com/2007/02/05/mobile-redirect-code-di=scussion-index/=20>>>>>> And what I'm currently using is this:>> --------------->> [If ("[url][browsername][/url]" ^=20>> "iPhone")|("[url][browsername][/url]" ^=20>> "Blackberry")|("[url][browsername][/url]" ^=20>> "Samsung")|("[url][browsername][/url]" ^=20>> "Motorola")|("[url][browsername][/url]" ^=20>> "HTC")|("[url][browsername][/url]" ^=20>> "Casio")|("[url][browsername][/url]" ^=20>> "Orange")|("[url][browsername][/url]" ^=20>> "T-Mobile")|("[url][browsername][/url]" ^ "Pocket=20>> PC")|("[url][browsername][/url]" ^ "Opera=20>> Mini")|("[url][browsername][/url]" ^=20>> "Sharp")|("[url][browsername][/url]" ^=20>> "Cingular")|("[url][browsername][/url]" ^=20>> "SonyEricsson")|("[url][browsername][/url]" ^=20>> "Palm")|("[url][browsername][/url]" ^ "Windows=20>> CE")|("[url][browsername][/url]" ^ "Mobile Content=20>> Viewer")|("[url][browsername][/url]" ^ "Google CHTML=20>> Proxy")|("[url][browsername][/url]" ^=20>> "Palmsource")|("[url][browsername][/url]" ^=20>> "Nokia")|("[url][browsername][/url]" ^=20>> "Smartphone")|("[url][browsername][/url]" ^ "Opera=20>> 3.62")|("[url][browsername][/url]" ^ "Reqwirelessweb")]>> [Then][REDIRECT url=3Dmobile/index.html][/Then]>> [Else] Alternate redirect here, or leave blank if its=20>>self [/Else]>> [/if]>> ------------------->>>> Sure would be nice to see some type of standardization=20>>for this area=20>> in that industry. ... :-(>>>> Rob>>>>>> On 25-Mar-09, at 3:49 PM, Dan Strong wrote:>>>>> Rob,>>>>>> I'm curious how you (or anyone for that matter) is/are=20>>>handling=20>>> detection of other mobile devices. I have tried (and not=20>>>yet=20>>> resolved) a way to catch all (or as many) mobile devices=20>>>as I can so=20>>> I can serve mobile-friendly content.>>>>>> 1) I've thought about using the WRFL data source (=20>>> http://wurfl.sourceforge.net/ ) but it contains a lot of=20>>>irrelevant=20>>> (for my purposes) data and would require what appears to=20>>>be a great=20>>> deal of work and constant upkeep, and/or>>>>>> 2) http://detectmobilebrowsers.mobi/ - php script.=20>>>Haven't tried it.=20>>> Not against using php when I need to, but I try to do=20>>>things via WebDNA.>>>>>> 2) Detecting screen-size via javascript (if screen size=20>>>is under,=20>>> say, 400px wide then serve mobile.css) ... but that=20>>>won't always work=20>>> since not all mobile devices speak javascript...>>>>>> For now I'm doing like you are and detecting the most=20>>>popular=20>>> devices, but I'd really love to be able to catch them=20>>>all. It would=20>>> be nice if all mobile devices would add a standard=20>>>descriptor to=20>>> their USER AGENT header, like --mobile-- or=20>>>somethinglike that.=20>>> Anyhow, like I said, just curious.>>>>>> ** Cue the programmer with the "duh, you do it like this=20>>>with a=20>>> single line of code" response **>>> -Dan>>>>>>>>>>>> On Wed, 25 Mar 2009 14:55:29 -0600>>> Rob
wrote:>>>> Yup.... Got it... Thanks..>>>> Works perfect! ... Thanks for all the help...>>>> Rob>>>> On 25-Mar-09, at 2:16 PM, Donovan Brooke wrote:>>>>> Rob wrote:>>>>>> Darn.... I gotta remember to use the online docs instead=20>>>>>>of my =20>>>>>> own... got to used to working alone before the revival=20>>>>>>.. ;-)>>>>>> Thanks Paul...>>>>>>>>>> You will want to encode browsername most likely..>>>>>>>>>> [if "[url][browsername][/url]"...>>>>>>>>>>>>>>> Donovan>>>>>>>>>>>>>>>>>>>> --=20>>>>> Donovan D. Brooke PH: 1 (608) 770-3822>>>>> ------------------------------------------------>>>>> VP>>>>> WebDNA Software Corporation>>>>> 16192 Coastal Highway>>>>> Lewes, DE 19958>>>>> --------------------------------------------------------->>>>> This message is sent to you because you are subscribed=20>>>>>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=20>>>>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=20>>>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=20>>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:
If you need someone with an iPhone to test it, let me=20know.>I'm using this code right now.>I have not tested it on every phone imaginable, but it=20>seems to work for most smart phones I've tested....=20>Although it's not tested on the iPhone.>>[text]accept=3D[GETMIMEHEADER name=3DAccept][/text]>[text]celldetected=3D[/text]>[showif [url][accept][/url]=3D[url]text/vnd.wap.wml[/url]]> [text]wapagent=3DT[/text]>[/showif]>[showif [wapagent]=3DT]> [text]celldetected=3DT[/text]>[/showif]>[showif [celldetected]=3DT]> [redirect url=3D/mobi/index.tpl]>[/showif]>>Matthew A Perosi JewelerWebsites.com>------------------------------by Psi Prime------->Senior Web Developer 323 Union Blvd.> Totowa, NJ 07512>Pre-Sales: 888.872.0274>Service: 973.413.8213>Training: 973.413.8214>Fax: 973.413.8217>>http://www.jewelerwebsites.com>http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc>http://www.psiprime.com>>>>Rob wrote:>> Dan,>>>> I just got involved due to a technical request, and=20>>haven't had much=20>> to do with the site involved. I think its just being=20>>handled=20>> generically, much like yours. I did notice on the newer=20>>blackberry's=20>> and iphones, it renders correctly, but on the older=20>>styles a lot of=20>> positional elements are off. It looks like its just set=20>>to a standard=20>> width of 320. I know the person working on it is on this=20>>list, and its=20>> up to him if he wishes to expand on it more.>>>> The detection was actually the easy part, and even=20>>easier now with the=20>> list help. I would imagine you could expand on it and=20>>detect size as=20>> well, but that would probably take a few hours to dump=20>>them all in,=20>> and months to find them all. With the shelf live of must=20>>phones, I=20>> think we'll just stick to the newer versions. Here is a=20>>link to the=20>> file I used, but for the most part, I went thru some of=20>>the server=20>> logs for the site involved, as the list didn't seem up=20>>to date. I=20>> haven't even heard of half these things....>>>> http://homepage.mac.com/rforest/downloads/mobile.zip>>>> More info, as well as files, at this link:>> http://studiohyperset.wordpress.com/2007/02/05/mobile-redirect-code-di=scussion-index/=20>>>>>> And what I'm currently using is this:>> --------------->> [If ("[url][browsername][/url]" ^=20>> "iPhone")|("[url][browsername][/url]" ^=20>> "Blackberry")|("[url][browsername][/url]" ^=20>> "Samsung")|("[url][browsername][/url]" ^=20>> "Motorola")|("[url][browsername][/url]" ^=20>> "HTC")|("[url][browsername][/url]" ^=20>> "Casio")|("[url][browsername][/url]" ^=20>> "Orange")|("[url][browsername][/url]" ^=20>> "T-Mobile")|("[url][browsername][/url]" ^ "Pocket=20>> PC")|("[url][browsername][/url]" ^ "Opera=20>> Mini")|("[url][browsername][/url]" ^=20>> "Sharp")|("[url][browsername][/url]" ^=20>> "Cingular")|("[url][browsername][/url]" ^=20>> "SonyEricsson")|("[url][browsername][/url]" ^=20>> "Palm")|("[url][browsername][/url]" ^ "Windows=20>> CE")|("[url][browsername][/url]" ^ "Mobile Content=20>> Viewer")|("[url][browsername][/url]" ^ "Google CHTML=20>> Proxy")|("[url][browsername][/url]" ^=20>> "Palmsource")|("[url][browsername][/url]" ^=20>> "Nokia")|("[url][browsername][/url]" ^=20>> "Smartphone")|("[url][browsername][/url]" ^ "Opera=20>> 3.62")|("[url][browsername][/url]" ^ "Reqwirelessweb")]>> [Then][REDIRECT url=3Dmobile/index.html][/Then]>> [Else] Alternate redirect here, or leave blank if its=20>>self [/Else]>> [/if]>> ------------------->>>> Sure would be nice to see some type of standardization=20>>for this area=20>> in that industry. ... :-(>>>> Rob>>>>>> On 25-Mar-09, at 3:49 PM, Dan Strong wrote:>>>>> Rob,>>>>>> I'm curious how you (or anyone for that matter) is/are=20>>>handling=20>>> detection of other mobile devices. I have tried (and not=20>>>yet=20>>> resolved) a way to catch all (or as many) mobile devices=20>>>as I can so=20>>> I can serve mobile-friendly content.>>>>>> 1) I've thought about using the WRFL data source (=20>>> http://wurfl.sourceforge.net/ ) but it contains a lot of=20>>>irrelevant=20>>> (for my purposes) data and would require what appears to=20>>>be a great=20>>> deal of work and constant upkeep, and/or>>>>>> 2) http://detectmobilebrowsers.mobi/ - php script.=20>>>Haven't tried it.=20>>> Not against using php when I need to, but I try to do=20>>>things via WebDNA.>>>>>> 2) Detecting screen-size via javascript (if screen size=20>>>is under,=20>>> say, 400px wide then serve mobile.css) ... but that=20>>>won't always work=20>>> since not all mobile devices speak javascript...>>>>>> For now I'm doing like you are and detecting the most=20>>>popular=20>>> devices, but I'd really love to be able to catch them=20>>>all. It would=20>>> be nice if all mobile devices would add a standard=20>>>descriptor to=20>>> their USER AGENT header, like --mobile-- or=20>>>somethinglike that.=20>>> Anyhow, like I said, just curious.>>>>>> ** Cue the programmer with the "duh, you do it like this=20>>>with a=20>>> single line of code" response **>>> -Dan>>>>>>>>>>>> On Wed, 25 Mar 2009 14:55:29 -0600>>> Rob wrote:>>>> Yup.... Got it... Thanks..>>>> Works perfect! ... Thanks for all the help...>>>> Rob>>>> On 25-Mar-09, at 2:16 PM, Donovan Brooke wrote:>>>>> Rob wrote:>>>>>> Darn.... I gotta remember to use the online docs instead=20>>>>>>of my =20>>>>>> own... got to used to working alone before the revival=20>>>>>>.. ;-)>>>>>> Thanks Paul...>>>>>>>>>> You will want to encode browsername most likely..>>>>>>>>>> [if "[url][browsername][/url]"...>>>>>>>>>>>>>>> Donovan>>>>>>>>>>>>>>>>>>>> --=20>>>>> Donovan D. Brooke PH: 1 (608) 770-3822>>>>> ------------------------------------------------>>>>> VP>>>>> WebDNA Software Corporation>>>>> 16192 Coastal Highway>>>>> Lewes, DE 19958>>>>> --------------------------------------------------------->>>>> This message is sent to you because you are subscribed=20>>>>>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=20>>>>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=20>>>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=20>>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/
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:
Emailed problem (2000)
[DELETEFILE] via http (2003)
Help name our technology! (1997)
typhoon vs. webcatalog (1997)
PCS Frames (1997)
Looking up two prices in Formulas.db (1997)
[WebDNA] OLD list archives? (2010)
Great product and great job ! (1997)
GMT Date/Time (2000)
OT-JS question (2001)
F3 crashing server (1997)
StoreBuilder v4.0.2 Question (2001)
Running 2 two WebCatalog.acgi's (1996)
Authenticate (1997)
Some Advise needed (1997)
Re[3]: Charting records by state (2000)
DreamWeaver Extensions for Mac (2000)
WebCat 3.04-3.07 plug-in dying on server.... (2000)
Encrypting WebDNA Templates (1999)
Webstar 1.3.1 PPC (1997)