NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: oggy on July 01, 2014, 11:37:39 PM

Title: Disabling popup window resize
Post by: oggy on July 01, 2014, 11:37:39 PM
Another question for more experienced folks...
Is ti possible to disable resizing of any popup window? I need to disable popup windows so the users always have exactly the same, predefined
windows height and widht?
Title: Re: Disabling popup window resize
Post by: Robert Iliuta on July 02, 2014, 11:00:22 PM
You can check on jQuery site on this example.

http://jqueryui.com/dialog/#modal-form

(see source code)

 dialog = $( "#dialog-form" ).dialog({
autoOpen: false,
resizable: false,
height: 300,
width: 350,
modal: true,



/Robert
Title: Re: Disabling popup window resize
Post by: oggy on July 02, 2014, 11:59:42 PM
Thanks, I will try this...
Title: Re: Disabling popup window resize
Post by: oggy on July 07, 2014, 02:05:52 AM
Thanks for inputs, works like a charm... I just add extra code in Before dialog option on form(s) and voila, I have an popup form(s) without resizable options.
Thanks again
Regards, Oggy
Title: Re: Disabling popup window resize
Post by: oggy on July 07, 2014, 02:21:35 AM
Ok, question for Mr. Bruce. Can you...  ???. Would you ;) put these options somewhere in template for popup forms:
loc:options = p_web.SetOption(loc:options,'autoOpen','false')
loc:options = p_web.SetOption(loc:options,'resizable:','false')
loc:options = p_web.SetOption(loc:options,'modal','true')

Regards, Oggy


[attachment deleted by admin]
Title: Re: Disabling popup window resize
Post by: Bruce on July 08, 2014, 01:15:06 AM
There are a lot of options for all the API widgets. I've deliberately not put all the options into the template because the template is crowded enough already I think.

There is always an embed point where you can set the options for any widget call, so I think you did it right.


cheers
Bruce

Title: Re: Disabling popup window resize
Post by: oggy on July 08, 2014, 01:43:44 AM
Good point, but I love lots of options ;)
Kinda adventure of searching for another nice option...
Regards, Oggy