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);



On Nov 20, 7:25 pm, Aurimas <[EMAIL PROTECTED]> wrote:
> 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')
>
> On Nov 19, 7:03 pm, Aurimas <[EMAIL PROTECTED]> wrote:
>
> > But is there a way to do this without writing a separate firefox
> > extension?
>
> > On Nov 19, 6:19 pm, "Atul Varma" <[EMAIL PROTECTED]> 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/
>
> > > On Wed, Nov 19, 2008 at 9:11 AM, Aurimas <[EMAIL PROTECTED]> wrote:
>
> > > > 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.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to