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

object expected error in IE8

I am getting an error object expected in IE8 for following code. Could anybody help?
Expand|Select|Wrap|Line Numbers
  1. $(function() {
  2. $('.password').pstrength();
  3. });
This is the highlighted code out of the following code.


Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. $(function() {
  3. $('.password').pstrength();
  4. });
  5. checked=false;
  6. function checkedAll (myform) { 
  7. var aa= document.getElementById('myform');
  8. if (checked == false)
  9. {
  10.    checked = true
  11. }
  12. else
  13. {
  14.    checked = false
  15. }
  16. for (var i =0; i<aa.elements.length; i++) 
  17. {
  18.  aa.elements[i].checked = checked;
  19. }
  20. }
  21.  
  22. function check_emailid(){
  23. if (trim(document.add_emailid.subject.value) == "")
  24. {
  25.     alert ("Plese subject name.");
  26.     return false;
  27. }
  28. if(trim(document.add_emailid.mail_id.value)!="")
  29. {
  30.    var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
  31.    var address = document.add_emailid.mail_id.value;
  32.    if(reg.test(address) == false) {
  33.     alert('Invalid Email Address');
  34.   return false;
  35.      }
  36. }
  37. }
  38. function trim(str) { 
  39.     if (str != null) {
  40.         var i; 
  41.         for (i=0; i<str.length; i++) {
  42.             if (str.charAt(i)!=" ") {
  43.                 str=str.substring(i,str.length); 
  44.                 break;
  45.             } 
  46.         } 
  47.  
  48.         for (i=str.length-1; i>=0; i--) {
  49.             if (str.charAt(i)!=" ") {
  50.                 str=str.substring(0,i+1); 
  51.                 break;
  52.             } 
  53.         } 
  54.  
  55.         if (str.charAt(0)==" ") {
  56.             return ""; 
  57.         } else {
  58.             return str; 
  59.         }
  60.     }
  61. }
  62.  
  63. </script>
Mar 12 '11 #1
2 3288
Object Expected Error for following code:-

$(function() {
$('.password').pstrength();
});
Mar 12 '11 #2
acoder
16,027 Expert Mod 8TB
I assume this is a plugin that you're using. Have you followed the instructions for installation/setup?
Mar 14 '11 #3

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

Similar topics

4
by: Danny | last post by:
Hi I don't understand why I keep getting "Error: Object expected" I tried different things and haven't been able to solve it. I'm a newbie so I'm not sure what I'm doing wrong. The debugger breaks...
11
by: westplastic | last post by:
This one is driving me insane. The script works perfect on Firefox, but Internet Explorer keeps complaining about "Error Object Expected" and stuff like that. I've run it through Firefox's Java...
8
by: ipy2006 | last post by:
In my HTML I have, <input type="button" class="cartonsumkey" value="Sum Cartons" onclick="sumup(this);" /> In an external file that is called in Head area, I have, function sumup( o ) { ...
2
by: khalaskapil | last post by:
i m getting Object Expected error, i m using master page & i m call javascript function in child age: this is my child page where i m calling javascript functionNewCal(), <div> ...
1
ashsa
by: ashsa | last post by:
Hi all, I am getting an error in my page saying that A Runtime Error has occured. Do you wish to debug ? Line : 509 Error : Object Expected Could the Line number indicated be of any use...
5
by: Diego Ruiz | last post by:
Hi!! my english is not too good, but i'll try it I have a javascript code: function executeCommands(inputparms) { // Instantiate the Shell object and invoke its execute method. ...
7
by: juliejam | last post by:
Hello all, I am new here and hope some kind, smarter than me person can help. I am getting the error object expected with the following code: function click(e); here the error says it...
4
by: jiyesong | last post by:
I get the following error on a website at home, but not at work. Error: object expected Could it be an internet setting?
5
by: lefterist | last post by:
Good afternoon, I 've got the followin code to validate a form, and get the "error:object expected (line 171 char. 1, line 172, char 2)" even if i tried to solve it (parentheses, function syntax...
7
by: Ibys | last post by:
hi, hoping i have posted this in the right section this time :) i am doing my javascript still, and cant figure out why i keep getting an error: object expected message for validateform() im just...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.