help: javascript and blazer 4.0 (treo 650)

4

4MLA1FN

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 = new Option(list, list);
}
} 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
 
V

VK

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.

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/20040827...ibrary/manuals/2000/javascript/1.3/reference/>
 
L

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).
 
4

4MLA1FN

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
 
4

4MLA1FN

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
 
R

RobG

4MLA1FN said:
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.
 
L

Lee

4MLA1FN said:
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.
 
V

VK

Lee said:
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.
 
4

4MLA1FN

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.)
 
4

4MLA1FN

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. :)
 
R

Randy Webb

VK said the following on 11/4/2005 11:22 AM:
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.
 
R

Randy Webb

4MLA1FN said the following on 11/4/2005 2:35 PM:
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.
 
V

VK

Randy said:
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.

Randy said:
If you have to ask that question, you have no clue about answering the
first question.

These were rhetorical questions. I know the answers.

Randy said:
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.
Randy said:
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).
;-)
 
R

Randy Webb

VK said the following on 11/4/2005 5:56 PM:
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:
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.
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top