function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swati.dhingraSwati.dhingra 

Problem with S-Control

hi
 
i have written an S-control , S-control has no syntax error it is geeting saved.
But when i am testing it i am getting an error "object doesn' support this property or method".
Plz help me on this.
 
Thanks
Swati
okaylah52okaylah52
If you use FireFox browser, install the latest extension Javascript Debugger. Once you've installed it, open the Javascript Debugger console and the Error Console. Both consoles are listed under the Tools menu. Then run your s-control again to see the offending code.

Hope this helps.
JonPJonP
To further clarify the previous post, the error you're receiving is a runtime Javascript error.  The s-control saves correctly in the editor because its use of merge fields, etc., are valid.  But the Force.com platform doesn't check your Javascript code for correctness.  As you've discovered, the only way to find errors in a runtime scripting language like Javascript is to run it.