how to have warning message displayed in popup window?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

how to have warning message displayed in popup window?

#1

Postby xren » Wed Mar 27, 2013 1:35 pm

I would like to display the validation result warning message in a pop window.

How this can be done?
0 x

User avatar
priyank
Ebase User
Posts: 10
Joined: Tue Sep 18, 2012 6:02 pm
Location: India
Contact:

#2

Postby priyank » Thu Mar 28, 2013 11:35 am

Hi Xiaoli,

Assuming that you require the outcome of

Code: Select all

event.owner.addWarningMessage()
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.

Code: Select all

javascript:var r = confirm("Are you sure you want to perform this action?");if(r==true){return true;}else{return false;}
Hope this helps. Please explain the issue further in case you require anything more.
0 x
Regards,
Priyank

Priyank Panchal, B.Sc.(Comp.), M.C.A.
Email: priyank@schnellsolutions.com
Website: www.schnellsolutions.com

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Thu Apr 04, 2013 4:38 pm

How can a panel become pop window?

Thanks,
Xiaoli
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#4

Postby Steve » Fri Apr 05, 2013 3:17 pm

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:

Code: Select all

$( "#showBox" ).dialog(
	{
	
	                height: 700,
	                width:  1050,
	                title: "My Title",
	                modal: true,
	                zIndex: 100000
}	
Steve
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#5

Postby xren » Tue Apr 09, 2013 5:27 pm

It seems the pop up does not work well in older version IE (7). Is that right?
And how can I change the size of the window?

Thanks,
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#6

Postby Steve » Wed Apr 10, 2013 8:47 am

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:

Code: Select all

.....
 height: 700, 
 width:  1050, 
......
Steve
0 x

User avatar
priyank
Ebase User
Posts: 10
Joined: Tue Sep 18, 2012 6:02 pm
Location: India
Contact:

#7

Postby priyank » Fri Apr 12, 2013 9:35 am

xren wrote:How can a panel become pop window?

Thanks,
Xiaoli
Hi 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


Who is online

Users browsing this forum: No registered users and 8 guests