SlideShare a Scribd company logo
1 of 27
Javascript Integration 
with Visualforce 
November 13, 2014
#forcewebinar 
Speakers 
Joshua Birk 
Developer Evangelist 
@joshbirk 
Varun Dodla 
SMTS 
@varundodla
Safe Harbor 
Safe harbor statement under the Private Securities Litigation Reform Act of 1995: 
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the 
assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we 
make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber 
growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any 
statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. 
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new 
products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in 
our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, 
the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, 
new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger 
enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10- 
Q for the most recent fiscal quarter ended July 31, 2012. This documents and others containing important disclosures are available on the SEC Filings section of the 
Investor Information section of our Web site. 
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered 
on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. 
assumes no obligation and does not intend to update these forward-looking statements. 
#forcewebinar
Go Social! 
@salesforcedevs / #forcewebinar 
Salesforce Developers 
Salesforce Developers 
Salesforce Developers 
+Salesforce Developers 
#forcewebinar 
This webinar is being recorded! 
The video will be posted to YouTube 
& the webinar recap page 
(same URL as registration).
Have Questions? 
▪ Don’t wait until the end to ask your question! 
– Technical support will answer questions starting now. 
▪ Respect Q&A etiquette 
– Please don’t repeat questions. The support team is 
#forcewebinar 
working their way down the queue. 
▪ Stick around for live Q&A at the end 
– Speakers will tackle more questions at the end, time-allowing. 
▪ Head to Developer Forums 
– More questions? Visit developer.salesforce.com/forums
Agenda 
1. Making Visualforce JavaScript friendly 
2. Leveraging JavaScript Remoting with Visualforce 
3. Using Remote Objects with Angular.js 
#forcewebinar
Setting up Visualforce for HTML5 
Set the DOCTYPE 
<apex:page 
#forcewebinar 
standardStylesheets="false" 
showheader="false" 
sidebar="false" 
applyHtmlTag="false" 
applyBodyTag="false" 
docType="html-5.0" 
>
Setting up Visualforce for HTML5 
Control the HTML and BODY tags 
<apex:page 
#forcewebinar 
standardStylesheets="false" 
showheader="false" 
sidebar="false" 
applyHtmlTag="false" 
applyBodyTag="false" 
docType="html-5.0" 
>
Setting up Visualforce for HTML5 
Using HTML Pass-throughs 
<apex:outputPanel layout="block" html-data-role="panel" html-data-id=" 
menu"> 
<apex:insert name="menu"/> 
</apex:outputPanel> 
#forcewebinar 
<div data-id="menu" data-role="panel"> 
<!-- contents of menu --> 
</div>
Reveal.js
Know your viewstate 
<apex:form> 
nb20PkvDuyhYKej7X7Yg0WPs9EwUp3k+Cvicdkns390SDL3ZDt3y/ZO82y4DlZmA3ng37FZAkRbDv8lMHSWO7v8e8AEtPHfX6fTHA5Gn+0hMmY2U0RX2BpYZy/rE0Xf2870KV01kde5ubUja3+mZG/bFGiTJO91qgYvs9Z617jl2Uj1r58aDjpjB3WqWr0InDPjiKoinADwje/76ruit5vEzfMzzJ+2XIb9eoeo1l4iRfre234PSUL1 
vGJYcM5Xk/woa5Z2dBjotK4DEgPzZ22Q8nbC8qTZVh3MyiebCUgP1yFWDo7hCRzenxwpP26ORu4ISSryWFZKJZ+7F/3kh8T8biSxSC4rE2zjBzUL63ndxssXTMlnx 
+mwRDEnEJ+LtiEfgfaluiSGabe8+hRRapYnkcAl3LH6QSAAGLKL8CRP+xbBmmjcghxTQ6TuhUDqskjRbW6pOpC15MvPw5kBwxWr/EaCRdXCmHw6S8RNv2SvjsdWdH 
/lnQLDXTZlIXeNLmzBmfGFkJ18InyEiJ9cvRZ8z2aZyG3AI/UoBdXfm5CGp0+5p2klBYpxuxLILJHBejsWZ7nEJDkqAYaVLirhuDc0lLKkgELB/Y7b1M4yt/1MJCxHWVdc5bzD7VbLjWrXIO5Svf1tCUUR9GgYi4Mog1cDWAlLRSxqQTweuwN1bCWxZzMgC/NfhTdxfCv5WV2h8ak1jTDDiWYn6HUfpV3qeiiUY67MmvSpcSgcMOW 
dzSADWNIQNiyMVVWW8KqYnV35bcaxJkPZBRKrdC4Ppye/X217jlkJxoP8IcRG7kNmAsg0DBlLZmDU56/qNU3Od1PMOMjtNI/Cyw8pVvAJxCvPtbG0dV/nf75kbSLdTTlsaFa4xXq23Gb1tiFgo3ujSVVXuUbViNh13pAC39fnQ7uxoaf9H9/EGZYhJW7SrR9HVPPUswq2dEmJpauTNNcoJvVeoMeEmk1UuP0EQxBJ7q9XLEcT 
eOUMyIY9/YbulAtlsIP9nC5EWEZnXWexBFOQtFBOShaoUBWDfubIVrJPytEoXEZpSBXdrvXof6n9iY7X+xaq9YE9XOUx9VQW/zG+9UwCS0/Asq8n/yXgoT6dXRYg+xizPB1A7MrTtuVuJsONzr71ff2Opbf83K0lquX+ZrM4yy68ue3wtxMDSA0q9FaU3zb9kFP7MaRN5mMyzKtsliaze+KZojInnJ1qFUFY0VfTjLEI6NC2UYHK 
</apex:form> 
#forcewebinar
Integrate JavaScript directly with Apex 
Using JavaScript Remoting 
@RemoteAction 
global static Contact makeContact 
Visualforce.remoting.Manager.invokeAction( 
#forcewebinar 
'{!$RemoteAction.ContactExtension.makeContact}', 
“003i000000cxdHP”, “Barr” 
function(result, event) { 
//...callback to handle result 
alert(result.LastName); 
}); 
(String cid, String lname) { 
return new Contact(id=cid,Last_Name=lname); 
} 
Visualforce Apex
JavaScript Remoting Advantages 
1. No viewstate, performs better with larger data sets 
2. Direct integration with existing JavaScript 
3. No use of the API scope 
#forcewebinar
Remote Objects for integrating directly with data 
<apex:remoteObjects > 
<apex:remoteObjectModel name="Contact" jsShorthand="contact" 
#forcewebinar 
fields="FirstName,LastName,Id,Email"/> 
contacts.retrieve({},function(error, records) { 
if(error) { console.log(error.message); } 
else { 
data = records; 
});
Remote Objects Advantages 
1. Same advantages of JavaScript Remoting 
2. No Apex Required 
3. Can reference multiple data models 
4. Can replace specific functions with JavaScript Remoting 
#forcewebinar
#forcewebinar 
Remote Objects with 
d3.js
#forcewebinar 
Remote Objects with 
Angular.js
Get the code 
▪ Reveal / C3.js / JS Remoting / D3.js 
▪ https://github.com/joshbirk/VFWebinar 
▪ Angular.js / Isotope / Streaming API 
▪ https://github.com/unvar/remote-object-ops-dashboard 
#forcewebinar
The Frameworks 
▪ jQuery 
▪ Reveal.js 
▪ C3.js 
▪ D3.js 
▪ Angular.js 
▪ Isotope 
▪ ngRemote 
#forcewebinar
BRAND NEW! Introducing Trailhead 
• Interactive learning paths 
• Earn badges and points 
• Declarative and Programmatic 
#forcewebinaCr hallenge Yourself! http://developer.salesforce.com/trailhead
#forcewebinar 
New App Builders 
http://www.udacity.com/salesforce 
Experienced App Builders 
Developer Workshop 
Fast Track Tutorial for Experienced 
Developers 
http://ccoenraets.github.io/salesforce-developer- 
workshop 
More Free Online Tutorials
Join us in the Developer Zone 
#forcewebinar 
Salesforce World Tour 
New York City 
Wednesday, November 19, 2014 
Register here: http://sfdc.co/nyc2014
Join us at the 
Developer Workshop 
December 5, 2014 
London, United Kingdom 
Register early, seating is limited! 
https://bit.ly/elevate-london
#forcewebinar 
Next Webinar 
Using Lightning Process Builder 
to clean up Existing Workflows 
December 3, 2014
#forcewebinar 
Survey 
Your feedback is crucial to the success 
of our webinar programs. Thank you! 
http://bit.ly/javascriptVF
#forcewebinar 
Q & A 
Joshua Birk 
Developer Evangelist 
@joshbirk 
Varun Dodla 
SMTS 
@varundodla 
Survey Link: http://bit.ly/javascriptVF
Thank You

More Related Content

What's hot

Mini-Workshop: Responsive Web Design with Visualforce and Bootstrap
Mini-Workshop: Responsive Web Design with Visualforce and BootstrapMini-Workshop: Responsive Web Design with Visualforce and Bootstrap
Mini-Workshop: Responsive Web Design with Visualforce and BootstrapKeir Bowden
 
Snap-in Service to Web and Mobile Apps
Snap-in Service to Web and Mobile AppsSnap-in Service to Web and Mobile Apps
Snap-in Service to Web and Mobile AppsSalesforce Developers
 
Make Your Visualforce Pages Responsive
Make Your Visualforce Pages ResponsiveMake Your Visualforce Pages Responsive
Make Your Visualforce Pages ResponsiveSalesforce Developers
 
#DF17Recap series: Make apps smarter with Einstein
#DF17Recap series: Make apps smarter with Einstein#DF17Recap series: Make apps smarter with Einstein
#DF17Recap series: Make apps smarter with EinsteinSalesforce Developers
 
Community Cloud: New in Summer ‘18
Community Cloud: New in Summer ‘18Community Cloud: New in Summer ‘18
Community Cloud: New in Summer ‘18Salesforce Developers
 
S1 and Visualforce Publisher Actions
S1 and Visualforce Publisher ActionsS1 and Visualforce Publisher Actions
S1 and Visualforce Publisher ActionsPeter Chittum
 
Enterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsEnterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsSalesforce Developers
 
The Salesforce Einstein Product Team: Ask Us Anything!
The Salesforce Einstein Product Team: Ask Us Anything!The Salesforce Einstein Product Team: Ask Us Anything!
The Salesforce Einstein Product Team: Ask Us Anything!Salesforce Developers
 
Lightning web components - Episode 4 : Security and Testing
Lightning web components  - Episode 4 : Security and TestingLightning web components  - Episode 4 : Security and Testing
Lightning web components - Episode 4 : Security and TestingSalesforce Developers
 
Chatter Publisher Actions and Salesforce1
Chatter Publisher Actions and Salesforce1Chatter Publisher Actions and Salesforce1
Chatter Publisher Actions and Salesforce1Salesforce Developers
 
Build Smarter Apps with Einstein Platform Services
Build Smarter Apps with Einstein Platform ServicesBuild Smarter Apps with Einstein Platform Services
Build Smarter Apps with Einstein Platform ServicesSalesforce Developers
 
Visualforce in Salesforce1: Optimizing your User Interface for Mobile
Visualforce in Salesforce1: Optimizing your User Interface for MobileVisualforce in Salesforce1: Optimizing your User Interface for Mobile
Visualforce in Salesforce1: Optimizing your User Interface for MobileSalesforce Developers
 
Build Smarter Apps with Einstein Object Detection
Build Smarter Apps with Einstein Object DetectionBuild Smarter Apps with Einstein Object Detection
Build Smarter Apps with Einstein Object DetectionSalesforce Developers
 
#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platform#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platformSalesforce Developers
 
Secure Development on the Salesforce Platform - Part 2
Secure Development on the Salesforce Platform - Part 2Secure Development on the Salesforce Platform - Part 2
Secure Development on the Salesforce Platform - Part 2Salesforce Developers
 

What's hot (20)

Mini-Workshop: Responsive Web Design with Visualforce and Bootstrap
Mini-Workshop: Responsive Web Design with Visualforce and BootstrapMini-Workshop: Responsive Web Design with Visualforce and Bootstrap
Mini-Workshop: Responsive Web Design with Visualforce and Bootstrap
 
Using Visualforce in Salesforce1
Using Visualforce in Salesforce1Using Visualforce in Salesforce1
Using Visualforce in Salesforce1
 
Visualforce Custom Design Patterns
Visualforce Custom Design PatternsVisualforce Custom Design Patterns
Visualforce Custom Design Patterns
 
Diving Into Heroku Private Spaces
Diving Into Heroku Private SpacesDiving Into Heroku Private Spaces
Diving Into Heroku Private Spaces
 
Snap-in Service to Web and Mobile Apps
Snap-in Service to Web and Mobile AppsSnap-in Service to Web and Mobile Apps
Snap-in Service to Web and Mobile Apps
 
Make Your Visualforce Pages Responsive
Make Your Visualforce Pages ResponsiveMake Your Visualforce Pages Responsive
Make Your Visualforce Pages Responsive
 
#DF17Recap series: Make apps smarter with Einstein
#DF17Recap series: Make apps smarter with Einstein#DF17Recap series: Make apps smarter with Einstein
#DF17Recap series: Make apps smarter with Einstein
 
Community Cloud: New in Summer ‘18
Community Cloud: New in Summer ‘18Community Cloud: New in Summer ‘18
Community Cloud: New in Summer ‘18
 
S1 and Visualforce Publisher Actions
S1 and Visualforce Publisher ActionsS1 and Visualforce Publisher Actions
S1 and Visualforce Publisher Actions
 
Enterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsEnterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web Components
 
The Salesforce Einstein Product Team: Ask Us Anything!
The Salesforce Einstein Product Team: Ask Us Anything!The Salesforce Einstein Product Team: Ask Us Anything!
The Salesforce Einstein Product Team: Ask Us Anything!
 
Live coding with LWC
Live coding with LWCLive coding with LWC
Live coding with LWC
 
Lightning web components - Episode 4 : Security and Testing
Lightning web components  - Episode 4 : Security and TestingLightning web components  - Episode 4 : Security and Testing
Lightning web components - Episode 4 : Security and Testing
 
Chatter Publisher Actions and Salesforce1
Chatter Publisher Actions and Salesforce1Chatter Publisher Actions and Salesforce1
Chatter Publisher Actions and Salesforce1
 
Build Smarter Apps with Einstein Platform Services
Build Smarter Apps with Einstein Platform ServicesBuild Smarter Apps with Einstein Platform Services
Build Smarter Apps with Einstein Platform Services
 
Visualforce in Salesforce1: Optimizing your User Interface for Mobile
Visualforce in Salesforce1: Optimizing your User Interface for MobileVisualforce in Salesforce1: Optimizing your User Interface for Mobile
Visualforce in Salesforce1: Optimizing your User Interface for Mobile
 
Build Smarter Apps with Einstein Object Detection
Build Smarter Apps with Einstein Object DetectionBuild Smarter Apps with Einstein Object Detection
Build Smarter Apps with Einstein Object Detection
 
#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platform#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platform
 
Summer '18 Developer Highlights
Summer '18 Developer HighlightsSummer '18 Developer Highlights
Summer '18 Developer Highlights
 
Secure Development on the Salesforce Platform - Part 2
Secure Development on the Salesforce Platform - Part 2Secure Development on the Salesforce Platform - Part 2
Secure Development on the Salesforce Platform - Part 2
 

Similar to JavaScript Integration with Visualforce

Java Best Practices - Tools, Performance, and Deployment
Java Best Practices - Tools, Performance, and DeploymentJava Best Practices - Tools, Performance, and Deployment
Java Best Practices - Tools, Performance, and DeploymentSalesforce Developers
 
Building JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 PlatformBuilding JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 PlatformSalesforce Developers
 
Force.com Friday: Intro to Visualforce (May 8, 2015)
Force.com Friday: Intro to Visualforce (May 8, 2015)Force.com Friday: Intro to Visualforce (May 8, 2015)
Force.com Friday: Intro to Visualforce (May 8, 2015)Salesforce Developers
 
Force.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.comForce.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.comSalesforce Developers
 
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14The Open-source Eclipse Plugin for Force.com Development, Summer ‘14
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14Salesforce Developers
 
Building Enterprise Apps Rapidly with Salesforce Mobile Packs Webinar
Building Enterprise Apps Rapidly with Salesforce Mobile Packs WebinarBuilding Enterprise Apps Rapidly with Salesforce Mobile Packs Webinar
Building Enterprise Apps Rapidly with Salesforce Mobile Packs WebinarSalesforce Developers
 
Summer '14 Release Developer Preview
Summer '14 Release Developer PreviewSummer '14 Release Developer Preview
Summer '14 Release Developer PreviewSalesforce Developers
 
Code live with kevin o'hara lwc oss dashboard
Code live with kevin o'hara   lwc oss dashboardCode live with kevin o'hara   lwc oss dashboard
Code live with kevin o'hara lwc oss dashboardJackGuo20
 
Spring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview WebinarSpring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview WebinarSalesforce Developers
 
Mobile pack developer webinar
Mobile pack developer webinarMobile pack developer webinar
Mobile pack developer webinarRaja Rao DV
 
Mobile pack developer webinar
Mobile pack developer webinarMobile pack developer webinar
Mobile pack developer webinarRaja Rao DV
 
Staying Ahead of the Curve with Lightning - Snowforce16 Keynote
Staying Ahead of the Curve with Lightning - Snowforce16 KeynoteStaying Ahead of the Curve with Lightning - Snowforce16 Keynote
Staying Ahead of the Curve with Lightning - Snowforce16 KeynoteSalesforce Admins
 
Winter '15 Release-Overview and Highlights
Winter '15 Release-Overview and HighlightsWinter '15 Release-Overview and Highlights
Winter '15 Release-Overview and HighlightsSalesforce Developers
 
Intro to Apex - Salesforce Force Friday Webinar
Intro to Apex - Salesforce Force Friday Webinar Intro to Apex - Salesforce Force Friday Webinar
Intro to Apex - Salesforce Force Friday Webinar Abhinav Gupta
 
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)Salesforce Developers
 
Lightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionLightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionSalesforce Developers
 
Intro to Salesforce Mobile SDK: Building Hybrid Apps Webinar
Intro to Salesforce Mobile SDK: Building Hybrid Apps WebinarIntro to Salesforce Mobile SDK: Building Hybrid Apps Webinar
Intro to Salesforce Mobile SDK: Building Hybrid Apps WebinarSalesforce Developers
 
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...Salesforce Developers
 

Similar to JavaScript Integration with Visualforce (20)

Java Best Practices - Tools, Performance, and Deployment
Java Best Practices - Tools, Performance, and DeploymentJava Best Practices - Tools, Performance, and Deployment
Java Best Practices - Tools, Performance, and Deployment
 
Building JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 PlatformBuilding JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 Platform
 
Force.com Friday: Intro to Visualforce (May 8, 2015)
Force.com Friday: Intro to Visualforce (May 8, 2015)Force.com Friday: Intro to Visualforce (May 8, 2015)
Force.com Friday: Intro to Visualforce (May 8, 2015)
 
Force.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.comForce.com Friday: Intro to Force.com
Force.com Friday: Intro to Force.com
 
Force.com Friday - Intro to Visualforce
Force.com Friday - Intro to VisualforceForce.com Friday - Intro to Visualforce
Force.com Friday - Intro to Visualforce
 
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14The Open-source Eclipse Plugin for Force.com Development, Summer ‘14
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14
 
