Skip to content

Instantly share code, notes, and snippets.

View VF.js
<apex:commandLink value="Save" onclick="return Validation();" action="{!saveSettings}"/>
function Validation() {
alert('returning false');
return false;
}
// Alert shows 'returning false', action still executes.
View Radar.cs
public static void Draw(SpriteBatch spriteBatch)
{
if (enabled)
{
for (int i = 0; i < objectPositions.Count(); i++)
{
Color myTransparentColor = new Color(255, 0, 0);
if (highlight == i)
You can’t perform that action at this time.