function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
hi,
How to add of javascript into visualforcepage(opportunity)
thanks.
www.salesforce.com/us/developer/docs/pages/Content/pages_compref_includeScript.htm
Hi,
to addition in visualforce page ( opportunity standard visualforce page) , is not a costum page.
nothing to do more..as like you do in your HTML page you need to do in same fashion to Add javascript code in VF page.
like as...
<apex:page standardController="Account" extensions="OverrideNewAccountController"> <script type="text/javascript"> var url = "/{!$ObjectType.Account.KeyPrefix}/e?nooverride=1"; url += "&retURL=" + escape("{!$Request.retURL}"); url += "&QASnew=1"; url += "&saveURL=/apex/experianqas__QAS_Override_New_Account_Lightbox"; var companyName = "{!UnisonCompanyName}"; var CompanyId = "{!UnisonCompanyId}"; if (companyName.length > 0) { url += "&CF00NN0000000SRYS=" + escape(companyName); url += "&CF00NN0000000SRYS_lkid=" + escape(CompanyId); } window.top.location.replace(url); </script></apex:page>
www.salesforce.com/us/developer/docs/pages/Content/pages_compref_includeScript.htm
Hi,
to addition in visualforce page ( opportunity standard visualforce page) , is not a costum page.
thanks.
nothing to do more..as like you do in your HTML page you need to do in same fashion to Add javascript code in VF page.
like as...
<apex:page standardController="Account" extensions="OverrideNewAccountController">
<script type="text/javascript">
var url = "/{!$ObjectType.Account.KeyPrefix}/e?nooverride=1";
url += "&retURL=" + escape("{!$Request.retURL}");
url += "&QASnew=1";
url += "&saveURL=/apex/experianqas__QAS_Override_New_Account_Lightbox";
var companyName = "{!UnisonCompanyName}";
var CompanyId = "{!UnisonCompanyId}";
if (companyName.length > 0) {
url += "&CF00NN0000000SRYS=" + escape(companyName);
url += "&CF00NN0000000SRYS_lkid=" + escape(CompanyId);
}
window.top.location.replace(url);
</script>
</apex:page>