<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Calling Apex from a Button &#8211; &#8220;Sforce is not defined&#8221;</title>
	<atom:link href="http://theEnforcer.net/2008/07/calling-apex-from-a-button-beware/feed/" rel="self" type="application/rss+xml" />
	<link>http://theEnforcer.net/2008/07/calling-apex-from-a-button-beware/</link>
	<description>a force.com blog</description>
	<lastBuildDate>Thu, 29 Jul 2010 23:10:55 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Guneet</title>
		<link>http://theEnforcer.net/2008/07/calling-apex-from-a-button-beware/comment-page-1/#comment-146</link>
		<dc:creator>Guneet</dc:creator>
		<pubDate>Mon, 20 Oct 2008 14:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://theenforcer.net/?p=33#comment-146</guid>
		<description>Hi,

Thanks for sharing this information. I had the same problem but in a slightly different avtaar. 

Had a couple of custom buttons (execute javascript) on some objects which were invoking Apex classes. The java script for these custom buttons was written a couple of months ago and was working fine. 

Incidentally, I did not have the any of the REQUIRESCRIPT statements in the java script but it was still working fine for both Administrators and other normal users. All these users were part of a custom profile. 

However sometime around last week it stopped working &amp; started showing the error that you mentioned in your post (sforce is not defined). After spending some time, I figured out the problem and after adding the REQUIRESCRIPT statements, my custom buttons are working again. 

I&#039;m not sure if there was more to that bug that you described or was a newer release strictly enforcing the REQUIRESCRIPT tag

Thanks
Guneet Sahai</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for sharing this information. I had the same problem but in a slightly different avtaar. </p>
<p>Had a couple of custom buttons (execute javascript) on some objects which were invoking Apex classes. The java script for these custom buttons was written a couple of months ago and was working fine. </p>
<p>Incidentally, I did not have the any of the REQUIRESCRIPT statements in the java script but it was still working fine for both Administrators and other normal users. All these users were part of a custom profile. </p>
<p>However sometime around last week it stopped working &amp; started showing the error that you mentioned in your post (sforce is not defined). After spending some time, I figured out the problem and after adding the REQUIRESCRIPT statements, my custom buttons are working again. </p>
<p>I&#8217;m not sure if there was more to that bug that you described or was a newer release strictly enforcing the REQUIRESCRIPT tag</p>
<p>Thanks<br />
Guneet Sahai</p>
]]></content:encoded>
	</item>
</channel>
</rss>
