|
-
Dec 11th, 2001, 11:14 AM
#1
Thread Starter
Frenzied Member
What is the Netscape Equivilent for...
1) <SELECT NAME="id" STYLE="font-family: Verdana,helvetica; font-size:10; width: 275 px;" size="6">
2) visibility: hidden;
3)
Code:
var taiWin = 0
function travelAgentInfo() {
var intWidth = document.body.offsetWidth / 2 - 227;
var intHeight = document.body.offsetHeight / 2 - 1;
taiWin= window.open("tempInfo.asp","TAI","toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=455, height=370px, left:' + intWidth + ' top:' + intHeight ");
}
thanks
michael
-
Dec 11th, 2001, 12:03 PM
#2
Frenzied Member
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 11th, 2001, 12:10 PM
#3
Thread Starter
Frenzied Member
I don't get what you mean.
-
Dec 11th, 2001, 12:16 PM
#4
Hyperactive Member
Your standards mad you are CiberTHuG
-
Dec 11th, 2001, 12:18 PM
#5
Hyperactive Member
1) cant be done with netscape 4
2) that should work, but only on layers in netscape 4
3) not sure what it is that script is doing ??
-
Dec 11th, 2001, 12:34 PM
#6
Thread Starter
Frenzied Member
1) I haven't tried it yet but according to one site if I set the type to monospace the input box should be the same size in both browsers.
2) I hope you're wrong oh well...
3) It's just opening up a popup window. I think the prob may be that I call it from a 'link' like this:
Code:
<a href="JavaScript:travelAgentInfo()">Click here</a>
these all work in the newest vers of netscrap but not in the one before it.
progressive;
I think I jinxed myself when we were talking about my boss letting me be an IE only developer 
Thanks
Michael
-
Dec 11th, 2001, 12:37 PM
#7
Frenzied Member
Originally posted by progressive
Your standards mad you are CiberTHuG
Nah, I'm not mad. I just have little compassion for proprietary extensions or the users that use the browsers that support them.
Though I still can't find window.setTimeout() documented as part of any current standard.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 11th, 2001, 12:41 PM
#8
Black Cat
Originally posted by CiberTHuG
Though I still can't find window.setTimeout() documented as part of any current standard.
I was thinking - ECMA defines ECMA script, which is defined in such a way not to deal with web browsers, and W3C has recommendations for HTML and DOM etc, but not really the user agent as an object.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Dec 11th, 2001, 12:49 PM
#9
Frenzied Member
Originally posted by JoshT
I was thinking - ECMA defines ECMA script, which is defined in such a way not to deal with web browsers, and W3C has recommendations for HTML and DOM etc, but not really the user agent as an object.
Exactly, which means no one is in the position to define setTimeout().
Netscape/Mozilla have documentation on it. And since they introduced JavaScript, I don't mind giving them the right of way. And this is something that IE supports. But if Opera or K won't support it (I haven't tested), then I can't complain, because it isn't technically part of any standard.
*shrug* Would be nice if ECMA did more than a rough in of the language.
PS: I just got to thinking, why did ECMA define a RegEx object, but didn't care enough to define sleep()? Is there a standard IO or a file IO?
Last edited by CiberTHuG; Dec 11th, 2001 at 12:53 PM.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 11th, 2001, 03:08 PM
#10
Thread Starter
Frenzied Member
OK, I got the select:
Code:
<FONT FACE="verdana,arial,helvetica" SIZE="1"><SELECT Name="sel" width="275" STYLE="font-family: Verdana,helvetica; font-size:10; width:275px;" size=6></font>
but now I cant get text inputs...
in IE i put on on top of the other and did this:
Code:
<input name="test1" style="width:267;">
<input name="test2" size="50">
and it matched but then I looked at the page in netscape and test2 was big ....
whats wrong here (besides the obvious that we need to have one browser and one set of rules)?
thanks michael
-
Dec 11th, 2001, 03:56 PM
#11
Frenzied Member
Originally posted by msimmons
Code:
<input name="test1" style="width:267;">
<input name="test2" size="50">
and it matched but then I looked at the page in netscape and test2 was big ....
There is nothing wrong here. You are comparing apples and oranges. There is nothing that sets what pitch should be used when measuring the 50 characters.
Am I the only person who never uses inline style?
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Dec 11th, 2001, 04:07 PM
#12
Thread Starter
Frenzied Member
Code:
<!--
BODY {color: Black; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 8pt;}
TD {color: Black; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 8pt;}
INPUT {color: Black; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 8pt;}
SELECT {color: Black; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 8pt;}
OPTION {color: Black; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 8pt;}
TEXTAREA {color: Black; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 8pt;}
#boxhead {color: White; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 9pt;}
#boxhead2 {color: White; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 7pt;}
#reqfield {color: Red; font-family: Arial, Verdana, Gill Sans, sans-serif; font-size: 8pt;}
-->
</style>
it that what you mean about setting the pitch?
-
Dec 11th, 2001, 04:26 PM
#13
Frenzied Member
I don't know of anything in the specs that regulate how much space a UA should allocate for a character, much less fifty of them.
When you set the width, the default unit is px, and that is defined.
I checked at W3C, and the width property should apply to input elements.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|