HTML/ASPX WinCE question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • EMW

    #1

    HTML/ASPX WinCE question

    Hi,

    I use the following to start my ASPX:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>index</title>
    <meta name="vs_defaul tClientScript" content="JavaSc ript">
    <meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
    <meta name="ProgId" content="Visual Studio.HTML">
    <meta name="Originato r" content="Micros oft Visual Studio .NET 7.1">


    <script language="JavaS cript">
    function size()
    {
    var scr_w = screen.availWid th;
    var scr_h = screen.availHei ght;
    }
    </script>
    </head>
    <body>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
    <P style="FONT-SIZE: xx-large; COLOR: gray; FONT-FAMILY: 'Lucida
    Calligraphy'" align="center"> Loading........ </P>
    <P>
    <script language="Javas cript">
    <!--
    if (top.location != self.location) {top.location = self.location.h ref}
    //-->
    </script>
    <script language="JavaS cript">
    var scr_w =document.body. clientWidth;
    var scr_h = document.body.c lientHeight;

    window.location = 'fshome.aspx?wi dth='+scr_w+',h eight='+scr_h
    </script>
    </P>
    </body>
    </html>

    This all is in the index.html file.
    Now I want the FSHOME.ASPX page to send the user to the mobile page when he
    enters the site-adres.
    But for some reason the above file does not continue, the fshome.aspx
    doesn't seem to get loaded.

    Is there something wrong in the file that windows mobile 2003 does not know?

    rg,
    Eric


  • Adrienne

    #2
    Re: HTML/ASPX WinCE question

    Gazing into my crystal ball I observed "EMW" <SomeOne@MicroS oftdotCom>
    writing in news:40f570d9$0 $62389$5fc3050@ dreader2.news.t iscali.nl:
    [color=blue]
    > Hi,
    >
    > I use the following to start my ASPX:[/color]

    Well, in the first place, it's terribly bloated, and not even valid markup.
    [color=blue]
    >
    ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">[/color]

    You should be using Strict for new documents.
    [color=blue]
    ><html>[/color]

    You are not defining the language.
    [color=blue]
    ><head> <title>index</title>[/color]

    What an original title! How about something that actually tells the
    visitor what they are looking at?
    [color=blue]
    > <meta name="vs_defaul tClientScript" content="JavaSc ript">
    > <meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
    > <meta name="ProgId" content="Visual Studio.HTML">
    > <meta name="Originato r" content="Micros oft Visual Studio .NET 7.1">[/color]

    Useless.
    [color=blue]
    >
    >
    > <script language="JavaS cript">
    > function size()
    > {
    > var scr_w = screen.availWid th;
    > var scr_h = screen.availHei ght;
    > }
    > </script>[/color]

    And for people with javascript disabled?
    [color=blue]
    > </head>
    > <body>
    > <P>&nbsp;</P>
    > <P>&nbsp;</P>
    > <P>&nbsp;</P>
    > <P>&nbsp;</P>[/color]

    Why the blank paragraphs?
    [color=blue]
    > <P style="FONT-SIZE: xx-large; COLOR: gray; FONT-FAMILY: 'Lucida
    > Calligraphy'" align="center"> Loading........ </P>[/color]

    And people who do not have Lucida Calligraphy? There is no background
    color defined. Someone with a gray background is going to not see
    anything.
    [color=blue]
    > <P>
    > <script language="Javas cript">
    > <!--
    > if (top.location != self.location) {top.location = self.location.h ref}
    > //-->
    > </script>
    > <script language="JavaS cript">
    > var scr_w =document.body. clientWidth;
    > var scr_h = document.body.c lientHeight;
    >
    > window.location = 'fshome.aspx?wi dth='+scr_w+',h eight='+scr_h
    > </script>[/color]

    Scripts should be in the head section of a document. Script language is
    depreciated. You should use <script type="text/javascript">. Again, this
    is not going to work for persons without javascript. Better to do a server
    side redirect.
    [color=blue]
    > </P>
    > </body>
    ></html>
    >
    > This all is in the index.html file.
    > Now I want the FSHOME.ASPX page to send the user to the mobile page
    > when he enters the site-adres.
    > But for some reason the above file does not continue, the fshome.aspx
    > doesn't seem to get loaded.
    >
    > Is there something wrong in the file that windows mobile 2003 does not
    > know?
    >
    > rg,
    > Eric
    >
    >
    >[/color]


    --
    Adrienne Boswell
    Please respond to the group so others can share

    Comment

    • EMW

      #3
      Re: HTML/ASPX WinCE question

      All this file is doing is detecting what the screensize is and then let te
      ASPX program know about it.
      If there is a way to not using this, but detect the screensize of the client
      from ASPX let me know, otherwise this is the only way to do so.

      rg,
      Eric



      "Adrienne" <arbpen2003@sbc global.net> schreef in bericht
      news:Xns9526C30 19B6E7arbpenyah oocom@207.115.6 3.158...[color=blue]
      > Gazing into my crystal ball I observed "EMW" <SomeOne@MicroS oftdotCom>
      > writing in news:40f570d9$0 $62389$5fc3050@ dreader2.news.t iscali.nl:
      >[color=green]
      > > Hi,
      > >
      > > I use the following to start my ASPX:[/color]
      >
      > Well, in the first place, it's terribly bloated, and not even valid[/color]
      markup.[color=blue]
      >[color=green]
      > >
      > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">[/color]
      >
      > You should be using Strict for new documents.
      >[color=green]
      > ><html>[/color]
      >
      > You are not defining the language.
      >[color=green]
      > ><head> <title>index</title>[/color]
      >
      > What an original title! How about something that actually tells the
      > visitor what they are looking at?
      >[color=green]
      > > <meta name="vs_defaul tClientScript" content="JavaSc ript">
      > > <meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
      > > <meta name="ProgId" content="Visual Studio.HTML">
      > > <meta name="Originato r" content="Micros oft Visual Studio .NET 7.1">[/color]
      >
      > Useless.
      >[color=green]
      > >
      > >
      > > <script language="JavaS cript">
      > > function size()
      > > {
      > > var scr_w = screen.availWid th;
      > > var scr_h = screen.availHei ght;
      > > }
      > > </script>[/color]
      >
      > And for people with javascript disabled?
      >[color=green]
      > > </head>
      > > <body>
      > > <P>&nbsp;</P>
      > > <P>&nbsp;</P>
      > > <P>&nbsp;</P>
      > > <P>&nbsp;</P>[/color]
      >
      > Why the blank paragraphs?
      >[color=green]
      > > <P style="FONT-SIZE: xx-large; COLOR: gray; FONT-FAMILY: 'Lucida
      > > Calligraphy'" align="center"> Loading........ </P>[/color]
      >
      > And people who do not have Lucida Calligraphy? There is no background
      > color defined. Someone with a gray background is going to not see
      > anything.
      >[color=green]
      > > <P>
      > > <script language="Javas cript">
      > > <!--
      > > if (top.location != self.location) {top.location = self.location.h ref}
      > > //-->
      > > </script>
      > > <script language="JavaS cript">
      > > var scr_w =document.body. clientWidth;
      > > var scr_h = document.body.c lientHeight;
      > >
      > > window.location = 'fshome.aspx?wi dth='+scr_w+',h eight='+scr_h
      > > </script>[/color]
      >
      > Scripts should be in the head section of a document. Script language is
      > depreciated. You should use <script type="text/javascript">. Again, this
      > is not going to work for persons without javascript. Better to do a[/color]
      server[color=blue]
      > side redirect.
      >[color=green]
      > > </P>
      > > </body>
      > ></html>
      > >
      > > This all is in the index.html file.
      > > Now I want the FSHOME.ASPX page to send the user to the mobile page
      > > when he enters the site-adres.
      > > But for some reason the above file does not continue, the fshome.aspx
      > > doesn't seem to get loaded.
      > >
      > > Is there something wrong in the file that windows mobile 2003 does not
      > > know?
      > >
      > > rg,
      > > Eric
      > >
      > >
      > >[/color]
      >
      >
      > --
      > Adrienne Boswell
      > Please respond to the group so others can share
      > http://www.arbpen.com[/color]


      Comment

      Working...