Re: [whatwg] IFRAME with conrols

2014-11-17 Thread Anne van Kesteren
On Mon, Nov 17, 2014 at 1:34 AM, Biju bijumaill...@gmail.com wrote:
 If an iframe have controls attribute it should be behave/displayed
 like a MDI child window.

Why would we replace one form of bad UI with an equivalent other?
dialog can be used.


-- 
https://annevankesteren.nl/


Re: [whatwg] IFRAME with conrols

2014-11-17 Thread Biju
On 17 November 2014 03:11, Anne van Kesteren ann...@annevk.nl wrote:
 Why would we replace one form of bad UI with an equivalent other?
 dialog can be used.

Thanks, I tried in google chrome, It will be good for many case.
But there is no way for user to resize, or move the dialog on the screen.
ie, some times user may want see the content of parent page, and may
be the dialog is obstructing it.


[whatwg] IFRAME with conrols

2014-11-16 Thread Biju
It is years since we have popup blockers. Still most intranet
application uses window.open() frequently.
Usually it is to easily code a closable window with close/min/max controls.

As a user, I wish we could encourage to stop the need for coding popup window.
Can HTML5 add controls attribute to iframe, something similar to
video tag controls attribute.

Or even better if we can specify what all controls to show/not show.
(ideally by default show all, and  explicitly code not show options)

iframe src=some.html controls=max:no, min:no, close:yes,
resize:yes, popout:yes, move:yes /iframe

If an iframe have controls attribute it should be behave/displayed
like a MDI child window.

And have some methods like.
iframeObject.open(); // display window with current url
iframeObject.open(url); // display window navigate to new url
iframeObject.close(); // hide window
iframeObject.minimize();
iframeObject.maximize();
iframeObject.resize(width, height);
iframeObject.move(x, y);

Cheers