Discuss general web development related issues. For Opera bugs, use the Bug Report Wizard: https://bugs.opera.com/wizard/. For Opera feature requests and queries, use Desktop wish-list: http://my.opera.com/community/forums/forum.dml?id=24.
By Andyroo56
Saturday, 31. October 2009, 19:30:25

Opera javascript error
I am working on a site called optimal resume. Although I'm sure this problem extends to other sites. I try to load my resume in the resume builder and it gives me the following error from the error console:
JavaScript -
https://ucalgary.optimalresume.ca/modules/resume/edit.php?docid=19102Event thread: load
Error:
name: TypeError
message: Statement on line 5: Type mismatch (usually non-object value supplied where object required)
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace
Then i try to click on one of the interactive buttons on the side that allows you to modify your resume and I get the following error:
JavaScript -
https://ucalgary.optimalresume.ca/modules/resume/edit.php?docid=19102Event thread: click
Unhandled exception: "Syntax error, unrecognized expression: #"
I know that when I work on firefox or internet explorer I don't get this problem.
Can anybody help me?
Thanks!
By sigbjornfinne
Monday, 2. November 2009, 08:31:55

Originally posted by Andyroo56:
I am working on a site called optimal resume. Although I'm sure this problem extends to other sites. I try to load my resume in the resume builder and it gives me the following error from the error console:
JavaScript - https://ucalgary.optimalresume.ca/modules/resume/edit.php?docid=19102
Event thread: load
Error:
name: TypeError
message: Statement on line 5: Type mismatch (usually non-object value supplied where object required)
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace
Then i try to click on one of the interactive buttons on the side that allows you to modify your resume and I get the following error:
JavaScript - https://ucalgary.optimalresume.ca/modules/resume/edit.php?docid=19102
Event thread: click
Unhandled exception: "Syntax error, unrecognized expression: #"
I know that when I work on firefox or internet explorer I don't get this problem.
Can anybody help me?
Thanks!
Hi,
looks like a good piece of work - both the site and the cross-browser testing you're doing while developing.
Following the suggestion in the error message of turning on stacktrace is of course a good one (and I'm assuming you've already done

) A quick peek at the jquery setup and code that you've got there suggests that you may want to delay issuing the toolbar status message in the 'load' handler until 'ready' fires. i.e., you might be experiencing some browser behaviour differences in when 'onload' events fire.
As regards the other one, more info is needed, but the section IDs that the click handlers for the section links use doesn't seem to be passed in correctly. Debugging with Dragonfly will probably give you more info as to what's going wrong.
hth
--sof