Tag Archives: 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. Continue reading

Create Animated Charts with Visualforce

Radar Chart

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! Continue reading

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. Continue reading

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… Continue reading

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 some detail in the Mobile SDK webinar that Eugene and I recorded recently. In addition to discussing web mobile apps, i.e. applications delivered entirely via the browser on the mobile device, we also covered hybrid mobile applications developed using the Salesforce Mobile SDK. Hybrid apps fall… Continue reading

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 applications. A recording of the webinar is now available. We’ve also posted the slides and compiled an FAQ based on the questions we received during the webinar. The only missing piece is the code that I demoed during the webinar. The code is available on… Continue reading

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 jQote2.  jQote2′s main goal appears to be as fast as possible, and the syntax of the templates should be very familiar to anyone who was worked with server-side scripting languages like ASP or PHP for such things.  jQote2 works seamlessly with jQuery as a… Continue reading

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 is a pretty impressive combination.  If you’re used to developing with Flex on Force.com, you’ve probably grown to love the Flex toolkit - and there is a lot to love about that toolkit.  However, if all you need to develop is, for example, some simple charts embedded… Continue reading

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 being the standard Visualforce ActionFunction component, and the second using JavaScript Remoting.  We’ll need to pages and one controller.

The use case is a bit random, I was actually tinkering with some jQuery for a question posted on the boards, so I wanted something… Continue reading

Quick Look Into JavaScript Remoting

Release notes can contain some wonderful surprises in them, as Quinton mentioned – it’s always good to looking for some gems in there.  Spring ‘11 is rolling out to general availability now, so you’ve either got your hands on it or should very soon.  While we’ve talked a lot about some of the great new features with the REST API or Chatter, let’s look at one that is a little more under the radar at the moment: JavaScript Remoting.

And when I say under the radar, I should more accurately put it that remoting is on the radar.  While some