Created
November 14, 2012 20:37
-
-
Save dancinllama/4074621 to your computer and use it in GitHub Desktop.
vf page to redirect to login page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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