Building Enterprise Apps Rapidly with Salesforce Mobile Packs Webinar
Building Enterprise Apps Rapidly with Salesforce Mobile Packs WebinarBuilding Enterprise Apps Rapidly with Salesforce Mobile Packs Webinar
Building Enterprise Apps Rapidly with Salesforce Mobile Packs Webinar
 
Summer '14 Release Developer Preview
Summer '14 Release Developer PreviewSummer '14 Release Developer Preview
Summer '14 Release Developer Preview
 
Code live with kevin o'hara lwc oss dashboard
Code live with kevin o'hara   lwc oss dashboardCode live with kevin o'hara   lwc oss dashboard
Code live with kevin o'hara lwc oss dashboard
 
Spring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview WebinarSpring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview Webinar
 
Mobile pack developer webinar
Mobile pack developer webinarMobile pack developer webinar
Mobile pack developer webinar
 
Mobile pack developer webinar
Mobile pack developer webinarMobile pack developer webinar
Mobile pack developer webinar
 
Staying Ahead of the Curve with Lightning - Snowforce16 Keynote
Staying Ahead of the Curve with Lightning - Snowforce16 KeynoteStaying Ahead of the Curve with Lightning - Snowforce16 Keynote
Staying Ahead of the Curve with Lightning - Snowforce16 Keynote
 
