NetTalk Central

Author Topic: Disabling popup window resize  (Read 4505 times)

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Disabling popup window resize
« 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?

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Disabling popup window resize
« Reply #1 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

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Disabling popup window resize
« Reply #2 on: July 02, 2014, 11:59:42 PM »
Thanks, I will try this...

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Disabling popup window resize
« Reply #3 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

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Disabling popup window resize
« Reply #4 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]
« Last Edit: July 07, 2014, 02:34:12 AM by oggy »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Disabling popup window resize
« Reply #5 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


oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Disabling popup window resize
« Reply #6 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