Skip to content

Instantly share code, notes, and snippets.

View bruceyue's full-sized avatar

Bruce Yue bruceyue

View GitHub Profile
@peterknolle
peterknolle / remoteObjectNodes.page
Last active August 7, 2018 09:07
Visualforce Remote Objects and jsTree jQuery plugin
<apex:page >
<!-- download the jstree from jstree.com and upload the dist directory as a static resource -->
<link href="{!URLFOR($Resource.jsTree, 'themes/default/style.min.css')}" rel="stylesheet" />
<script src="{!URLFOR($Resource.jsTree, 'libs/jquery.js')}"></script>
<script src="{!URLFOR($Resource.jsTree, 'jstree.min.js')}"></script>
<script src="{!URLFOR($Resource.jsTree, 'jstree.min.js')}"></script>
<!--
Change the remoteObjectModel name="Account and
@bruceyue
bruceyue / Apex Page Block
Created September 1, 2012 05:41
Apex Page Block
<apex:page controller="" showHeader="true">
<script type="text/javascript">
</script>
<style type="text/css">
</style>
<apex:sectionHeader title="" subTitle="Receive Purchase Requests" />
<apex:pageMessages />
<apex:form >
<apex:pageBlock title="">
<apex:pageBlockButtons >
@visiongeist
visiongeist / Function hook
Created August 20, 2012 08:16
This plugin hooks into an existing jQuery function and calls a user defined function after a jQuery function was called.
/*
* Function hook jQuery plugin
* version 1.0
* author: Damien Antipa
* http://github.com/dantipa/
*/
(function(window, $, undefined){
/**
* Hooks into a given method