You need to sign in to do that
Don't have an account?
How to make popup scrollable and also movable?
I have a popup which i need make it scrollable and movable(meaning one should be able to move it to any postion on the page).
<
styletype="text/css">
.customPopup{
background-color: grey;
border-style: solid;
border-width: 3px;
border-color:white;
left: 50%;
padding:10px;
position: absolute;
z-index: 9999;
scrollbar=yes;
resizable=no;
/* These are the 3 css properties you will need to tweak so the pop
up displays in the center of the screen. First set the width. Then set
margin-left to negative half of what the width is. You can also add
the height property for a fixed size pop up.*/
width: 40%;
margin-left: -3%;
top:70%;
}
</style>
these are all the attributes i have added for my popup block.
Hi,
You can try below code
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
How do i incorporate it with my code
My pop block is as below:
<apex:pageBlockSection>
<b/><apex:commandButtonvalue="Search Dealer"action="{!showPopup}"rerender="popup"/>
<apex:outputPanelid="popup">
<apex:pageMessages/>
<apex:outputPanelstyleClass="customPopup"layout="block"rendered="{!displayPopUp}">
<apex:outputLabelvalue="Dealer Name"for="dName"/>
<apex:inputTextid="dname"value="{!dealerName}"/>
<b><apex:commandButtonid="search"value="Find"action="{!searchDealer}"reRender="dealer"/></b>
----
</apex:pageBlockSection>
here block called popup wrks as pop up
please let me know if u need more info.
the code draggable popup not working , and i want in popup window i want to display labels and those are draggable ,when i click the label the colo will change how it is