Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-12 Thread Joe Buckshin
On 10/12/05, Neale Swinnerton <[EMAIL PROTECTED]> wrote:
> >
> > The problem is that my phone (and any I-Mode emulator) is bringing up
> > the html code in the WAP theme directory as a black screen. I thought
> > that this was because it was WML or something, but if it is indeed
> > html (it is! confirmed through firefox!) then something in the code is
> > not going over well with the chtml browser. I just have to identify
> > what is making the black screen...
> >
>
> Have you tried my patch?
>
> http://svn.mythtv.org/trac/ticket/327
>
> It might render a bit better, although I've only really tested on a SE
> P910i, the new handheld.css stylesheet my help
> ___
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

I would start with a little 'hello world' chtml page.  Put it on the
server and make sure your phone can see it.  Once you have established
that the connection is ok and the phone is able to display the content
you can start to modify the pages.  From what I understand, chtml is
stripped down html, and doesn't support certain tags.  You will
probably need to remove things like tables and images (depending on
the model phone you have).  Start reading through some of the chtml
specs to see what needs to be changed.

w3 spec:
http://www.w3.org/TR/1998/NOTE-compactHTML-19980209/

outline of docomo's extensions by browser level:
http://www.nttdocomo.co.jp/english/p_s/i/tag/s1.html

Also, some emulators have debug output to help you determine what
problems have occurred.

Joe
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-12 Thread Neale Swinnerton
>
> The problem is that my phone (and any I-Mode emulator) is bringing up
> the html code in the WAP theme directory as a black screen. I thought
> that this was because it was WML or something, but if it is indeed
> html (it is! confirmed through firefox!) then something in the code is
> not going over well with the chtml browser. I just have to identify
> what is making the black screen...
>

Have you tried my patch?

http://svn.mythtv.org/trac/ticket/327

It might render a bit better, although I've only really tested on a SE
P910i, the new handheld.css stylesheet my help
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-12 Thread Ciaran
On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> Great! That was a very clear explanation. So basically the WAP theme
> is sending out HTML.
>
> The problem is that my phone (and any I-Mode emulator) is bringing up
> the html code in the WAP theme directory as a black screen. I thought
> that this was because it was WML or something, but if it is indeed
> html (it is! confirmed through firefox!) then something in the code is
> not going over well with the chtml browser. I just have to identify
> what is making the black screen...
>
> Hmm...
>
> Can anyone give me a breakdown of what is called and in what order?
> I have figured out init.php and it now sends my phone to the chtml
> directory which I made (and copied the contents of WAP into). I could
> not find a "mobile.php" as Joe mentioned.
>
> Any ideas why this would be coming up black? (It looks like this wap
> directory HTML code is using javascript... maybe?)
>
> david

The mobile.php stuff is only in the recent SVN stuff, so it might be
worth considering moving to that in order to development, but
obviously that has a load of impacts ;)
- Ciaran
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-12 Thread David Bennett
Great! That was a very clear explanation. So basically the WAP theme
is sending out HTML.

The problem is that my phone (and any I-Mode emulator) is bringing up
the html code in the WAP theme directory as a black screen. I thought
that this was because it was WML or something, but if it is indeed
html (it is! confirmed through firefox!) then something in the code is
not going over well with the chtml browser. I just have to identify
what is making the black screen...

Hmm...

Can anyone give me a breakdown of what is called and in what order?
I have figured out init.php and it now sends my phone to the chtml
directory which I made (and copied the contents of WAP into). I could
not find a "mobile.php" as Joe mentioned.

Any ideas why this would be coming up black? (It looks like this wap
directory HTML code is using javascript... maybe?)

david


