Last active
August 29, 2015 14:20
-
-
Save stefangoor/4a67e03ad4af25a49929 to your computer and use it in GitHub Desktop.
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> | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" /> | |
<div> | |
<h1>This is the Managed Package page</h1> | |
</div> | |
<div id="baseUrlLink" style="display: none;"> | |
<apex:outputLink value="/">BASE URL</apex:outputLink> | |
</div> | |
<iframe id="customPageIFrame" src="UserCustomPage" width="500" height="500"/> | |
<script> | |
function updateIFrameSrc() { | |
var baseURL = jQuery('div#baseUrlLink > a').attr('href'); | |
var customPageUrl = baseURL + 'apex/UserCustomPage'; | |
jQuery('iframe#customPageIFrame').attr('src', customPageUrl); | |
} | |
jQuery(document).ready(function() { | |
updateIFrameSrc(); | |
}); | |
</script> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment