I would like to display the validation result warning message in a pop window.
How this can be done?
how to have warning message displayed in popup window?
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
- priyank
- Ebase User
- Posts: 10
- Joined: Tue Sep 18, 2012 6:02 pm
- Location: India
- Contact:
Hi Xiaoli,
Assuming that you require the outcome of on a popup window, you can use the jquery reveal plugin from http://www.zurb.com/playground/reveal-modal-plugin
You can put a message control into panel and make that panel popup whenever required (in your case, when warning is shown).
Incase you want to show a confirmation popup box, you can put the code below in "HTML Element Properties" --> "Custom Event Handlers" --> "HTML" --> "OnClick" event for the control.
Hope this helps. Please explain the issue further in case you require anything more.
Assuming that you require the outcome of
Code: Select all
event.owner.addWarningMessage()
You can put a message control into panel and make that panel popup whenever required (in your case, when warning is shown).
Incase you want to show a confirmation popup box, you can put the code below in "HTML Element Properties" --> "Custom Event Handlers" --> "HTML" --> "OnClick" event for the control.
Code: Select all
javascript:var r = confirm("Are you sure you want to perform this action?");if(r==true){return true;}else{return false;}
0 x
Regards,
Priyank
Priyank Panchal, B.Sc.(Comp.), M.C.A.
Email: priyank@schnellsolutions.com
Website: www.schnellsolutions.com
Priyank
Priyank Panchal, B.Sc.(Comp.), M.C.A.
Email: priyank@schnellsolutions.com
Website: www.schnellsolutions.com
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
You will need a panel on the page which is hidden. You can use css to make the panel display: none. Give this an HTML element id of #showBox
Then you can use JQuery to load the panel content:
http://jqueryui.com/dialog/
You could have an onclick event on a button to load the panel:
Steve
You will need a panel on the page which is hidden. You can use css to make the panel display: none. Give this an HTML element id of #showBox
Then you can use JQuery to load the panel content:
http://jqueryui.com/dialog/
You could have an onclick event on a button to load the panel:
Code: Select all
$( "#showBox" ).dialog(
{
height: 700,
width: 1050,
title: "My Title",
modal: true,
zIndex: 100000
}
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi Xiaoli,
I have not tried this in IE 7 and below. So I am not sure about that. What do you mean, does not work well? Does it pop up at all.
You can adjust the size of the window by adjusting the width and the height attributes:
Steve
I have not tried this in IE 7 and below. So I am not sure about that. What do you mean, does not work well? Does it pop up at all.
You can adjust the size of the window by adjusting the width and the height attributes:
Code: Select all
.....
height: 700,
width: 1050,
......
0 x
- priyank
- Ebase User
- Posts: 10
- Joined: Tue Sep 18, 2012 6:02 pm
- Location: India
- Contact:
Hi Xiaoli,xren wrote:How can a panel become pop window?
Thanks,
Xiaoli
Sorry for the delay in reply.
By applying required css and jquery to a panel, it can be made to popup whenever required. The jquery reveal plugin simplifies it for the developers.
Whether it works on IE 7 & below depends on whether the browser supports css/jquery code used to make a popup. You can give it a try using http://www.zurb.com/playground/reveal-modal-plugin
Hope it helps.
0 x
Regards,
Priyank
Priyank Panchal, B.Sc.(Comp.), M.C.A.
Email: priyank@schnellsolutions.com
Website: www.schnellsolutions.com
Priyank
Priyank Panchal, B.Sc.(Comp.), M.C.A.
Email: priyank@schnellsolutions.com
Website: www.schnellsolutions.com
Who is online
Users browsing this forum: No registered users and 20 guests