473,320 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

HTML/ASPX WinCE question

EMW
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_defaultClientScript" content="JavaScript">
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="ProgId" content="VisualStudio.HTML">
<meta name="Originator" content="Microsoft Visual Studio .NET 7.1">
<script language="JavaScript">
function size()
{
var scr_w = screen.availWidth;
var scr_h = screen.availHeight;
}
</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="Javascript">
<!--
if (top.location != self.location) {top.location = self.location.href}
//-->
</script>
<script language="JavaScript">
var scr_w =document.body.clientWidth;
var scr_h = document.body.clientHeight;

window.location = 'fshome.aspx?width='+scr_w+',height='+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
Nov 22 '05 #1
2 1703
Gazing into my crystal ball I observed "EMW" <SomeOne@MicroSoftdotCom>
writing in news:40**********************@dreader2.news.tiscal i.nl:
Hi,

I use the following to start my ASPX:
Well, in the first place, it's terribly bloated, and not even valid markup.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
You should be using Strict for new documents.
<html>
You are not defining the language.
<head> <title>index</title>
What an original title! How about something that actually tells the
visitor what they are looking at?
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="ProgId" content="VisualStudio.HTML">
<meta name="Originator" content="Microsoft Visual Studio .NET 7.1">
Useless.


<script language="JavaScript">
function size()
{
var scr_w = screen.availWidth;
var scr_h = screen.availHeight;
}
</script>
And for people with javascript disabled?
</head>
<body>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
Why the blank paragraphs?
<P style="FONT-SIZE: xx-large; COLOR: gray; FONT-FAMILY: 'Lucida
Calligraphy'" align="center">Loading........</P>
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.
<P>
<script language="Javascript">
<!--
if (top.location != self.location) {top.location = self.location.href}
//-->
</script>
<script language="JavaScript">
var scr_w =document.body.clientWidth;
var scr_h = document.body.clientHeight;

window.location = 'fshome.aspx?width='+scr_w+',height='+scr_h
</script>
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.
</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 Boswell
Please respond to the group so others can share
http://www.arbpen.com
Nov 22 '05 #2
EMW
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" <ar********@sbcglobal.net> schreef in bericht
news:Xn****************************@207.115.63.158 ...
Gazing into my crystal ball I observed "EMW" <SomeOne@MicroSoftdotCom>
writing in news:40**********************@dreader2.news.tiscal i.nl:
Hi,

I use the following to start my ASPX:
Well, in the first place, it's terribly bloated, and not even valid

markup.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
You should be using Strict for new documents.
<html>


You are not defining the language.
<head> <title>index</title>


What an original title! How about something that actually tells the
visitor what they are looking at?
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="ProgId" content="VisualStudio.HTML">
<meta name="Originator" content="Microsoft Visual Studio .NET 7.1">


Useless.


<script language="JavaScript">
function size()
{
var scr_w = screen.availWidth;
var scr_h = screen.availHeight;
}
</script>


And for people with javascript disabled?
</head>
<body>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>


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


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.
<P>
<script language="Javascript">
<!--
if (top.location != self.location) {top.location = self.location.href}
//-->
</script>
<script language="JavaScript">
var scr_w =document.body.clientWidth;
var scr_h = document.body.clientHeight;

window.location = 'fshome.aspx?width='+scr_w+',height='+scr_h
</script>


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.
</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 Boswell
Please respond to the group so others can share
http://www.arbpen.com

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: //\\//\\RLe | last post by:
We are testing one of the CASIO hand device on WinCE and wireless module... while trying to run any Oracle Forms in web browser found that we need JavaInitiator for WinCE and... can't find any on...
2
by: EMW | last post by:
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_defaultClientScript"...
1
by: Beyers | last post by:
Hi We are using active sync to connect VS.NET to a WinCE hardware platform for debuggging the application we are writing for this platform. It worked well for a month, and now all of a sudden...
1
by: Frederic_BD | last post by:
Hello! I am trying to get a list of all the process running on WinCE. I first developed my code on NT (which is working fine) and now I am porting it to WinCE 4.20. I am using embedded Visual...
2
by: parth_mca | last post by:
i want to start WinCE programming in vb.net... which version of visual studio.net supports winCE programming for PocketPC ? and where should i start from...?
2
by: bokiteam | last post by:
Hi All, I am developing a WinCE project, when I include datagrid, it says no define.. could you please advice? it works on Win32 project by the same code... Thank you very much for you...
3
by: pcm | last post by:
Hi, Has anyone ever worked on a Python-WinCE-based program that involved serial port management ? Regards, Philippe
1
by: TheSebaster | last post by:
I wrote the following lines of code under Microsoft Visual Studio 2005: I compile my WinCE c++ application importing MyInterop.tlb generated file. The MyInterop.tlh generated file do not contain my...
0
by: Thanuja | last post by:
Hi please anyone help me. I am using wince API for sending request to server with range header field. I am giving range field as "Range:bytes=0-500"; The problem is request is going to server...
0
saranjegan
by: saranjegan | last post by:
Can we develop winCE application in visual C++ which version will support it.. thanks for your time
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.