Skip to content

Instantly share code, notes, and snippets.

@dancinllama
Created November 14, 2012 20:37
Show Gist options
  • Save dancinllama/4074621 to your computer and use it in GitHub Desktop.
Save dancinllama/4074621 to your computer and use it in GitHub Desktop.
vf page to redirect to login page
<apex:page showHeader="false" standardController="Trial__c" extensions="PAM1_ProvisioningLoginTrial">
<head>
<apex:includeScript value="{!URLFOR($Resource.jquerymin182, '/jquery-1.8.2.min.js')}" />
<script>
$j = jQuery.noConflict();
$j.post("{!url}", { username: "{!username}", password: "{!password}" },
function(data) {
if(data) {
window.href('{!url}');
}
},
"json"
);
</script>
</head>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment