473,382 Members | 1,165 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,382 software developers and data experts.

help: javascript and blazer 4.0 (treo 650)

below is a simple dynamic option list. it doesn't seem to work on the
treo650, but works fine in pc-based browsers. can anyone give me some
insights into what i'm doing wrong? very much appreciated.

-4MLA1FN

------------------------
<html>
<head>
<title>dynamic link test</title>
<script type="text/javascript">
var store = new Array();
store['fb0'] = new Array('sub-foobar 0');
store['fb1'] = new Array('sub-foobar 1');

function populate() {
var box0 = document.dl.option0;
var box1 = document.dl.option1;

if (box0.selectedIndex != 0){
var number = box0.options[box0.selectedIndex].value;
var list = store[number];
box1.options.length = 0;
for(i=0;i<list.length;i++) {
box1.options[i] = new Option(list[i], list[i]);
}
} else {
box1.options.length = 0;
box1.options[0] = new Option("<-- Select option", "0");
}
}
</script>
</head>
<body>
<FORM name="dl" action="" method="post">
option 0:<br>
<SELECT SIZE="1" NAME="option0" onChange="populate()"
onkeyup="populate()">
<OPTION VALUE="0" >Select option</OPTION>
<OPTION VALUE="fb0">foobar 0</OPTION>
<OPTION VALUE="fb1">foobar 1</OPTION>
</SELECT>

<p></p>

option 1:<br>
<SELECT SIZE="1" NAME="option1">
<OPTION VALUE="0" selected>&lt;-- Select option</OPTION>
</SELECT>
</FORM>
</body>
</html>

4MLA1FN
Nov 2 '05 #1
14 1670
VK

4MLA1FN wrote:
below is a simple dynamic option list. it doesn't seem to work on the
treo650, but works fine in pc-based browsers. can anyone give me some
insights into what i'm doing wrong? very much appreciated.
Nothing *terribly* wrong in your code. My best guess would be about
this line:
box1.options[0] = new Option("<-- Select option", "0");


Usually "full support for all standards" is an ad crap and the real
mobil device abilities are much more humble.

Try the old way instead just to see if any reaction:

box1.options[0].text = 'New text';
box1.options[0].value = 'New value';

If it works by any chance than you stoke in a fancy mix of Netscape
JavaScript 1.3 and partly-curly implemented 2005 technologies (the
regular story). But maybe I'm just thinking too bad on Blazer. Check it
anyway.
<http://web.archive.org/web/20040827051054/devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/>

Nov 3 '05 #2
Lee
4MLA1FN said:

below is a simple dynamic option list. it doesn't seem to work on the
treo650, but works fine in pc-based browsers. can anyone give me some
insights into what i'm doing wrong? very much appreciated.


I don't believe the Blazer DOM supports the dynamic creation of
Option objects (or any other form elements).

Nov 3 '05 #3
On 2 Nov 2005 15:53:25 -0800, "VK" <sc**********@yahoo.com> wrote:
Try the old way instead just to see if any reaction:

box1.options[0].text = 'New text';
box1.options[0].value = 'New value';


hey, thanks alot for the response. i tried it in both places in the
script with no change. what a scam; palm says blazer 4.0 is 1.5
compliant. frustrating.
4MLA1FN
Nov 3 '05 #4
On 2 Nov 2005 15:55:58 -0800, Lee <RE**************@cox.net> wrote:
I don't believe the Blazer DOM supports the dynamic creation of
Option objects (or any other form elements).


thanks lee. is there a site that'll tell me what blazer 4.0 actually
supports? palm advertises it as javascript 1.5 compliant but i gather
this isn't exactly true. :(

4MLA1FN
Nov 3 '05 #5
4MLA1FN said the following on 11/3/2005 12:34 AM:
On 2 Nov 2005 15:55:58 -0800, Lee <RE**************@cox.net> wrote:

I don't believe the Blazer DOM supports the dynamic creation of
Option objects (or any other form elements).

thanks lee. is there a site that'll tell me what blazer 4.0 actually
supports? palm advertises it as javascript 1.5 compliant but i gather
this isn't exactly true. :(


http://www.palm.com/us/products/smar...650/blazer.epl

Says it is 1.5 compliant but obviously it isn't.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 3 '05 #6
4MLA1FN wrote:
On 2 Nov 2005 15:55:58 -0800, Lee <RE**************@cox.net> wrote:
I don't believe the Blazer DOM supports the dynamic creation of
Option objects (or any other form elements).


thanks lee. is there a site that'll tell me what blazer 4.0 actually
supports? palm advertises it as javascript 1.5 compliant but i gather
this isn't exactly true. :(


You have discovered that support for a particular version of JavaScript
does not guarantee (or even infer) support for any particular version of
the DOM.

--
Rob
Nov 3 '05 #7
Lee
4MLA1FN said:

