Results 1 to 13 of 13

Thread: What is the Netscape Equivilent for...

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    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

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    How about use standards.
    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.

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    I don't get what you mean.

  4. #4
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    Your standards mad you are CiberTHuG

  5. #5
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    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 ??

  6. #6

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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

  7. #7
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  8. #8
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  9. #9
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  10. #10

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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

  11. #11
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  12. #12

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    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?

  13. #13
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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
  •  



Click Here to Expand Forum to Full Width