Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with web page for pda/phones

Status
Not open for further replies.

IBACFII

Programmer
Sep 2, 2004
76
US
I am trying to make my page accessable fro my bosses phone/PDA which i know he would like to have. I have tried using javascript to do this however his pda/phone doesnt seem to be able to run javascripts. I have a sized down version that would be quick for DL so that is out of the way the only thing left to to be able to send him there.
here is some of my javascript just in case that is a problem. I have searched the pages in Tek-tips and not found the post that relates to this.
Code:
<SCRIPT LANGUAGE ="JavaScript">
<!--
var browser_name = navigator.appName;
	var strNav = navigator.userAgent;
	var isCE = strNav.indexOf("Windows CE");
	var isPPC = strNav.indexOf("240x320");

	if ((screen.availWidth<251) || (screen.availHeight<251) || (isPPC > -1))
	{
	window.location = "Palm_index.html";
	}

}
-->

</script>

Thanks
IBACFII
 

Is he definately running Windows CE?

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Thanks for you help in advance.


I couldn't get that out of him before he left but I have heard that the screen.availWidth could take care of this as long as it had a screen.availWidth< a specified value. This should also catch cellphones and the like or at least that was my way of thinking.

this way if the screen.availWidth<251
or windows CE
or screen.availHeight<251
then it would return true.

Thought on this??? Any way he doesn't seem to be able to run javascript as is the reason for this post here. If he could run Javascript then I would have probably never tackled this project. As is though he is the boss and I am not so here I am.

IBACFII
 
OH BTW he CAN use CSS for some reason.

IBACFII
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top