Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
25
rated 0 times [  31] [ 6]  / answers: 1 / hits: 26487  / 15 Years ago, thu, july 9, 2009, 12:00:00

I'm getting a Object doesn't support this property or method error, does anyone know why?



I do have values plugged into userId, fname, lname, oname, sam, hasAccess



function Employee(id, fname, lname, oname, sam, access) {
this.id = id;
this.fname = fname;
this.lname = lname;
this.oname = oname
this.sam = sam;
this.access = access;
}

var emp = new Employee(userId, fname, lname, oname, sam, hasAccess);

var jsonstuff = emp.toSource(); //Breaking here


Although this link says its possible http://www.w3schools.com/jsref/jsref_toSource_date.asp


More From » javascript

 Answers
10

toSource() does not work in Internet Explorer or Safari. It is Gecko-only. See Implementing Mozilla's toSource() method in Internet Explorer for alternatives.


[#99158] Monday, July 6, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jacie

Total Points: 490
Total Questions: 111
Total Answers: 105

Location: Mali
Member since Sat, Feb 12, 2022
2 Years ago
;