On 2 Nov 2005 15:55:58 -0800, Lee <RE**************@cox.net> wrote:
I don't believe the Blazer DOM supports the dynamic creation of
Option objects (or any other form elements).


thanks lee. is there a site that'll tell me what blazer 4.0 actually
supports? palm advertises it as javascript 1.5 compliant but i gather
this isn't exactly true. :(


Creation of dynamic content has nothing to do with Javascript version
compliance. That's a matter of what DOM any particular browser makes
available to manipulate *with* Javascript 1.5.

Nov 4 '05 #8
VK

Lee wrote:
Creation of dynamic content has nothing to do with Javascript version
compliance. That's a matter of what DOM any particular browser makes
available to manipulate *with* Javascript 1.5.


IMHO that's a lawyer game to read it this way. JavaScript is the tool
to manipulate the data display on a web page (or retrieve/prepare data
to display). Otherwise why in the name it's needed for? To calculate
cosinus/tangens on the background? If you say to your users "fully
JavaScript 1.5 compliant" they read it as "you can do with our
implementation exactly what you used to do while designing regular
page".

The "proper reading" (however proper it *is* by itself) is alike
super-brevier sh** added in your contract; or a "super discounted"
appliance you have to pay separately for the battery; or other
commercial tricks.

Nov 4 '05 #9
On Thu, 03 Nov 2005 06:49:12 GMT, RobG <rg***@iinet.net.au> wrote:
You have discovered that support for a particular version of JavaScript
does not guarantee (or even infer) support for any particular version of
the DOM.


thanks robg. i had to look up what "DOM" meant and i agree with you.
javascript and DOM are independent creatures. now i'm pissed at palm
for their misleading advertising. what's the legal definition of
"compliant" anyway? :)

anyone know if the browser on (bite my tongue) windows mobile
smartphones are any better?? (the treo 700w will be out in few
months.)
Nov 4 '05 #10
On 4 Nov 2005 08:22:42 -0800, "VK" <sc**********@yahoo.com> wrote:
If you say to your users "fully
JavaScript 1.5 compliant" they read it as "you can do with our
implementation exactly what you used to do while designing regular
page".


yep, i agree. their advertisting had not footnotes to include fine
print like "javascript support limited by our semi-castrated DOM".
palm screwed up on this one. hey, let's start a class-action suit.
if they can do it for the nano, then surely we can get one also. :)
Nov 4 '05 #11
VK said the following on 11/4/2005 11:22 AM:
Lee wrote:
Creation of dynamic content has nothing to do with Javascript version
compliance. That's a matter of what DOM any particular browser makes
available to manipulate *with* Javascript 1.5.

IMHO that's a lawyer game to read it this way.


Thats why some people don't have a lot of respect for other peoples
"IMHO". In this case, your opinion is wrong.

JavaScript is the tool to manipulate the data display on a web page
(or retrieve/prepare data to display).
That is about 87 million kazillion miles from the total truth.
Otherwise why in the name it's needed for?
If you have to ask that question, you have no clue about answering the
first question.
To calculate cosinus/tangens on the background? If you say to your
users "fully JavaScript 1.5 compliant" they read it as "you can do with our
implementation exactly what you used to do while designing regular
page".
Then they do not understand scripting, the DOM, and the difference in
the two.
The "proper reading" (however proper it *is* by itself) is alike
super-brevier sh** added in your contract; or a "super discounted"
appliance you have to pay separately for the battery; or other
commercial tricks.


Only in the minds of people who don't understand the difference.

You can update the JS Engine in IE seperately from the browser. Does
that mean if a person using IE4 updates the JS Engine to JS5.6, that it
should also update the DOM? It doesn't because they are seperate entities.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 4 '05 #12
4MLA1FN said the following on 11/4/2005 2:35 PM:
On 4 Nov 2005 08:22:42 -0800, "VK" <sc**********@yahoo.com> wrote:

If you say to your users "fully
JavaScript 1.5 compliant" they read it as "you can do with our
implementation exactly what you used to do while designing regular
page".

yep, i agree. their advertisting had not footnotes to include fine
print like "javascript support limited by our semi-castrated DOM".


The DOM support was lacking, not the javascript support. The DOM and
scripting are entirely seperate issues.
palm screwed up on this one. hey, let's start a class-action suit.
if they can do it for the nano, then surely we can get one also. :)


That depends on what you define as "screwed up". The claim can actually
be 100% correct if the JS engine is indeed 1.5 compatible. It says
nothing about the DOM that it exposes.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 4 '05 #13
VK
> VK wrote:
JavaScript is the tool to manipulate the data display on a web page
(or retrieve/prepare data to display).
Randy Webb wrote:
That is about 87 million kazillion miles from the total truth.
VK wrote:
Just read the last 100-1000-5000 posts in this new group and check what
are people doing and what are they asking about. Unless of course you
think that clj attracts only "non-correct" people exclusively.
VK wrote:
Otherwise why in the name it's needed for?

Randy Webb wrote: If you have to ask that question, you have no clue about answering the
first question.
These were rhetorical questions. I know the answers.

VK wrote: To calculate cosinus/tangens on the background? If you say to your
users "fully JavaScript 1.5 compliant" they read it as "you can do with our
implementation exactly what you used to do while designing regular
page".
Randy Webb wrote: Then they do not understand scripting, the DOM, and the difference in
the two.
VK wrote:
They do understand that does good software and bad software mean. The "proper reading" (however proper it *is* by itself) is alike
super-brevier sh** added in your contract; or a "super discounted"
appliance you have to pay separately for the battery; or other
commercial tricks.


Randy Webb wrote: Only in the minds of people who don't understand the difference.


You really should be a used car salesman: you would make a career! :-)
I envisage you selling cars w/o motors and motors w/o cars for the
price of the full vehicle. You have a talent to stay strong in your
arguments no matter what. Unfortunately "non-correct" customers seem do
not want to eat your arguments (read the thread).
;-)

Nov 4 '05 #14
VK said the following on 11/4/2005 5:56 PM:
VK wrote:
JavaScript is the tool to manipulate the data display on a web page
(or retrieve/prepare data to display).

Randy Webb wrote:
That is about 87 million kazillion miles from the total truth.

VK wrote:
Just read the last 100-1000-5000 posts in this new group and check what
are people doing and what are they asking about. Unless of course you
think that clj attracts only "non-correct" people exclusively.


Your reasoning that the posts in this group are indicative of the 100%
uses of JS are flawed. Javascript can do a *lot* more than manipulate
data display on a webpage.
VK wrote:
To calculate cosinus/tangens on the background? If you say to your
users "fully JavaScript 1.5 compliant" they read it as "you can do with our
implementation exactly what you used to do while designing regular
page".

Randy Webb wrote:
Then they do not understand scripting, the DOM, and the difference in
the two.

VK wrote:
They do understand that does good software and bad software mean.


But the reason it is bad software is not what you are saying it is. It
is being said that the reason it is bad software is that it doesn't have
JS1.5 compatability when it does. The reason it is bad software (if it
is) is because of the DOM (or lack thereof) that it exposes to that
scripting.
The "proper reading" (however proper it *is* by itself) is alike
super-brevier sh** added in your contract; or a "super discounted"
appliance you have to pay separately for the battery; or other
commercial tricks.

Randy Webb wrote:
Only in the minds of people who don't understand the difference.

You really should be a used car salesman: you would make a career! :-)


Nah, I tried it once. I was too honest about things, as I am now.
I envisage you selling cars w/o motors and motors w/o cars for the
price of the full vehicle. You have a talent to stay strong in your
arguments no matter what. Unfortunately "non-correct" customers seem do
not want to eat your arguments (read the thread).


It is not that hard to have a strong argument when I am right. But I
would envisage you as selling cars with high interest rates and then
saying the car (after the sale) was a bad car because of it.

I still have not said it was a good product. I am saying the reasons you
are using to claim it is bad software are plain wrong.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

Nov 6 '05 #15

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

Similar topics

1
by: Jarrod Hyder | last post by:
Ok, I wrote my own weblog and I'm working on the web interface for adding/editing my posts. I decided to add a little preview button...when the button is clicked it is suppose to open a pop-up...
2
by: Paul Watson | last post by:
Has anyone done or worked on a port of Python to the Treo?
0
by: WPT Pro | last post by:
Is there way to make a keyboard automatically go into a "numeric mode" when the mobile app renders code for html or blazer clients? Example, a client with a TREO 650 running the blazer...
7
by: Papelotte | last post by:
Hi all, I'm new to this forum and I am hoping that there is someone here who can help me. I have an ASP page that has javascript that works perfectly in IE, but not in Firefox. Can anybody tell...
0
by: tpawleska | last post by:
Anyone know the correct steps to setting up exchange e-mail to work on a Treo 600 with Verizon. I am using it through pop now and it will automatically put the e-mails marked read in outlook. I...
4
by: -Lost | last post by:
I cannot for the life of me remember the site name, but I believe it was the site of one of the regular posters here or perhaps in comp.lang.java.javascript. Anyway... The site in particular...
1
by: 418928 | last post by:
Hi everybody, I would like to know if the way of communicating with an applet from Javascript is standard (valid for all web browsers). I know that JSObject (Applet->javascript) is not...
1
by: Harlan Messinger | last post by:
English Wikipedia allows registered users to define custom styles. I created a set of styles inside a @media handheld wrapper to see if I could override the default absolute positionings and floats...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.