Skip to content

Instantly share code, notes, and snippets.

View quintonwall's full-sized avatar

Quinton Wall quintonwall

View GitHub Profile
<apex:page showHeader="false" sidebar="false" standardController="Rig__c" extensions="RigController">
<apex:stylesheet value="{!URLFOR($Resource.iids, 'iids-min/css/iids.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.iids, 'iids-min/css/responsive.css')}"/>
<script type="text/javascript">
Visualforce.remoting.timeout = 120000; // Set timeout at page level
var j$ = jQuery.noConflict();
function saveRig() {
public class RigController {
public RigController(ApexPages.StandardController controller) { }
@RemoteAction
public static String saveRig(String rigtype, String projectdetails, String discussion) {
String status = '';
Rig__c rig = new Rig__c();
@quintonwall
quintonwall / AddressFuture
Created June 17, 2013 17:17
Example of using JSON serialization to pass complex objects to @future handlers in Apex
/**
* Example of using JSON serialization to pass complex objects to @future handlers in Apex
* $author: qwall@salesforce.com
*/
public with sharing class AddressFuture {
public AddressFuture () {
List<String> addresses = new List<String>();
AddressHelper ah1 = new AddressHelper('1 here st', 'San Francisco', 'CA', '94105');