You need to sign in to do that
Don't have an account?

Apex Developer Guide - Code Not Working - HELP!
I am trying to work through the Apex Developer's Guide, but it's not going well. So far, I have attempted the first 3 pieces of code and all have not worked properly - or at all for that matter. I have the code typed in exactly as it appears on the page, but I get the little error triangle in the bottom left of my browser and the script does not run.
Am I missing something? I am using the lastest version of IE, Windows XP Prof. I'm quite familiar with html code so this isn't a foreign language to me, I know to remember to close tags and all of that stuff.
HELP! I really don't feel comfortable continuing through the book without figuring out my mistakes.
KE
can you copy/paste the code from your environment
also when you get the triangle in the browser - can you double click and send the full text of the error message
I will try to help
Peter
<head>
<type="text/javascript src="js/functions.js"></script>
<script src="/soap/ajax/11.0/connection.js"></script>
<script src="/soap/ajax/11.0/apex.js"></script>
<script>
function demo() {
var result = sforce.apex.execute('HelloWorld2' , 'sayHelloWorld',
{arg:"new Apex user!"});
y
document.getElementById('userNameArea').innerHTML = 'Congratulations!'
+ ' ' + result;
}
</script>
</head>
<body onload=demo()>
<div id=userNameArea>
</div>
</body>
</html>