473,604 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1726
"Tom Orle" <xs********@att .net> wrote in message
news:2l******** *************** *********@4ax.c om...
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:nex t_page('1','c=u s&cs=19&kc=6V60 2&l=en&oc=5100F S&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(assu ming 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.c om...
<--snip-->
And this is the line which pops up when I place the cursor
on the 'continue' button causing the above error:

javascript:ne xt_page('1','c= us&cs=19&kc=6V6 02&l=en&oc=5100 FS&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="javascrip t:.......">

--
Randy

Jul 20 '05 #3
"Randy Webb" <hi************ @aol.com> wrote in message
news:qP******** ************@co mcast.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="javascrip t:.......">


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*****@litote s.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_an chor"></a></td><td width=10>&nbsp; </td>
<td width=125><a
href="javascrip t:next_page('1' ,'c=us&cs=19&kc =6V603&l=en&oc= 5150FS&s=dhs'); "
class="lnk"><im g
src="http://img.dell.com/img.aspx?p=cnvE Y3QAxpmMra5pPAK eMiksUgDeqQR3YL Pndy9bnjR9ajxW1 LVMblr%2frCZ7Vp cpNHVNYdSpXUtd5 KImew3M"
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*****@litote s.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="javascrip t:next_page('1' ,'c=us&cs=19&kc =6V603&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**********@h otmail.com> wrote in message
news:MP******** *************** *@news.individu al.net...
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.de mon.co.uk says...
"Hywel Jenkins" <hy**********@h otmail.com> wrote in message
news:MP******** *************** *@news.individu al.net...
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
1727
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 Trimbitas Sorin
3
1000
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 to be hidden. I need to provide update capibilities to my datagrid and therefore I need to be able to reference the value in that first column. Could someone please share with me the correct syntax on how to do that with a hidden column?
2
1151
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 array of Objects/Bitmaps? Thank you Colin Public Structure testStruct Dim testBitmap() As Bitmap
5
2379
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? var event = { add: function(obj, etype, fp) { obj.attachEvent("on" + etype, fp); },
11
5202
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
3982
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 testintArray is explictly set to 2 and 3 in teststruct1 and teststruct2. I want to define a generic structure so that testintArray points to an array of ints. The generic structure I have written is teststruct3. What I can't seem to figure out...
2
2495
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 the array is an object itself but what is this syntax of the consecutive double quotes inside the brackets ?
11
11215
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 line 12 does or what it means. I've been using C# for a while and somehow haven't encountered the tilde yet. Thanks. 1. namespace System.ComponentModel
2
1092
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 example in ASP you can have something like so... <td width="100%"><%=recordset("somecolumn")%></td> However, I've noticed in PHP you must do something like this...
6
2555
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 to import it: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python25\lib\site-packages\Rpyc\__init__.py", line 7, in <module>
0
7997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8419
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8409
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8065
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6739
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5882
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3907
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1526
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.