2013-04-25 31 views
1

我在我的Force.com網站中使用JavaScript Remoting。除了我注意到的場景之外,當我單擊apex:commandLinkapex:commandButton中的一個組件時,該組件會打開我的JavaScript遠程功能存在的組件,然後當我嘗試執行遠程處理操作時,出現如下錯誤。Salesforrce:JavaScript Remoting「Uncaught ReferenceError:Visualforce未定義」

Uncaught ReferenceError: Visualforce is not defined 

當我不以前在上午apex:CommandLinkapex:commandButton在前面的組件單擊我沒有得到這個錯誤。有沒有人在&之前遇到過,如果知道如何阻止錯誤發生?

+0

大家好方法控制器,使用控制器擴展爲http://boards.developerforce.com/t5/Visualforce-Development/建議Winter-12-breaks-JS-Remoting/td-p/336947/page/2解決了這個問題。 – SalesforceQueries 2013-04-26 12:41:08

回答

0

我假設你使用Visual Force Page(VFP)。在你的VFP定義,一定要包括對JS遠程

<apex:page controller="YourController" ... /> 
相關問題