Posts tagged jquery
Posts tagged jquery
4 notes &
Another code sample to demonstrate the new jQuery Grid (pre1.9) widget on the Force.com platform. This sample hooks up paging and selecting.
References
- Salesforce AJAX Toolkit
- jQuery UI Grid (Github)
- jQuery UI Grid Planning & Development Wiki
1 note &
This code sample demonstrates how to use jQuery Template Plugin on the Force.com platform. This sample uses a SOQL query to select user data. The rendered template is switched onclick to an editable row. The updates are then persisted back to salesforce using the .update() javascript method.
References
- Salesforce AJAX Toolkit
- jQuery Templates (Github)
0 notes &
I’ve had a healthy amount of exposure to the Salesforce.com platform from an integration standpoint, and I’ve done some tinkering with the web front-end and eclipse IDE in the past, but recently I’ve been involved in a project that’s going to be developed directly on the SFDC platform. Here are some of my initial thoughts on it…
1 note &
Jörn Zaefferer writes a good summary about creating a jQuery Widget: A jQuery UI Combobox: Under the hood, which was the basis of this official autocomplete demo.
Some customizations I made from here include:
0 notes &
The majority of my work the last few weeks has been HTML + JQuery + JSON… once work calms down a bit, these are some things I want to share:
Have fun in the snow.
0 notes &
This simple example shows how you can stringify a simple array to store search history in a cookie, but the same principle can be used for complex data too.
1 note &
Complex JSON post data was possible with MVC2, but it comes out of the box with MVC3, and it couldn’t be much easier. This code sample should sum it all up, you’ll just need the json2.js library, which gives you JSON.stringify(), and JSON.parse().
0 notes &
In an effort to clean up some of our ajax code, I wrote a helper to load json from a given url (using http get), render a template with the data, and invoke a callback. The nice part about the helper is that it wraps the error handler (something a simple $.get() doesn’t give you access to.)
0 notes &
This git branch shows a simple change to the jQuery Template tmpl() function to add an $index property to the dataItem.
Usage:
<!— jQuery UI Tabs —>
<script id=”tabTemplate” type=”text/x-jquery-tmpl”>
<div id=“tab-${$index + 1}”>
<!— render tab contents here… —>
</div>
</script>
0 notes &
Good post I came across the other day on how to post JSON data to an MVC2 controller. Also, just noticed the modification to the JsonModelBinder someone posted in the comments that I want to pull into my project today.