窗口在哪里() [英] Where's the Window()

查看:126
本文介绍了窗口在哪里()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个强大的颜色选择器的大部分组件,但是我很难将它们拉到一起。


我是什么想要的是在加载应用程序时创建一个可立即使用但不可见的弹出对象

。点击一个颜色按钮,

这个东西应该弹出一个模态对话框。当

用户选择OK,取消或点击窗口关闭按钮时,它应隐藏。


" window.open(...)"打开一个窗口,当

应用程序加载时,这不是我想要的。我的开发平台,Konqueror上的Opera,

不支持新窗口(...)。这在Java中已经很简单了(我可以用Java来思考
)。


有一个Java示例我要去哪里

http://www.MartinRinehart .com / exampl ... r-chooser.html


(这是在XP专业版的Firefox中的一个slug - 使用任何其他浏览器或FF

与XP Home或任何早期的Windows。我不知道为什么。)


JavaScript版本会更好。

I''ve got most of the components of a robust color chooser but I''m
having trouble pulling them together.

What I want is to have a ready-to-use but not visible pop-up object
created when the application is loaded. On a click on a color button,
this thing should pop up as a modal dialog. It should hide when the
user chooses OK, Cancel or clicks the window closing button.

"window.open(...)" opens a window, which is not what I want when the
application loads. My development platform, Opera on Konqueror,
doesn''t support "new Window(...)". This was dead simple in Java (and I
may still be thinking in Java).

There''s a Java example of where I''m going at

http://www.MartinRinehart.com/exampl...r-chooser.html

(This is a slug in Firefox on XP Pro - use any other browser or FF
with XP Home or any earlier Windows. I''ve no clue why.)

The JavaScript version will be better.

推荐答案

Martin Rinehart schreef:
Martin Rinehart schreef:

我有一个强大的颜色选择器的大部分组件但是我

无法将它们拉在一起。


我想要的是有一个即用但不可见的弹出对象
$ b加载应用程序时创建$ b。点击一个颜色按钮,

这个东西应该弹出一个模态对话框。当

用户选择OK,取消或点击窗口关闭按钮时,它应隐藏。


" window.open(...)"打开一个窗口,当

应用程序加载时,这不是我想要的。我的开发平台,Konqueror上的Opera,

不支持新窗口(...)。这在Java中已经很简单了(我可以用Java来思考
)。


有一个Java示例我要去哪里

http://www.MartinRinehart .com / exampl ... r-chooser.html


(这是在XP专业版的Firefox中的一个slug - 使用任何其他浏览器或FF

与XP Home或任何早期的Windows。我不知道为什么。)


JavaScript版本会更好。
I''ve got most of the components of a robust color chooser but I''m
having trouble pulling them together.

What I want is to have a ready-to-use but not visible pop-up object
created when the application is loaded. On a click on a color button,
this thing should pop up as a modal dialog. It should hide when the
user chooses OK, Cancel or clicks the window closing button.

"window.open(...)" opens a window, which is not what I want when the
application loads. My development platform, Opera on Konqueror,
doesn''t support "new Window(...)". This was dead simple in Java (and I
may still be thinking in Java).

There''s a Java example of where I''m going at

http://www.MartinRinehart.com/exampl...r-chooser.html

(This is a slug in Firefox on XP Pro - use any other browser or FF
with XP Home or any earlier Windows. I''ve no clue why.)

The JavaScript version will be better.



你的问题是什么?

当有人按下按钮时如何打开一个新窗口?


要做到这一点,你需要window.open()而不是新窗口()。


问候,

Erwin Moller


-

"构建软件设计的方法有两种:一种方法是

使它变得如此简单以至于显然没有任何不足之处,而另外一种方法是让它变得如此复杂以至于没有明显的b $ b缺陷。第一种方法要困难得多。

- C.A.R. Hoare

What is your question?
How to open a new window when somebody pushes the button?

To do that you''ll need window.open() not new Window().

Regards,
Erwin Moller

--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare


Martin Rinehart写道:
Martin Rinehart wrote:

我有一个强大的颜色选择器的大部分组件但是我很难把它们拉到一起。


我想要的是有一个现成但不可见的弹出对象

加载应用程序时创建。点击一个颜色按钮,

这个东西应该弹出一个模态对话框。当

用户选择OK,取消或点击窗口关闭按钮时,它应隐藏。


" window.open(...)"打开一个窗口,当

应用程序加载时,这不是我想要的。我的开发平台,Konqueror上的Opera,

不支持新窗口(...)。这在Java中已经很简单了(我可以用Java来思考
)。


有一个Java示例我要去哪里

http://www.MartinRinehart .com / exampl ... r-chooser.html


(这是在XP专业版的Firefox中的一个slug - 使用任何其他浏览器或FF

与XP Home或任何早期的Windows。我不知道为什么。)


JavaScript版本会更好。
I''ve got most of the components of a robust color chooser but I''m
having trouble pulling them together.

What I want is to have a ready-to-use but not visible pop-up object
created when the application is loaded. On a click on a color button,
this thing should pop up as a modal dialog. It should hide when the
user chooses OK, Cancel or clicks the window closing button.

"window.open(...)" opens a window, which is not what I want when the
application loads. My development platform, Opera on Konqueror,
doesn''t support "new Window(...)". This was dead simple in Java (and I
may still be thinking in Java).

There''s a Java example of where I''m going at

http://www.MartinRinehart.com/exampl...r-chooser.html

(This is a slug in Firefox on XP Pro - use any other browser or FF
with XP Home or any earlier Windows. I''ve no clue why.)

The JavaScript version will be better.



你可能想要div中的内容而不是单独的

窗口。你可以隐藏div和位置/在需要时显示它。浏览器

一般都没有模态的概念。在任何情况下都是窗户,所以你需要走这条路。

You''ll probably want the content in a div rather than a separate
window. You can hide the div and position/show it when needed. Browsers
generally don''t have the idea of "modal" windows in any case, so you''ll
need to go this route.


Daniel Orner写道:
Daniel Orner wrote:

你可能想要div中的内容而不是单独的

窗口。你可以隐藏div和位置/在需要时显示它。浏览器

一般都没有模态的概念。在任何情况下都是窗户,所以你需要这个路线才能获得

You''ll probably want the content in a div rather than a separate
window. You can hide the div and position/show it when needed. Browsers
generally don''t have the idea of "modal" windows in any case, so you''ll
need to go this route.



自己窗口中的颜色选择器非常好,因为你可以将它拖动到周围(不可避免:它弹出你想要的东西)看看)。请

我需要写一个可拖动的div小部件吗?

The color chooser in its own window is quite nice as you can drag it
around (inevitable: it pops up over something you want to look at). Do
I need to write a draggable div widget?


这篇关于窗口在哪里()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