Iframe Overlay

7 views
Skip to first unread message

Aurimas

unread,
Nov 19, 2008, 9:11:13 AM11/19/08
to ubiquity-firefox
I want to ask user to fill a form, which is loaded into an iframe.
Currenty I do this by loading an iframe into an active document. But I
want the iframe to be overlayed and visible when I switch to another
tab too (like Google Notebook extension for example). I was looking in
XUL Overlays and XPCOM documentation, but can't find the answer.

Atul Varma

unread,
Nov 19, 2008, 11:19:18 AM11/19/08
to ubiquity...@googlegroups.com
Hi Aurimas,

I think that this kind of thing is normally done by all of the "sidebar" type extensions; Snowl has one that shows a stream-of-news style view, perhaps looking at its source code [1] might help?

I'd like it to be possible for users to be able to fill out mini-forms in the preview area of Ubiquity's command display, but unfortunately keyboard input isn't possible right now due to what appears to be a strange gecko bug on Windows (such things seem to work fine on OS X).

- Atul

[1] http://hg.mozdev.org/snowl/

Aurimas

unread,
Nov 19, 2008, 12:03:31 PM11/19/08
to ubiquity-firefox
But is there a way to do this without writing a separate firefox
extension?

On Nov 19, 6:19 pm, "Atul Varma" <var...@gmail.com> wrote:
> Hi Aurimas,
>
> I think that this kind of thing is normally done by all of the "sidebar"
> type extensions; Snowl has one that shows a stream-of-news style view,
> perhaps looking at its source code [1] might help?
>
> I'd like it to be possible for users to be able to fill out mini-forms in
> the preview area of Ubiquity's command display, but unfortunately keyboard
> input isn't possible right now due to what appears to be a strange gecko bug
> on Windows (such things seem to work fine on OS X).
>
> - Atul
>
> [1]http://hg.mozdev.org/snowl/
>

Aurimas

unread,
Nov 20, 2008, 12:25:47 PM11/20/08
to ubiquity-firefox
I have found a solution, which is actually much simpler than
expected :) Here we go:
window.open(url, name, 'width=500, height=300, centerscreen,
titlebar=no, chrome, dependent, dialog, alwaysRaised')

Aurimas

unread,
Nov 20, 2008, 1:25:07 PM11/20/08
to ubiquity-firefox
A more flexible version:

var url = 'http://www.google.com';
var name = 'ubiq';
var width = 510;
var height = 400;
var top = window.screen.availHeight - height;
var left = window.screen.availWidth - width;
var features = 'width='+width+', height='+height+', top='+top+',
left='+left+', titlebar=no, dependent';
var data = {value: 'wow'}; // an object which can by accessed and
changed by both windows: parent - data, child - window.arguments[0]
win = window.openDialog(url, name, features, data);
Reply all
Reply to author
Forward
0 new messages