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

syntax question

Hi all,
Although I am a developer - I never coded in javascript.

Now, here I am trying to order a laptop from the Dell online shop but
everytime I try to press 'continue' after picking the options, I get
an error message in the lower left hand corner of the browser.
I'm using WIN 98SE with java enabled on my laptop.

The error log says:
Line: 1
Char: 1
error: object expected
code: 0

And this is the line which pops up when I place the cursor on the
'continue' button causing the above error:

javascript:next_page('1','c=us&cs=19&kc=6V602&l=en &oc=5100FS&s=dhs');

I would assume there's a bug in that line. Although there's little I
can do about it other than forward it to the Dell folks - my pgming
background has me curious as to what's causing this!
Perhaps I have some settings set wrong on my laptop.

Thanks ....

Aren't 'puters fun?;-))

-=tom=-

Jul 20 '05 #1
8 1719
"Tom Orle" <xs********@att.net> wrote in message
news:2l********************************@4ax.com...
Now, here I am trying to order a laptop from the Dell online
shop but everytime I try to press 'continue' after picking the
options, I get an error message in the lower left hand corner
of the browser. I'm using WIN 98SE with java enabled on my laptop.

The error log says:
Line: 1
Char: 1
error: object expected
code: 0
That error message usually relates to event handling code. Mozilla and
Opera both generate better (more informative (usually)) error messages
than IE (in their JavaScript consoles).
And this is the line which pops up when I place the cursor
on the 'continue' button causing the above error:

javascript:next_page('1','c=us&cs=19&kc=6V602&l=e n&oc=5100FS&s=dhs');
It is a pity that you have omitted the HTML context so that we cannot
tell whether this is an HREF abuse or an onclick handler. It is probably
the latter, in which the "javascript:" prefix is usually
unnecessary/meaningless (but also harmless).

The only object that is referred to is the - next_page -function, so
that identifier cannot be resolved. That should not happen and certainly
should have shown up in QA testing.

Interestingly, this code represents Dell making their online purchasing
needlessly dependent on JavaScript, I wonder how much this decision is
costing them in lost business even without the code being erroneous.

It is unfortunately the case that there is a (mistaken) attitude that
any fool can write JavaScript, which manifests itself in fools often
being given the task of writing JavaScript. This fool is costing Dell
more than they are loosing due to their decision to make purchases
needlessly dependent on JavaScript(assuming it actually was a decision
rather than just another consequence of assigning the task to someone
who knew no better).
I would assume there's a bug in that line. Although there's
little I can do about it other than forward it to the Dell
folks - my pgming background has me curious as to what's
causing this!


The failure to resolve the identifier as a reference to a function
implies that the error is elsewhere, but if the function code is missing
then there is not much that can be doe about it. If the function
reference is being overwritten, or the function definition is in some
way incorrect then there may be some remedial action that you could take
(at least if you knew JavaScript/HTML well enough).

Perhaps I have some settings set wrong on my laptop.

No, you have done nothing wrong. The fault is entirely with Dell, and
you should maybe ask yourself whether it is a good idea to be doing
computer related business with a company that cannot even implement a
web purchasing system properly, there is no shortage of competition in
the computer retailing world.

Richard.
Jul 20 '05 #2
Richard Cornford wrote:
"Tom Orle" <xs********@att.net> wrote in message
news:2l********************************@4ax.com...
<--snip-->
And this is the line which pops up when I place the cursor
on the 'continue' button causing the above error:

javascript:next_page('1','c=us&cs=19&kc=6V602&l= en&oc=5100FS&s=dhs');

It is a pity that you have omitted the HTML context so that we cannot
tell whether this is an HREF abuse or an onclick handler. It is probably
the latter, in which the "javascript:" prefix is usually
unnecessary/meaningless (but also harmless).


What browsers display the onclick handler upon mouseover? 99.99% of the
time, if it shows that in the status bar (or a tooltip), it is generally
a sign of this:

<a href="javascript:.......">

--
Randy

Jul 20 '05 #3
"Randy Webb" <hi************@aol.com> wrote in message
news:qP********************@comcast.com...
<snip>
What browsers display the onclick handler upon mouseover? 99.99% of
the time, if it shows that in the status bar (or a tooltip), it is
generally a sign of this:

<a href="javascript:.......">


Good point! Its HREF abuse, though the error report sounded more like an
event handler. Though I don't see error reports from javascript: pseudo
protocol code often because I never use them ;-)

Richard.
Jul 20 '05 #4
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote:
It is a pity that you have omitted the HTML context so that we cannot
tell whether this is an HREF abuse or an onclick handler.


