473,407 Members | 2,676 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,407 software developers and data experts.

Object expected error in doReq

1
I display an image on the screen and when clicked, it is to display an FAQ page

Here is the html code, which when clicked gives an error "object expected". I use the exact code in a diffrent program without any problems

Expand|Select|Wrap|Line Numbers
  1. <td ><img id='obj' src='images/Help2Big.gif'            style='cursor:hand;' alt='Frequently Asked Questions'  onclick="doReq('faq',this.pg);" ></td>               
  2.  
  3.  
Here is the javacript

Expand|Select|Wrap|Line Numbers
  1. <script>
  2. function doReq(obj, loc)
  3. {
  4.     Switch (obj)
  5.     {
  6.         Case "faq":
  7.            window.showModalDialog("Faq.asp","Dialog Arguments Value","dialogHeight:800px; dialogWidth: 500px; edge: Raised; center: Yes; help: No; resizable: NO; status: No;");
  8.                 break;    
  9.     }
  10. }
  11. </script>
  12.  
Help appreciated
Mar 21 '11 #1
0 1306

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: TAM | last post by:
Hi, I have a simple JavaScript code that ensures that all the form fields are filled and there is also a function that checks if the email is a valid address. For some reason IE is giving...
2
by: crjunk | last post by:
I'm receiving an "Object Expected" Error (Line:28, Char:7). I'm confused as to what is happening. I have virtually the same exact function in a different web page and I do not receive an error...
4
by: Kiyomi | last post by:
Hello, I am trying to replace my alert message box with a popup page. In my page behind,
1
by: StevePBurgess | last post by:
I am using a script (see below) to check if cookies are enabled on my website. The script seems to work but I get an Object Expected error. The error repor says it is at the line incidated by the...
4
by: loserdude84 | last post by:
Hi I keep getting the good old error 'Object Expected Error' on a site I recently built. I am really struggling with this one. Object Expected Error Line 66 <div...
1
by: JOJO123 | last post by:
I got here in search of an answer to this Javascrpt question. I upgraded jave on XP Ie 7, acrobat 5.1 and suddenly can't open any pdf files on web sites using IE. I see u guys all say, this is a...
1
by: tgorton | last post by:
I am having a problem running a javascript function as part of an html-el:form onsubmit. The problem seems to exists in IE6 but not in Firefox. html: <html-el:form action="${target}"...
6
by: ducks1010 | last post by:
I get an error message with the below page of Object Expected, Error Code 0. The page loads fine except for the flash code, which is connected to AC_RUnActiveContent.js. The page works fine on a...
1
by: ducks1010 | last post by:
I get an error message with the below page of Object Expected, Error Code 0. The page loads fine except for the flash code, which is connected to AC_RUnActiveContent.js. The page works fine on a...
2
by: jc | last post by:
I'm trying the below and getting OBJECT EXPECTED error in javascript. On my aspx page I have this java script block: <script language="javascript" type="text/javascript"> function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
0
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,...
0
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,...
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...
0
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...
0
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...

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.