Saturday, July 28, 2012

POP UP:

POP UP:
This example shows how to display vf for a button as a pop up.You need jquery in your static resource before you  test this example.

<apex:page >
<apex:includeScript value="{!$Resource.jquery}" />
<apex:stylesheet value="{!URLFOR($Resource.jQuery_Colorbox, 'colorbox.css')}"/>
<apex:includeScript value="{!URLFOR($Resource.jQuery_Colorbox, 'jquery.colorbox-min.js')}" />
<!--<apex:includeScript value="{!URLFOR($Resource.jQueryUI189Start, 'js/jquery-ui-1.8.9.custom.min.js')}" />-->
<script src="../../soap/ajax/20.0/connection.js" type="text/javascript"></script>
<input class="btn" type="button" onclick="$.colorbox({href: '/apex/ScNdPoPuP',modal:true, width:330, overlayClose:false});" value="Complete" />
<input class="btn" type="button" onclick="$.colorbox({href: '/apex/ScNdPoPuP',modal:true, width:330, overlayClose:false});" value="Needs Attention" />
</apex:page>

No comments:

Post a Comment