Richard,
That's because it's a large piece of code ;-))
(won't fit in the notebook!)
Here's the line that contains the probllem line:

....<a name="bottom_anchor"></a></td><td width=10>&nbsp;</td>
<td width=125><a
href="javascript:next_page('1','c=us&cs=19&kc=6V60 3&l=en&oc=5150FS&s=dhs');"
class="lnk"><img
src="http://img.dell.com/img.aspx?p=cnvEY3QAxpmMra5pPAKeMiksUgDeqQR3YLPndy9 bnjR9ajxW1LVMblr%2frCZ7VpcpNHVNYdSpXUtd5KImew3M"
border="0" vspace="4" alt="Continue"></a> ....

-=tom=-
Jul 20 '05 #5
In article <2l********************************@4ax.com>,
xs********@att.net says...
Hi all,
Although I am a developer - I never coded in javascript.

Now, here I am trying to order a laptop from the Dell online shop but
everytime I try to press 'continue' after picking the options, I get
an error message in the lower left hand corner of the browser.
I'm using WIN 98SE with java enabled on my laptop.

The error log says:
Line: 1
Char: 1
error: object expected
code: 0

And this is the line which pops up when I place the cursor on the
'continue' button causing the above error:

javascript:next_page('1','c=us&cs=19&kc=6V602&l=en &oc=5100FS&s=dhs');

I would assume there's a bug in that line. Although there's little I
can do about it other than forward it to the Dell folks - my pgming
background has me curious as to what's causing this!
Perhaps I have some settings set wrong on my laptop.


URL? It could be that the JS isn't loading properly and the next_page()
functions doesn't exist.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #6
Tom Orle wrote:
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote:

It is a pity that you have omitted the HTML context so that we cannot
tell whether this is an HREF abuse or an onclick handler.

Richard,
That's because it's a large piece of code ;-))
(won't fit in the notebook!)
Here's the line that contains the probllem line:

href="javascript:next_page('1','c=us&cs=19&kc=6V60 3&l=en&oc=5150FS&s=dhs');"


Richard?? <g>

--
Randy

Jul 20 '05 #7
.
Nor am i, but

javascript:next_page('1'............

surely there's something wrong with the previous line

ctr

"Hywel Jenkins" <hy**********@hotmail.com> wrote in message
news:MP************************@news.individual.ne t...
In article <2l********************************@4ax.com>,
xs********@att.net says...
Hi all,
Although I am a developer - I never coded in javascript.

Now, here I am trying to order a laptop from the Dell online shop but
everytime I try to press 'continue' after picking the options, I get
an error message in the lower left hand corner of the browser.
I'm using WIN 98SE with java enabled on my laptop.

The error log says:
Line: 1
Char: 1
error: object expected
code: 0

And this is the line which pops up when I place the cursor on the
'continue' button causing the above error:

javascript:next_page('1','c=us&cs=19&kc=6V602&l=en &oc=5100FS&s=dhs');

I would assume there's a bug in that line. Although there's little I
can do about it other than forward it to the Dell folks - my pgming
background has me curious as to what's causing this!
Perhaps I have some settings set wrong on my laptop.


URL? It could be that the JS isn't loading properly and the next_page()
functions doesn't exist.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php

Jul 20 '05 #8
In article <UN**************@newsfep3-gui.server.ntli.net>,
ne**@proscan.demon.co.uk says...
"Hywel Jenkins" <hy**********@hotmail.com> wrote in message
news:MP************************@news.individual.ne t...
In article <2l********************************@4ax.com>,
xs********@att.net says...
Hi all,
Although I am a developer - I never coded in javascript.

Now, here I am trying to order a laptop from the Dell online shop but
everytime I try to press 'continue' after picking the options, I get
an error message in the lower left hand corner of the browser.
I'm using WIN 98SE with java enabled on my laptop.

The error log says:
Line: 1
Char: 1
error: object expected
code: 0

And this is the line which pops up when I place the cursor on the
'continue' button causing the above error:

javascript:next_page('1','c=us&cs=19&kc=6V602&l=en &oc=5100FS&s=dhs');

I would assume there's a bug in that line. Although there's little I
can do about it other than forward it to the Dell folks - my pgming
background has me curious as to what's causing this!
Perhaps I have some settings set wrong on my laptop.
URL? It could be that the JS isn't loading properly and the next_page()
functions doesn't exist.

Nor am i, but

javascript:next_page('1'............

surely there's something wrong with the previous line


I don't know why you're replying to me, but there is no previous line -
this code is in the href of a link.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #9

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

Similar topics

2
by: Trimbitas Sorin | last post by:
Hello I have a simple syntax question : What does the following line mean: 1: %checkType; ?? I know that @test="" is an array and $test="" is a simple variable. Thank you With best regards...
3
by: Mike | last post by:
I have done this before in VB but I am realitively new to C#. I have a datagrid where the first bound column represents the identity column from the table. I have designated that first bound column...
2
by: Colin McGuire | last post by:
Sorry to ask a simple question on syntax but the line inside the subroutine "assignBitmapArray" won't compile giving me an "Expression Expected" error. What is the correct syntax to initialize an...
5
by: pwsmeister | last post by:
I'm fairly new to javascript, my take on the below code is that it is creating a array called event and populating it with 3 functions( add, remove and DOMit). Is my take on this code correct? ...
11
by: deppy_3 | last post by:
Hi! The syntax of fputs() is similar with the syntax of fgets(); For example if we have:fgets(str,maxlen,stdin) which is the syntax of the fputs();
12
by: Yusuf | last post by:
I'm sorry for the second post in as many hours, and both about structs. The code below compiles. The variables test1 and test2 are structures of datatype teststruct1 and teststruct2. The size of...
2
by: JJA | last post by:
I'm looking at some code I do not understand: var icons = new Array(); icons = new GIcon(); icons.image = "somefilename.png"; I read this as an array of icons is being built. An element of...
11
by: Frankie | last post by:
I have been learning about the AsyncOperation class and came across this code (sorry I got it a few days ago and don't remember the specific link). Anyway, I am wondering what the tilde (~) on...
2
by: movieking81 | last post by:
Hello All, I have a simply syntax question. I'm new to PHP, but I have worked with ASP for years. Can you reference a database field on an html page with PHP the same way you can with ASP. For...
6
by: Daniel | last post by:
I hope this question is OK for this list. I've downloaded Rpyc and placed it in my site packages dir. On some machines it works fine, on others not so much. Here is one error I get when I try...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.