HighDots Forums  

showModelessDialog

Javascript JavaScript language (comp.lang.javascript)


Discuss showModelessDialog in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
oeyvind toft
 
Posts: n/a

Default showModelessDialog - 12-04-2004 , 07:01 PM






I`m dynamicly creating a doc for a modeless window in IE 6..

win= showModelessDialog(oArgs, window, sFeatures);
win.document.title = 'some title';

doesnt work.

Any ideas ?

oeyvind
--
http://home.online.no/~oeyvtoft/ToftWeb/





Reply With Quote
  #2  
Old   
RobG
 
Posts: n/a

Default Re: showModelessDialog - 12-04-2004 , 07:34 PM






oeyvind toft wrote:
Quote:
I`m dynamicly creating a doc for a modeless window in IE 6..

win= showModelessDialog(oArgs, window, sFeatures);
win.document.title = 'some title';
[...]

It could be for a number of reasons - you haven't explained what oArgs,
window or sFeatures are.

Here is Microsoft's documentation, it includes working examples (though
I didn't test them).

<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodelessdialog.asp>

Needless to say, showModelessDialog is a Microsoft invention that is
not well supported in other browsers (if at all).

--
Rob


Reply With Quote
  #3  
Old   
oeyvind toft
 
Posts: n/a

Default Re: showModelessDialog - 12-04-2004 , 08:29 PM



"RobG" <rgqld (AT) iinet (DOT) net.auau> skrev i melding
news:41b2587d$0$25785$5a62ac22 (AT) per-qv1-newsreader-01 (DOT) iinet.net.au...

Quote:
It could be for a number of reasons - you haven't explained what oArgs,
window or sFeatures are.
thanks Rob

The oArgs, window and sFeatures stuff isnt importaint here.

What puzzles me is that I cant do 'win.document.title = 'some title';'

Oeyvind

--
http://home.online.no/~oeyvtoft/ToftWeb/






Reply With Quote
  #4  
Old   
RobG
 
Posts: n/a

Default Re: showModelessDialog - 12-04-2004 , 10:07 PM



oeyvind toft wrote:
[...]
Quote:
What puzzles me is that I cant do 'win.document.title = 'some title';'

Ah, so you are trying to change the title element of the document in
the child window?

There is a previous thread regarding changing the title of the current
document that may be useful on 17 Sept. Search the archives for:

"How do I change the document title?"

In case you can't find it, some relevant parts are below:

Yann-Erwan Perio wrote:
Quote:
Richard Trahan wrote:

[changing title of the document]

In the interest of higher education, what was wrong with my node method?


According to the DOM/HTML specification the HTMLTitleElement inherits
from HTMLElement, which itself inherits from the core Element interface,
which gives it appropriate DOM methods. Since HTML defines the content
of TITLE as PCDATA, the title should be able to have text nodes and
change their node values.

However, AFAICS, the specification does not state that the [normalized]
text nodes inside the title should be considered as the title's value:-)

While IE has therefore decided to not create a text node, Mozilla and
Opera have however made the decision to have a text node for the title
value; in this regard, since changing the node's value does nothing, it
could probably be considered as a "bug" in those browsers, but certainly
not in regards of the reference.

Apart from altering document.title, there's another standard way to
change the title, though probably less supported: change the text
property of the TITLE element.


URL:http://www.w3.org/TR/2003/REC-DOM-Le...ml#ID-79243169

Quote:


--
Rob


Reply With Quote
  #5  
Old   
oeyvind toft
 
Posts: n/a

Default Re: showModelessDialog - 12-05-2004 , 04:53 AM



Thanks a lot for your help Rob.

However, I`ve deicded to use a premade html file as the modeless window
source instead of
a dynamicly created one. Saves me more trouble with this title thing...

(I`m able to set the title on the dynamicly created modeless, but it just
doesnt show up
in the title bar. And I dont know how to 'sneak' in the title via the
showModelessDialog method).

Thanks for the effort !

Oeyvind

--
http://home.online.no/~oeyvtoft/ToftWeb/





Reply With Quote
  #6  
Old   
Razzbar
 
Posts: n/a

Default Re: showModelessDialog - 12-05-2004 , 01:35 PM



RobG <rgqld (AT) iinet (DOT) net.auau> wrote


Quote:
Needless to say, showModelessDialog is a Microsoft invention that is
not well supported in other browsers (if at all).
It should be, though. Dialog boxes have been on computer screens for
twenty years!

FURTHERMORE: Modeless dialogs can be faked with a new window, but a
modeless dialog can not, except for 'confirm()', 'alert()' and
input(). The programmer can not create a general modeless dialog
except for MS browsers. When you need a modeless dialog, you
reall do NEED one.

ALL browsers should support modeless dialogs!


Reply With Quote
  #7  
Old   
Razzbar
 
Posts: n/a

Default Re: showModelessDialog - 12-05-2004 , 01:39 PM



DAMN IT, why don't I proofread my posts?!?!?!?!?

I wrote 'modeless' when I meant 'modal'. This is what I MEANT
to say...


RobG <rgqld (AT) iinet (DOT) net.auau> wrote


Quote:
Needless to say, showModelessDialog is a Microsoft invention that is
not well supported in other browsers (if at all).
It should be, though. Dialog boxes have been on computer screens for
twenty years!

FURTHERMORE: Modeless dialogs can be faked with a new window, but a
***modal*** dialog can not, except for 'confirm()', 'alert()' and
input(). The programmer can not create a general ***modal*** dialog
except for MS browsers. When you need a ***modal*** dialog, you
reall do NEED one.

ALL browsers should support ***modal*** dialogs!


Reply With Quote
  #8  
Old   
RobG
 
Posts: n/a

Default Re: showModelessDialog - 12-05-2004 , 05:42 PM



Razzbar wrote:
[...]
Quote:
It should be, though. Dialog boxes have been on computer screens for
twenty years!
Hmmm, that's a matter of philosophy. A browser is very different from
a standard application platform. Your content is being hosted in
someone else's application, so you should play by their rules. If you
want full control of the UI, write a standard application in C++ or
Java or whatever. Or write your own browser that does provide modeless
dialogs and ask users to only use your browser on your site.

Quote:
FURTHERMORE: Modeless dialogs can be faked with a new window, but a
modeless dialog can not...
Errr, not quite sure what you mean.

Quote:
except for 'confirm()', 'alert()' and
input().
But some sites still try to use confirm and prompt dialogs to get you to
click on the few modeless dialogs that are allowed.

Quote:
The programmer can not create a general modeless dialog
except for MS browsers. When you need a modeless dialog, you
reall do NEED one.
It's quite easy to program around modeless dialogs - just accept that
the user is in control. I have yet to find a situation where it was
*impossible* to design around a "required" modeless dialog.

Quote:
ALL browsers should support modeless dialogs!
I disagree.

--
Rob


Reply With Quote
  #9  
Old   
Randy Webb
 
Posts: n/a

Default Re: showModelessDialog - 12-05-2004 , 07:11 PM



Razzbar wrote:
Quote:
DAMN IT, why don't I proofread my posts?!?!?!?!?

I wrote 'modeless' when I meant 'modal'. This is what I MEANT
to say...


RobG <rgqld (AT) iinet (DOT) net.auau> wrote



Needless to say, showModelessDialog is a Microsoft invention that is
not well supported in other browsers (if at all).


It should be, though. Dialog boxes have been on computer screens for
twenty years!
So have non-modal dialog boxes. Whats your point?

Quote:
FURTHERMORE: Modeless dialogs can be faked with a new window, but a
***modal*** dialog can not, except for 'confirm()', 'alert()' and
input(). The programmer can not create a general ***modal*** dialog
except for MS browsers. When you need a ***modal*** dialog, you
reall do NEED one.
Example? And if you think you need that much control, write your own App
and stop trying to do it in a web browser.

Quote:
ALL browsers should support ***modal*** dialogs!
Why?

And, how do you suppose a modal dialog should work in tabbed browsers?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq


Reply With Quote
  #10  
Old   
glakk@potatoradio.f2s.com
 
Posts: n/a

Default Re: showModelessDialog - 12-06-2004 , 02:03 PM




RobG wrote:

Quote:
Errr, not quite sure what you mean.
That's because I was sloppy with terms. Please ignore the
post. I clarified in a later post.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.