By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

Object expected error in doReq

P: 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
Share this question for a faster answer!
Share on Google+

Post your reply

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