Winter '15 Release-Overview and Highlights
Winter '15 Release-Overview and HighlightsWinter '15 Release-Overview and Highlights
Winter '15 Release-Overview and Highlights
 
Intro to Apex - Salesforce Force Friday Webinar
Intro to Apex - Salesforce Force Friday Webinar Intro to Apex - Salesforce Force Friday Webinar
Intro to Apex - Salesforce Force Friday Webinar
 
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
 
Lightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionLightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An Introduction
 
Force.com Friday : Intro to Apex
Force.com Friday : Intro to Apex Force.com Friday : Intro to Apex
Force.com Friday : Intro to Apex
 
Intro to Salesforce Mobile SDK: Building Hybrid Apps Webinar
Intro to Salesforce Mobile SDK: Building Hybrid Apps WebinarIntro to Salesforce Mobile SDK: Building Hybrid Apps Webinar
Intro to Salesforce Mobile SDK: Building Hybrid Apps Webinar
 
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
 

More from Salesforce Developers

Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSalesforce Developers
 
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceMaximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceSalesforce Developers
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base ComponentsSalesforce Developers
 
TrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsTrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsSalesforce Developers
 
Why developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaWhy developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaSalesforce Developers
 
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentCodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentSalesforce Developers
 
CodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsCodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsSalesforce Developers
 
TrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsTrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsSalesforce Developers
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilitySalesforce Developers
 
Lightning web components episode 2- work with salesforce data
Lightning web components   episode 2- work with salesforce dataLightning web components   episode 2- work with salesforce data
Lightning web components episode 2- work with salesforce dataSalesforce Developers
 
Migrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPMigrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPSalesforce Developers
 
Scale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceScale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceSalesforce Developers
 
Replicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureReplicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureSalesforce Developers
 
Modern Development with Salesforce DX
Modern Development with Salesforce DXModern Development with Salesforce DX
Modern Development with Salesforce DXSalesforce Developers
 
Integrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectIntegrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectSalesforce Developers
 
Modern App Dev: Modular Development Strategies
Modern App Dev: Modular Development StrategiesModern App Dev: Modular Development Strategies
Modern App Dev: Modular Development StrategiesSalesforce Developers
 

More from Salesforce Developers (20)

Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
 
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceMaximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component Performance
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base Components
 
TrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsTrailheaDX India : Developer Highlights
TrailheaDX India : Developer Highlights
 
Why developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaWhy developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX India
 
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentCodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local Development
 
CodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsCodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web Components
 
TrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsTrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer Highlights
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura Interoperability
 
Lightning web components episode 2- work with salesforce data
Lightning web components   episode 2- work with salesforce dataLightning web components   episode 2- work with salesforce data
Lightning web components episode 2- work with salesforce data
 
Migrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPMigrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCP
 
Scale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceScale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in Salesforce
 
Replicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureReplicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data Capture
 
Modern Development with Salesforce DX
Modern Development with Salesforce DXModern Development with Salesforce DX
Modern Development with Salesforce DX
 
Get Into Lightning Flow Development
Get Into Lightning Flow DevelopmentGet Into Lightning Flow Development
Get Into Lightning Flow Development
 
Integrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectIntegrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS Connect
 
Introduction to MuleSoft
Introduction to MuleSoftIntroduction to MuleSoft
Introduction to MuleSoft
 
Modern App Dev: Modular Development Strategies
Modern App Dev: Modular Development StrategiesModern App Dev: Modular Development Strategies
Modern App Dev: Modular Development Strategies
 
Dreamforce Developer Recap
Dreamforce Developer RecapDreamforce Developer Recap
Dreamforce Developer Recap
 
Vs Code for Salesforce Developers
Vs Code for Salesforce DevelopersVs Code for Salesforce Developers
Vs Code for Salesforce Developers
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

JavaScript Integration with Visualforce

  • 1. Javascript Integration with Visualforce November 13, 2014
  • 2. #forcewebinar Speakers Joshua Birk Developer Evangelist @joshbirk Varun Dodla SMTS @varundodla
  • 3. Safe Harbor Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10- Q for the most recent fiscal quarter ended July 31, 2012. This documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements. #forcewebinar
  • 4. Go Social! @salesforcedevs / #forcewebinar Salesforce Developers Salesforce Developers Salesforce Developers +Salesforce Developers #forcewebinar This webinar is being recorded! The video will be posted to YouTube & the webinar recap page (same URL as registration).
  • 5. Have Questions? ▪ Don’t wait until the end to ask your question! – Technical support will answer questions starting now. ▪ Respect Q&A etiquette – Please don’t repeat questions. The support team is #forcewebinar working their way down the queue. ▪ Stick around for live Q&A at the end – Speakers will tackle more questions at the end, time-allowing. ▪ Head to Developer Forums – More questions? Visit developer.salesforce.com/forums
  • 6. Agenda 1. Making Visualforce JavaScript friendly 2. Leveraging JavaScript Remoting with Visualforce 3. Using Remote Objects with Angular.js #forcewebinar
  • 7. Setting up Visualforce for HTML5 Set the DOCTYPE <apex:page #forcewebinar standardStylesheets="false" showheader="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" >
  • 8. Setting up Visualforce for HTML5 Control the HTML and BODY tags <apex:page #forcewebinar standardStylesheets="false" showheader="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" >
  • 9. Setting up Visualforce for HTML5 Using HTML Pass-throughs <apex:outputPanel layout="block" html-data-role="panel" html-data-id=" menu"> <apex:insert name="menu"/> </apex:outputPanel> #forcewebinar <div data-id="menu" data-role="panel"> <!-- contents of menu --> </div>
  • 11. Know your viewstate <apex:form> nb20PkvDuyhYKej7X7Yg0WPs9EwUp3k+Cvicdkns390SDL3ZDt3y/ZO82y4DlZmA3ng37FZAkRbDv8lMHSWO7v8e8AEtPHfX6fTHA5Gn+0hMmY2U0RX2BpYZy/rE0Xf2870KV01kde5ubUja3+mZG/bFGiTJO91qgYvs9Z617jl2Uj1r58aDjpjB3WqWr0InDPjiKoinADwje/76ruit5vEzfMzzJ+2XIb9eoeo1l4iRfre234PSUL1 vGJYcM5Xk/woa5Z2dBjotK4DEgPzZ22Q8nbC8qTZVh3MyiebCUgP1yFWDo7hCRzenxwpP26ORu4ISSryWFZKJZ+7F/3kh8T8biSxSC4rE2zjBzUL63ndxssXTMlnx +mwRDEnEJ+LtiEfgfaluiSGabe8+hRRapYnkcAl3LH6QSAAGLKL8CRP+xbBmmjcghxTQ6TuhUDqskjRbW6pOpC15MvPw5kBwxWr/EaCRdXCmHw6S8RNv2SvjsdWdH /lnQLDXTZlIXeNLmzBmfGFkJ18InyEiJ9cvRZ8z2aZyG3AI/UoBdXfm5CGp0+5p2klBYpxuxLILJHBejsWZ7nEJDkqAYaVLirhuDc0lLKkgELB/Y7b1M4yt/1MJCxHWVdc5bzD7VbLjWrXIO5Svf1tCUUR9GgYi4Mog1cDWAlLRSxqQTweuwN1bCWxZzMgC/NfhTdxfCv5WV2h8ak1jTDDiWYn6HUfpV3qeiiUY67MmvSpcSgcMOW dzSADWNIQNiyMVVWW8KqYnV35bcaxJkPZBRKrdC4Ppye/X217jlkJxoP8IcRG7kNmAsg0DBlLZmDU56/qNU3Od1PMOMjtNI/Cyw8pVvAJxCvPtbG0dV/nf75kbSLdTTlsaFa4xXq23Gb1tiFgo3ujSVVXuUbViNh13pAC39fnQ7uxoaf9H9/EGZYhJW7SrR9HVPPUswq2dEmJpauTNNcoJvVeoMeEmk1UuP0EQxBJ7q9XLEcT eOUMyIY9/YbulAtlsIP9nC5EWEZnXWexBFOQtFBOShaoUBWDfubIVrJPytEoXEZpSBXdrvXof6n9iY7X+xaq9YE9XOUx9VQW/zG+9UwCS0/Asq8n/yXgoT6dXRYg+xizPB1A7MrTtuVuJsONzr71ff2Opbf83K0lquX+ZrM4yy68ue3wtxMDSA0q9FaU3zb9kFP7MaRN5mMyzKtsliaze+KZojInnJ1qFUFY0VfTjLEI6NC2UYHK </apex:form> #forcewebinar
  • 12. Integrate JavaScript directly with Apex Using JavaScript Remoting @RemoteAction global static Contact makeContact Visualforce.remoting.Manager.invokeAction( #forcewebinar '{!$RemoteAction.ContactExtension.makeContact}', “003i000000cxdHP”, “Barr” function(result, event) { //...callback to handle result alert(result.LastName); }); (String cid, String lname) { return new Contact(id=cid,Last_Name=lname); } Visualforce Apex
  • 13. JavaScript Remoting Advantages 1. No viewstate, performs better with larger data sets 2. Direct integration with existing JavaScript 3. No use of the API scope #forcewebinar
  • 14. Remote Objects for integrating directly with data <apex:remoteObjects > <apex:remoteObjectModel name="Contact" jsShorthand="contact" #forcewebinar fields="FirstName,LastName,Id,Email"/> contacts.retrieve({},function(error, records) { if(error) { console.log(error.message); } else { data = records; });
  • 15. Remote Objects Advantages 1. Same advantages of JavaScript Remoting 2. No Apex Required 3. Can reference multiple data models 4. Can replace specific functions with JavaScript Remoting #forcewebinar
  • 17. #forcewebinar Remote Objects with Angular.js
  • 18. Get the code ▪ Reveal / C3.js / JS Remoting / D3.js ▪ https://github.com/joshbirk/VFWebinar ▪ Angular.js / Isotope / Streaming API ▪ https://github.com/unvar/remote-object-ops-dashboard #forcewebinar
  • 19. The Frameworks ▪ jQuery ▪ Reveal.js ▪ C3.js ▪ D3.js ▪ Angular.js ▪ Isotope ▪ ngRemote #forcewebinar
  • 20. BRAND NEW! Introducing Trailhead • Interactive learning paths • Earn badges and points • Declarative and Programmatic #forcewebinaCr hallenge Yourself! http://developer.salesforce.com/trailhead
  • 21. #forcewebinar New App Builders http://www.udacity.com/salesforce Experienced App Builders Developer Workshop Fast Track Tutorial for Experienced Developers http://ccoenraets.github.io/salesforce-developer- workshop More Free Online Tutorials
  • 22. Join us in the Developer Zone #forcewebinar Salesforce World Tour New York City Wednesday, November 19, 2014 Register here: http://sfdc.co/nyc2014
  • 23. Join us at the Developer Workshop December 5, 2014 London, United Kingdom Register early, seating is limited! https://bit.ly/elevate-london
  • 24. #forcewebinar Next Webinar Using Lightning Process Builder to clean up Existing Workflows December 3, 2014
  • 25. #forcewebinar Survey Your feedback is crucial to the success of our webinar programs. Thank you! http://bit.ly/javascriptVF
  • 26. #forcewebinar Q & A Joshua Birk Developer Evangelist @joshbirk Varun Dodla SMTS @varundodla Survey Link: http://bit.ly/javascriptVF