Hi,
I searched the forum for popups and read some posts about popping up panels via jqueryui. How do I popup Ebase Forms and Pages, any thoughts, examples?
Regards, Harry
popup forms and pages
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 118
- Joined: Tue Oct 23, 2012 7:01 am
- Location: The Netherlands
- dvanhussel
- Ebase User
- Posts: 161
- Joined: Fri Oct 19, 2007 12:45 pm
- Location: Haarlem, the Netherlands
Hi,
Do you mean starting a second form from within a form as popup?
I have used Twitter bootstrap to do this (it can be done also with Jquery UI, I think)
For examples of Bootstrap see: http://getbootstrap.com/2.3.2/getting-s ... l#examples
Add bootstrap css and Javascipt and Jquery JavaScript to your page.
On the 'host'-page add this to the button onclick event:
in a client script:
where 'FORMID&PARAMETER=Test' should be replaced with the name and url parameters of the form you want to popup.
add this HTML at the bottom of your form:
Hope this helps!
Do you mean starting a second form from within a form as popup?
I have used Twitter bootstrap to do this (it can be done also with Jquery UI, I think)
For examples of Bootstrap see: http://getbootstrap.com/2.3.2/getting-s ... l#examples
Add bootstrap css and Javascipt and Jquery JavaScript to your page.
On the 'host'-page add this to the button onclick event:
Code: Select all
//populate the modal with an iframe, setting paramaters for form
populateModal();
$('#modifyModal').modal({
keyboard: false,
backdrop: 'static'
});
Code: Select all
function populateModal(){
// create an iframe with ID = modalFrameId in the dialog window, then open the dialog $("#modifyModal .modal-body").html('<iframe id="modalIframeId" width="100%" height="600" marginWidth="0" marginHeight="0" frameBorder="0" scrolling="no" />');
// locate the iFrame and set the iFrame source to be the Xi form to run. Add in the form parameter by locating the value of the hidden form field contained in the panel that was clicked.
$("#modalIframeId").attr("src","/ufs/ufsmain?formid=FORMID&PARAMETER=Test");
}
window.closeModal = function(){
$('#modifyModal').modal('hide');
};
where 'FORMID&PARAMETER=Test' should be replaced with the name and url parameters of the form you want to popup.
add this HTML at the bottom of your form:
Code: Select all
<div id="modifyModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Caption</h3>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
0 x
Who is online
Users browsing this forum: No registered users and 5 guests