On 10/12/05, Joe Buckshin <[EMAIL PROTECTED]> wrote:
> On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> > On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > > Sorry I should rephrase what I wrote:
> > >
> > > I believe that when people mention WAP, they usually mean both WML and
> > > the WAP protocol (or if not WML then some kind of HTML that is not
> > > HTML compatible. It uses different tags for accepting inputs etc.)
> > >
> > > Basically what I am looking for is an HTML theme that displays the
> > > same information that the WAP (whatever is in the WAP directory) with
> > > the same dimensions. It looks perfect on Firefox which is able to read
> > > the WAP page.
> > >
> > > Ideally I would just copy the HTML page and readjust it for the phone
> > > browser, but since the WAP theme (ie. the wap theme directory) looks
> > > like it would fit nicely on my mobile screen, I would like to make the
> > > code HTML compatible & sent over IP (ie. not WAP).
> > >
> > > Does this make any sense? Any ideas?
> > > Is there perhaps a quick way to pear down the HTML theme to something
> > > similar to whats in the WAP theme, or is this not so easy?
> > >
> > > Thank you,
> > > David
> > >
> > >
> > > On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> > > > On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > > > > I am trying to convert the Mythweb Mobile WAP theme so that it is
> > > > > usable on mobile devices that do not support WAP (chtml) (ie. I-Mode)
> > > > I'm not quite sure where this confusion comes from, but WAP is a
> > > > transmission protocol rather than a display meta-language, but the
> > > > code seems to have this apparent confusion too :(
> > > >
> > > > >
> > > > > Essentially I need the same format (table layout, sizes, menus) as the
> > > > > WAP version, without all the WAP code. I am trying to get things off
> > > > > the ground, but I can't find where MythWEB identifies itself as a WAP
> > > > > page.
> > > > MythWeb appears to support two mobile styles, the first one is 'WML'
> > > > and the second is 'HTML'.  Both can be sent over WAP or over IP
> > > > (GPRS).  It is dependant on the formats the mobile device can support.
> > > > >
> > > > > Is there a .WML file that is being sent? How does the WAP theme
> > > > > identify itself as a WAP theme?
> > > >
> > > > The mobile device sends HTTP-ACCEPT + User-Agent headers up to the
> > > > mythweb application.  Mythweb interprets these two headers and decides
> > > > a) Is this a mobile device and b) What type of content should we send
> > > > down.
> > > >
> > > > i.e. If the User-Agent = Nokia something-or-other it says, okey we
> > > > have a mobile device, and if there is a HTTP-ACCEPT header of
> > > > text/html, it will send down the Mobile HTML theme otherwise it will
> > > > send down the WML theme i've submitted a patch to SVN/Trac that
> > > > fixes the case where the mobile device submits a HTTP-ACCEPT of */* so
> > > > doesn't get sent the html, when it should.
> > > > >
> > > > > Am I making any sense?
> > > >
> > > > Does this help at all ? [disclaimer: this understanding has come from
> > > > taking apart the code in SVN, I may be wrong, I didn't write it :) ]
> > >
> > Hmm, apparently I wasn't that clear, there is already a mobile-html
> > theme [I believe] that looks great on my phone, (which happens to
> > support both html + wml anyway) layout wise I think its pretty close
> > to the wml theme.  So you should be able to start with the php that
> > generates that and convert it to generate C-Html (since you mentioned
> > i-mode I assume thats what you really want?)
> >
> > Unfortunately I've not got access to the code right now to check that
> > what I'm saying is true, but I think what I'm saying is correct,
> > hopefully someone who knows more than me can say for sure :)
> >
> > --
> > - Ciaran
> > (I now have far too many G-Mail invites available, anyone who wants
> > one, gets one)
> > ___
> > mythtv-users mailing list
> > mythtv-users@mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
>
> MythWe

Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-12 Thread Ciaran
On 12/10/05, Joe Buckshin <[EMAIL PROTECTED]> wrote:
> On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> > On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > > Sorry I should rephrase what I wrote:
> > >
> > > I believe that when people mention WAP, they usually mean both WML and
> > > the WAP protocol (or if not WML then some kind of HTML that is not
> > > HTML compatible. It uses different tags for accepting inputs etc.)
> > >
> > > Basically what I am looking for is an HTML theme that displays the
> > > same information that the WAP (whatever is in the WAP directory) with
> > > the same dimensions. It looks perfect on Firefox which is able to read
> > > the WAP page.
> > >
> > > Ideally I would just copy the HTML page and readjust it for the phone
> > > browser, but since the WAP theme (ie. the wap theme directory) looks
> > > like it would fit nicely on my mobile screen, I would like to make the
> > > code HTML compatible & sent over IP (ie. not WAP).
> > >
> > > Does this make any sense? Any ideas?
> > > Is there perhaps a quick way to pear down the HTML theme to something
> > > similar to whats in the WAP theme, or is this not so easy?
> > >
> > > Thank you,
> > > David
> > >
> > >
> > > On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> > > > On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > > > > I am trying to convert the Mythweb Mobile WAP theme so that it is
> > > > > usable on mobile devices that do not support WAP (chtml) (ie. I-Mode)
> > > > I'm not quite sure where this confusion comes from, but WAP is a
> > > > transmission protocol rather than a display meta-language, but the
> > > > code seems to have this apparent confusion too :(
> > > >
> > > > >
> > > > > Essentially I need the same format (table layout, sizes, menus) as the
> > > > > WAP version, without all the WAP code. I am trying to get things off
> > > > > the ground, but I can't find where MythWEB identifies itself as a WAP
> > > > > page.
> > > > MythWeb appears to support two mobile styles, the first one is 'WML'
> > > > and the second is 'HTML'.  Both can be sent over WAP or over IP
> > > > (GPRS).  It is dependant on the formats the mobile device can support.
> > > > >
> > > > > Is there a .WML file that is being sent? How does the WAP theme
> > > > > identify itself as a WAP theme?
> > > >
> > > > The mobile device sends HTTP-ACCEPT + User-Agent headers up to the
> > > > mythweb application.  Mythweb interprets these two headers and decides
> > > > a) Is this a mobile device and b) What type of content should we send
> > > > down.
> > > >
> > > > i.e. If the User-Agent = Nokia something-or-other it says, okey we
> > > > have a mobile device, and if there is a HTTP-ACCEPT header of
> > > > text/html, it will send down the Mobile HTML theme otherwise it will
> > > > send down the WML theme i've submitted a patch to SVN/Trac that
> > > > fixes the case where the mobile device submits a HTTP-ACCEPT of */* so
> > > > doesn't get sent the html, when it should.
> > > > >
> > > > > Am I making any sense?
> > > >
> > > > Does this help at all ? [disclaimer: this understanding has come from
> > > > taking apart the code in SVN, I may be wrong, I didn't write it :) ]
> > >
> > Hmm, apparently I wasn't that clear, there is already a mobile-html
> > theme [I believe] that looks great on my phone, (which happens to
> > support both html + wml anyway) layout wise I think its pretty close
> > to the wml theme.  So you should be able to start with the php that
> > generates that and convert it to generate C-Html (since you mentioned
> > i-mode I assume thats what you really want?)
> >
> > Unfortunately I've not got access to the code right now to check that
> > what I'm saying is true, but I think what I'm saying is correct,
> > hopefully someone who knows more than me can say for sure :)
> >
> > --
> > - Ciaran
> > (I now have far too many G-Mail invites available, anyone who wants
> > one, gets one)
> > ___
> > mythtv-users mailing list
> > mythtv-users@mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
>
> MythWeb Theme rundown:
>
> "Default"
> Outputs: HTML, JavaScript, CSS
> Intended Browsers: Full blown browsers (IE, FireFox, etc)
>
> "vxml"
> Outputs: VoiceXML
> Intended Browsers: MythPhone
>
> "wap"
> Outputs: HTML
> Intended Browsers: newer Mobile phones (openwave 6+, opera for mobile) and 
> PDAs
>
> "wml"
> Outputs: WML
> Intended Browsers: Mobile phone (which do not support html or xhtml-mp)
>
> The wap theme is misnamed.  As stated above, WAP is a protocol just
> like HTTP.  I would suggest creating a new theme (perhaps chtml would
> be a proper name) and using the wap theme as a guide.  You will also
> need to modify the browser detection code in init.php and mobile.php
> to detect your phone from the user agent and to define your new theme.
>  One problem is that there is no mime type for chtml (in most cases
> text/html is used) so using htp

Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-12 Thread Joe Buckshin
On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > Sorry I should rephrase what I wrote:
> >
> > I believe that when people mention WAP, they usually mean both WML and
> > the WAP protocol (or if not WML then some kind of HTML that is not
> > HTML compatible. It uses different tags for accepting inputs etc.)
> >
> > Basically what I am looking for is an HTML theme that displays the
> > same information that the WAP (whatever is in the WAP directory) with
> > the same dimensions. It looks perfect on Firefox which is able to read
> > the WAP page.
> >
> > Ideally I would just copy the HTML page and readjust it for the phone
> > browser, but since the WAP theme (ie. the wap theme directory) looks
> > like it would fit nicely on my mobile screen, I would like to make the
> > code HTML compatible & sent over IP (ie. not WAP).
> >
> > Does this make any sense? Any ideas?
> > Is there perhaps a quick way to pear down the HTML theme to something
> > similar to whats in the WAP theme, or is this not so easy?
> >
> > Thank you,
> > David
> >
> >
> > On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> > > On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > > > I am trying to convert the Mythweb Mobile WAP theme so that it is
> > > > usable on mobile devices that do not support WAP (chtml) (ie. I-Mode)
> > > I'm not quite sure where this confusion comes from, but WAP is a
> > > transmission protocol rather than a display meta-language, but the
> > > code seems to have this apparent confusion too :(
> > >
> > > >
> > > > Essentially I need the same format (table layout, sizes, menus) as the
> > > > WAP version, without all the WAP code. I am trying to get things off
> > > > the ground, but I can't find where MythWEB identifies itself as a WAP
> > > > page.
> > > MythWeb appears to support two mobile styles, the first one is 'WML'
> > > and the second is 'HTML'.  Both can be sent over WAP or over IP
> > > (GPRS).  It is dependant on the formats the mobile device can support.
> > > >
> > > > Is there a .WML file that is being sent? How does the WAP theme
> > > > identify itself as a WAP theme?
> > >
> > > The mobile device sends HTTP-ACCEPT + User-Agent headers up to the
> > > mythweb application.  Mythweb interprets these two headers and decides
> > > a) Is this a mobile device and b) What type of content should we send
> > > down.
> > >
> > > i.e. If the User-Agent = Nokia something-or-other it says, okey we
> > > have a mobile device, and if there is a HTTP-ACCEPT header of
> > > text/html, it will send down the Mobile HTML theme otherwise it will
> > > send down the WML theme i've submitted a patch to SVN/Trac that
> > > fixes the case where the mobile device submits a HTTP-ACCEPT of */* so
> > > doesn't get sent the html, when it should.
> > > >
> > > > Am I making any sense?
> > >
> > > Does this help at all ? [disclaimer: this understanding has come from
> > > taking apart the code in SVN, I may be wrong, I didn't write it :) ]
> >
> Hmm, apparently I wasn't that clear, there is already a mobile-html
> theme [I believe] that looks great on my phone, (which happens to
> support both html + wml anyway) layout wise I think its pretty close
> to the wml theme.  So you should be able to start with the php that
> generates that and convert it to generate C-Html (since you mentioned
> i-mode I assume thats what you really want?)
>
> Unfortunately I've not got access to the code right now to check that
> what I'm saying is true, but I think what I'm saying is correct,
> hopefully someone who knows more than me can say for sure :)
>
> --
> - Ciaran
> (I now have far too many G-Mail invites available, anyone who wants
> one, gets one)
> ___
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

MythWeb Theme rundown:

"Default"
Outputs: HTML, JavaScript, CSS
Intended Browsers: Full blown browsers (IE, FireFox, etc)

"vxml"
Outputs: VoiceXML
Intended Browsers: MythPhone

"wap"
Outputs: HTML
Intended Browsers: newer Mobile phones (openwave 6+, opera for mobile) and PDAs

"wml"
Outputs: WML
Intended Browsers: Mobile phone (which do not support html or xhtml-mp)

The wap theme is misnamed.  As stated above, WAP is a protocol just
like HTTP.  I would suggest creating a new theme (perhaps chtml would
be a proper name) and using the wap theme as a guide.  You will also
need to modify the browser detection code in init.php and mobile.php
to detect your phone from the user agent and to define your new theme.
 One problem is that there is no mime type for chtml (in most cases
text/html is used) so using htp_accept probably will not work.  Also,
I would suggest starting with an emulator rather that using the phone
to develop and debug.

As an aside, I'd like to see what people think about using the WURFL
project http://wurfl.sourceforge.net to detect browser features.  W

Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-11 Thread Ciaran
On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> Sorry I should rephrase what I wrote:
>
> I believe that when people mention WAP, they usually mean both WML and
> the WAP protocol (or if not WML then some kind of HTML that is not
> HTML compatible. It uses different tags for accepting inputs etc.)
>
> Basically what I am looking for is an HTML theme that displays the
> same information that the WAP (whatever is in the WAP directory) with
> the same dimensions. It looks perfect on Firefox which is able to read
> the WAP page.
>
> Ideally I would just copy the HTML page and readjust it for the phone
> browser, but since the WAP theme (ie. the wap theme directory) looks
> like it would fit nicely on my mobile screen, I would like to make the
> code HTML compatible & sent over IP (ie. not WAP).
>
> Does this make any sense? Any ideas?
> Is there perhaps a quick way to pear down the HTML theme to something
> similar to whats in the WAP theme, or is this not so easy?
>
> Thank you,
> David
>
>
> On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> > On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > > I am trying to convert the Mythweb Mobile WAP theme so that it is
> > > usable on mobile devices that do not support WAP (chtml) (ie. I-Mode)
> > I'm not quite sure where this confusion comes from, but WAP is a
> > transmission protocol rather than a display meta-language, but the
> > code seems to have this apparent confusion too :(
> >
> > >
> > > Essentially I need the same format (table layout, sizes, menus) as the
> > > WAP version, without all the WAP code. I am trying to get things off
> > > the ground, but I can't find where MythWEB identifies itself as a WAP
> > > page.
> > MythWeb appears to support two mobile styles, the first one is 'WML'
> > and the second is 'HTML'.  Both can be sent over WAP or over IP
> > (GPRS).  It is dependant on the formats the mobile device can support.
> > >
> > > Is there a .WML file that is being sent? How does the WAP theme
> > > identify itself as a WAP theme?
> >
> > The mobile device sends HTTP-ACCEPT + User-Agent headers up to the
> > mythweb application.  Mythweb interprets these two headers and decides
> > a) Is this a mobile device and b) What type of content should we send
> > down.
> >
> > i.e. If the User-Agent = Nokia something-or-other it says, okey we
> > have a mobile device, and if there is a HTTP-ACCEPT header of
> > text/html, it will send down the Mobile HTML theme otherwise it will
> > send down the WML theme i've submitted a patch to SVN/Trac that
> > fixes the case where the mobile device submits a HTTP-ACCEPT of */* so
> > doesn't get sent the html, when it should.
> > >
> > > Am I making any sense?
> >
> > Does this help at all ? [disclaimer: this understanding has come from
> > taking apart the code in SVN, I may be wrong, I didn't write it :) ]
>
Hmm, apparently I wasn't that clear, there is already a mobile-html
theme [I believe] that looks great on my phone, (which happens to
support both html + wml anyway) layout wise I think its pretty close
to the wml theme.  So you should be able to start with the php that
generates that and convert it to generate C-Html (since you mentioned
i-mode I assume thats what you really want?)

Unfortunately I've not got access to the code right now to check that
what I'm saying is true, but I think what I'm saying is correct,
hopefully someone who knows more than me can say for sure :)

--
- Ciaran
(I now have far too many G-Mail invites available, anyone who wants
one, gets one)
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-11 Thread David Bennett
Sorry I should rephrase what I wrote:

I believe that when people mention WAP, they usually mean both WML and
the WAP protocol (or if not WML then some kind of HTML that is not
HTML compatible. It uses different tags for accepting inputs etc.)

Basically what I am looking for is an HTML theme that displays the
same information that the WAP (whatever is in the WAP directory) with
the same dimensions. It looks perfect on Firefox which is able to read
the WAP page.

Ideally I would just copy the HTML page and readjust it for the phone
browser, but since the WAP theme (ie. the wap theme directory) looks
like it would fit nicely on my mobile screen, I would like to make the
code HTML compatible & sent over IP (ie. not WAP).

Does this make any sense? Any ideas?
Is there perhaps a quick way to pear down the HTML theme to something
similar to whats in the WAP theme, or is this not so easy?

Thank you,
David


On 10/12/05, Ciaran <[EMAIL PROTECTED]> wrote:
> On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> > I am trying to convert the Mythweb Mobile WAP theme so that it is
> > usable on mobile devices that do not support WAP (chtml) (ie. I-Mode)
> I'm not quite sure where this confusion comes from, but WAP is a
> transmission protocol rather than a display meta-language, but the
> code seems to have this apparent confusion too :(
>
> >
> > Essentially I need the same format (table layout, sizes, menus) as the
> > WAP version, without all the WAP code. I am trying to get things off
> > the ground, but I can't find where MythWEB identifies itself as a WAP
> > page.
> MythWeb appears to support two mobile styles, the first one is 'WML'
> and the second is 'HTML'.  Both can be sent over WAP or over IP
> (GPRS).  It is dependant on the formats the mobile device can support.
> >
> > Is there a .WML file that is being sent? How does the WAP theme
> > identify itself as a WAP theme?
>
> The mobile device sends HTTP-ACCEPT + User-Agent headers up to the
> mythweb application.  Mythweb interprets these two headers and decides
> a) Is this a mobile device and b) What type of content should we send
> down.
>
> i.e. If the User-Agent = Nokia something-or-other it says, okey we
> have a mobile device, and if there is a HTTP-ACCEPT header of
> text/html, it will send down the Mobile HTML theme otherwise it will
> send down the WML theme i've submitted a patch to SVN/Trac that
> fixes the case where the mobile device submits a HTTP-ACCEPT of */* so
> doesn't get sent the html, when it should.
> >
> > Am I making any sense?
>
> Does this help at all ? [disclaimer: this understanding has come from
> taking apart the code in SVN, I may be wrong, I didn't write it :) ]
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-11 Thread Ciaran
On 12/10/05, David Bennett <[EMAIL PROTECTED]> wrote:
> I am trying to convert the Mythweb Mobile WAP theme so that it is
> usable on mobile devices that do not support WAP (chtml) (ie. I-Mode)
I'm not quite sure where this confusion comes from, but WAP is a
transmission protocol rather than a display meta-language, but the
code seems to have this apparent confusion too :(

>
> Essentially I need the same format (table layout, sizes, menus) as the
> WAP version, without all the WAP code. I am trying to get things off
> the ground, but I can't find where MythWEB identifies itself as a WAP
> page.
MythWeb appears to support two mobile styles, the first one is 'WML'
and the second is 'HTML'.  Both can be sent over WAP or over IP
(GPRS).  It is dependant on the formats the mobile device can support.
>
> Is there a .WML file that is being sent? How does the WAP theme
> identify itself as a WAP theme?

The mobile device sends HTTP-ACCEPT + User-Agent headers up to the
mythweb application.  Mythweb interprets these two headers and decides
a) Is this a mobile device and b) What type of content should we send
down.

i.e. If the User-Agent = Nokia something-or-other it says, okey we
have a mobile device, and if there is a HTTP-ACCEPT header of
text/html, it will send down the Mobile HTML theme otherwise it will
send down the WML theme i've submitted a patch to SVN/Trac that
fixes the case where the mobile device submits a HTTP-ACCEPT of */* so
doesn't get sent the html, when it should.
>
> Am I making any sense?

Does this help at all ? [disclaimer: this understanding has come from
taking apart the code in SVN, I may be wrong, I didn't write it :) ]
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] Converting MythWEB WAP theme to chtml

2005-10-11 Thread David Bennett
I am trying to convert the Mythweb Mobile WAP theme so that it is
usable on mobile devices that do not support WAP (chtml) (ie. I-Mode)

Essentially I need the same format (table layout, sizes, menus) as the
WAP version, without all the WAP code. I am trying to get things off
the ground, but I can't find where MythWEB identifies itself as a WAP
page.

Is there a .WML file that is being sent? How does the WAP theme
identify itself as a WAP theme?

Am I making any sense?
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users