Tag Archives: javascript remoting

Refreshing Visualforce Charts with Updated Data

Visualforce Pie Chart

Visualforce charting is one of the most popular features added to Visualforce while I’ve been writing documentation for the product, and JavaScript Remoting is one of the most powerful. Perhaps you’ve wondered how to combine the two. This article shows you how, with a complete source code sample that compares “traditional” Visualforce charting with the same chart implemented using JavaScript Remoting.

Apex Template: Visualforce Controller

Last week, we took a look at a skeletal version of a class implementing the asynchronous aspects of Apex: batch, scheduled and email. While powerful, it’s a corner of Apex developers don’t always have a use case to tread down into. This week, let’s look at something a lot more common: Visualforce controllers – quite possibly the most common use of Apex on the planet.

Create Animated Charts with Visualforce

Looking to use the new Visualforce Charting types now that its generally available? This article contains code walkthroughs, pictures, and links to other full examples on developerforce and GitHub. Check out these examples of all of the new chart types as well as a JavaScript remoting example for advanced rendering capabilities!

NOT Calling the REST API from JavaScript in Visualforce Pages!

The RemoteTK Visualforce Custom Component (comprising RemoteTK.component and RemoteTKController.cls) provides an abstraction very similar to the Force.com REST API, implemented via @RemoteAction methods in the component’s controller. RemoteTK offers similar functionality to forcetk.js, without consuming API calls.

Using jQuery BlockUI with Visualforce

I came across this post on the boards concerning using the jQuery BlockUI plugin, which was handy because I hadn’t had any exposure to the plugin previously. BlockUI is very handy way of controlling your interface to avoid unwanted user behavior. For instance, if you’re sending a JavaScript Remoting call over the wire which might take a decent amount of time to process on the Apex side, you could use BlockUI to grey out the page and display a message like this…

Bar Code and QR Code scanning using the Mobile SDK

I recently blogged about a sample mobile application built using a combination of Visualforce and other standard web technologies like HTML5, CSS3 and JavaScript (specifically JQuery Mobile). The application mobilizes the ‘Merchandise’ Custom Object by presenting a mobile optimized List and Detail View of data stored in that Object. I also demoed and dissected this application in […]

Mobile SDK Webinar Recording and Code

Last week, Eugene Oksman and I presented a webinar on the new Salesforce Mobile SDK. The SDK lets you develop mobile applications for Force.com and Database.com and the webinar included a high-level overview of the current mobile landscape, our mobile strategy going forward, and how to use the Mobile SDK to develop web and hybrid mobile […]

Using jQote2 for JavaScript Templating

I’ve been looking at different libraries which enable client side templates with JavaScript.  Client side templates allow applications to have more flexible front end interfaces, and may be especially useful for people looking to use more JavaScript Remoting and have less reliance on tags like repeat. The first library I started to tinker with was […]

Using Flex with JavaScript Remoting

Screen shot 2011-06-17 at 1.07.40 PM

Not sure why this didn’t occur to me when I first start developing with JavaScript Remoting, but it took Dave Carroll asking how I thought Flex would work with the feature before I started to put an example together.  I’ve finished adding that example to the HTML5 package from the earlier post and I have to say, it […]

Two Visualforce Pages: ActionFunction and JavaScript Remoting

We’ve seen a lot of attention about JavaScript Remoting while in developer preview (and if you need an introduction), and I’ll be going into more specific use cases in blog posts to come, but I thought it might be interesting to check out the same problem being solved in two completely different ways: the first […]