Re: [WebDNA] I'm stuck... :-(
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102243
interpreted = N
texte = First one worked, second did not.>Here is a test of both methods if anyone wants to=20>confirm:>>Using REFERRER>http://kalvanna.com/mobile2.dna>>Using GETMIMEHEADER>http://kalvanna.com/mobile3.dna>>Not sure why the second one didn't work with the=20>iphone... :-( .. would have been a heck of a lot=20>easier...>>Rob>>On 25-Mar-09, at 5:03 PM, Rob wrote:>>> Just tried this on the Iphone... doesn't seem to detect=20>>it... :-(>>>> Rob>>>>>> On 25-Mar-09, at 4:52 PM, Psi Prime, Matthew A Perosi=20>>wrote:>>>>> I'm using this code right now.>>> I have not tested it on every phone imaginable, but it=20>>>seems to =20>>> work for most smart phones I've tested.... Although it's=20>>>not tested =20>>> 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 =20>>>> much to do with the site involved. I think its just=20>>>>being handled =20>>>> generically, much like yours. I did notice on the newer=20>>>>=20>>>> blackberry's and iphones, it renders correctly, but on=20>>>>the older =20>>>> styles a lot of positional elements are off. It looks=20>>>>like its =20>>>> just set to a standard width of 320. I know the person=20>>>>working on =20>>>> it is on this list, and its up to him if he wishes to=20>>>>expand on it =20>>>> more.>>>>>>>> The detection was actually the easy part, and even=20>>>>easier now with =20>>>> the list help. I would imagine you could expand on it=20>>>>and detect =20>>>> size as well, but that would probably take a few hours=20>>>>to dump =20>>>> them all in, and months to find them all. With the shelf=20>>>>live of =20>>>> must phones, I think we'll just stick to the newer=20>>>>versions. Here =20>>>> is a link to the file I used, but for the most part, I=20>>>>went thru =20>>>> some of the server logs for the site involved, as the=20>>>>list didn't =20>>>> seem up to date. I haven't even heard of half these=20>>>>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-=discussion-index/>>>>>>>> And what I'm currently using is this:>>>> --------------->>>> [If ("[url][browsername][/url]" ^=20>>>>"iPhone")|("[url][browsername][/=20>>>> url]" ^ "Blackberry")|("[url][browsername][/url]" ^=20>>>>"Samsung")|=20>>>> ("[url][browsername][/url]" ^=20>>>>"Motorola")|("[url][browsername][/=20>>>> url]" ^ "HTC")|("[url][browsername][/url]" ^=20>>>>"Casio")|("[url]=20>>>> [browsername][/url]" ^=20>>>>"Orange")|("[url][browsername][/url]" ^ "T-=20>>>> Mobile")|("[url][browsername][/url]" ^ "Pocket=20>>>>PC")|("[url]=20>>>> [browsername][/url]" ^ "Opera=20>>>>Mini")|("[url][browsername][/url]" ^ =20>>>> "Sharp")|("[url][browsername][/url]" ^=20>>>>"Cingular")|("[url]=20>>>> [browsername][/url]" ^=20>>>>"SonyEricsson")|("[url][browsername][/url]" =20>>>> ^ "Palm")|("[url][browsername][/url]" ^ "Windows=20>>>>CE")|("[url]=20>>>> [browsername][/url]" ^ "Mobile Content Viewer")|("[url]=20>>>> [browsername][/url]" ^ "Google CHTML=20>>>>Proxy")|("[url][browsername][/=20>>>> url]" ^ "Palmsource")|("[url][browsername][/url]" ^=20>>>>"Nokia")|=20>>>> ("[url][browsername][/url]" ^=20>>>>"Smartphone")|("[url][browsername][/=20>>>> url]" ^ "Opera 3.62")|("[url][browsername][/url]" ^ =20>>>> "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 =20>>>> area 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 =20>>>>> so I can serve mobile-friendly content.>>>>>>>>>> 1) I've thought about using the WRFL data source (=20>>>>>http://wurfl.sourceforge.net/=20>>>>> ) but it contains a lot of irrelevant (for my purposes)=20>>>>>data and =20>>>>> would require what appears to be a great deal of work=20>>>>>and =20>>>>> constant upkeep, and/or>>>>>>>>>> 2) http://detectmobilebrowsers.mobi/ - php script.=20>>>>>Haven't tried =20>>>>> it. Not against using php when I need to, but I try to=20>>>>>do things =20>>>>> 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 =20>>>>> work 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 =20>>>>> would be nice if all mobile devices would add a standard=20>>>>>=20>>>>> descriptor to their USER AGENT header, like --mobile--=20>>>>>or =20>>>>> somethinglike that. 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 =20>>>>>>>> my own... got to used to working alone before the =20>>>>>>>> revival .. ;-)>>>>>>>> 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=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:
First one worked, second did not.>Here is a test of both methods if anyone wants to=20>confirm:>>Using REFERRER>http://kalvanna.com/mobile2.dna>>Using GETMIMEHEADER>http://kalvanna.com/mobile3.dna>>Not sure why the second one didn't work with the=20>iphone... :-( .. would have been a heck of a lot=20>easier...>>Rob>>On 25-Mar-09, at 5:03 PM, Rob wrote:>>> Just tried this on the Iphone... doesn't seem to detect=20>>it... :-(>>>> Rob>>>>>> On 25-Mar-09, at 4:52 PM, Psi Prime, Matthew A Perosi=20>>wrote:>>>>> I'm using this code right now.>>> I have not tested it on every phone imaginable, but it=20>>>seems to =20>>> work for most smart phones I've tested.... Although it's=20>>>not tested =20>>> 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 =20>>>> much to do with the site involved. I think its just=20>>>>being handled =20>>>> generically, much like yours. I did notice on the newer=20>>>>=20>>>> blackberry's and iphones, it renders correctly, but on=20>>>>the older =20>>>> styles a lot of positional elements are off. It looks=20>>>>like its =20>>>> just set to a standard width of 320. I know the person=20>>>>working on =20>>>> it is on this list, and its up to him if he wishes to=20>>>>expand on it =20>>>> more.>>>>>>>> The detection was actually the easy part, and even=20>>>>easier now with =20>>>> the list help. I would imagine you could expand on it=20>>>>and detect =20>>>> size as well, but that would probably take a few hours=20>>>>to dump =20>>>> them all in, and months to find them all. With the shelf=20>>>>live of =20>>>> must phones, I think we'll just stick to the newer=20>>>>versions. Here =20>>>> is a link to the file I used, but for the most part, I=20>>>>went thru =20>>>> some of the server logs for the site involved, as the=20>>>>list didn't =20>>>> seem up to date. I haven't even heard of half these=20>>>>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-=discussion-index/>>>>>>>> And what I'm currently using is this:>>>> --------------->>>> [If ("[url][browsername][/url]" ^=20>>>>"iPhone")|("[url][browsername][/=20>>>> url]" ^ "Blackberry")|("[url][browsername][/url]" ^=20>>>>"Samsung")|=20>>>> ("[url][browsername][/url]" ^=20>>>>"Motorola")|("[url][browsername][/=20>>>> url]" ^ "HTC")|("[url][browsername][/url]" ^=20>>>>"Casio")|("[url]=20>>>> [browsername][/url]" ^=20>>>>"Orange")|("[url][browsername][/url]" ^ "T-=20>>>> Mobile")|("[url][browsername][/url]" ^ "Pocket=20>>>>PC")|("[url]=20>>>> [browsername][/url]" ^ "Opera=20>>>>Mini")|("[url][browsername][/url]" ^ =20>>>> "Sharp")|("[url][browsername][/url]" ^=20>>>>"Cingular")|("[url]=20>>>> [browsername][/url]" ^=20>>>>"SonyEricsson")|("[url][browsername][/url]" =20>>>> ^ "Palm")|("[url][browsername][/url]" ^ "Windows=20>>>>CE")|("[url]=20>>>> [browsername][/url]" ^ "Mobile Content Viewer")|("[url]=20>>>> [browsername][/url]" ^ "Google CHTML=20>>>>Proxy")|("[url][browsername][/=20>>>> url]" ^ "Palmsource")|("[url][browsername][/url]" ^=20>>>>"Nokia")|=20>>>> ("[url][browsername][/url]" ^=20>>>>"Smartphone")|("[url][browsername][/=20>>>> url]" ^ "Opera 3.62")|("[url][browsername][/url]" ^ =20>>>> "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 =20>>>> area 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 =20>>>>> so I can serve mobile-friendly content.>>>>>>>>>> 1) I've thought about using the WRFL data source (=20>>>>>http://wurfl.sourceforge.net/=20>>>>> ) but it contains a lot of irrelevant (for my purposes)=20>>>>>data and =20>>>>> would require what appears to be a great deal of work=20>>>>>and =20>>>>> constant upkeep, and/or>>>>>>>>>> 2) http://detectmobilebrowsers.mobi/ - php script.=20>>>>>Haven't tried =20>>>>> it. Not against using php when I need to, but I try to=20>>>>>do things =20>>>>> 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 =20>>>>> work 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 =20>>>>> would be nice if all mobile devices would add a standard=20>>>>>=20>>>>> descriptor to their USER AGENT header, like --mobile--=20>>>>>or =20>>>>> somethinglike that. 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 =20>>>>>>>> my own... got to used to working alone before the =20>>>>>>>> revival .. ;-)>>>>>>>> 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=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:
Sendmail Question (2001)
WebCatalog [FoundItems] Problem - LONG - (1997)
' add to cart ' or ' sku ' problem (1998)
problems with WebCat-Plugin (1997)
absolute paths for databases? (1997)
Country & Ship-to address & other fields ? (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Errata: WCS Newbie question (1997)
Practice runs ? (1997)
emailer (1997)
How did *you* learn Web Catalog? (2000)
deadlock (2000)
[WebDNA] Middle Question (2015)
Separate SSL Server (1997)
Cart Question (1998)
WebDNA Codes in Secure Mode (1997)
[click][/click] (1999)
problems with 2 tags shakur (1997)
[WebDNA] Dynamic vertical columns (2008)
Fun with dates (1997)