Closed Thread Icon

Preserved Topic: Popup Window - IE and Netscape window size (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17903" title="Pages that link to Preserved Topic: Popup Window - IE and Netscape window size (Page 1 of 1)" rel="nofollow" >Preserved Topic: Popup Window - IE and Netscape window size <span class="small">(Page 1 of 1)</span>\

 
Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 12-30-2000 00:16

I have a simple code on my webpage that pops up a lil window (which is a form to fill out) but the windows turn out diff sizes in each browser. Any ideas? Here is my java code:

<script language="JavaScript">
<!--
function openAFFILIATES() {
window.open("affilapp.html","Window","height=482,width=418,directory=no,toolbar=no,
scrollbars=no,resizable=no,location=alignleft"); }
// -->
</script>

Hm I was also curious is there is a command to remove the titlebar? Im assuming no..but just curious.

thanks.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-30-2000 07:33

We had a discussion about this over at GN. Take a look at this thread and see if it helps any:
http://www.gurusnetwork.com/forum/Forum8/HTML/000023.html

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 12-30-2000 15:31

Thanks I'll go check it out.

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 12-31-2000 00:26

I dont think my solution is there. One of the solutions there was to remove Toolbars etc but my window has nothing in it..just a window with titlebar..

And they still are wrong ...any other ideas?
------------------------

I just relooked at it myself and found the actual problem..Now I just have to figure out how to fix this.

The problem is that NN and IE views my table/form code on the page different..NN takes up more space for the form..thus making the webpage too big for the window.

Now I have to figure a way to solve this..anyone know? I'm guessing the only solution is make the window big enough to fit the webpage in either browser..I will lose my effect of the webpage fitting the window perfect..but I don't see any other way?

Thanks in advance.

[This message has been edited by Shifter (edited 31-12-2000).]

[This message has been edited by Shifter (edited 31-12-2000).]

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-31-2000 01:55

Oh, yeah the different sizes for forms is a known problem and I think having a different page for each is the only solution. It's a bummer but there you are. I have exactly the same problem on one of my pages. I'm glad you found the problem!

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 12-31-2000 05:29

Ah ok. That's really annoying. =) I never did like Netscape..theres one of the reasons..hehe.

Ill just make 2 pages shouldn't be 2 hard..but will I have to do one of these Intro pages where they have to click on Netscape or IE or is there a java code I can put it the browser test and use one page if they have IE one if they have NN?

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 12-31-2000 05:42

You can use style information to code the form fields closer together. Doc did that when he modified the cgi scripts for the forums here. I did it for a rogue text box for a search engine. Try using
font-family: null as style info for the form fields, and that might make them cooperate a little more between the two browsers.

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-31-2000 07:46

Pugzly is right, you can get "close" using style sheet settings. But if you decide that won't cut it, you can use Javascript to open two different windows based on the browser.

Here is an example of what you could do:

// Determine browser.
var IE5=NN4=NN6=false
if(document.all)IE5=true
else if(document.layers)NN4=true
else if(document.getElementById)NN6=true

if(NN4) {
openwindow 1
} else if(IE5) {
openwindow 2
}

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 12-31-2000 09:30

Bugimus:
Hm I'd prolly rather just put the java code in to make sure it's right.

Problem is I have no java experience..well some but not much.

Can we contact throught icq or email and get a little more help of how to implement this?

Thanks for all the help..meanwhile I'll try to do it on my own :P

bunchapixels
Neurotic (0) Inmate
Newly admitted
posted posted 01-01-2001 22:42

pssst shifter - its javaSCRIPT, not java.

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 01-02-2001 04:26

See that proves my inexperience with it..I didn't even know java and javascript were different :P

bunchapixels
Neurotic (0) Inmate
Newly admitted
posted posted 01-02-2001 04:30

no big deal, but there is a huge difference.
[quote]
Java vs JavaScript
Java is a programming language developed by SUN. It is a compiled language and is used throughout the Internet. The programs are written and compiled, and then are run on the web server.
JavaScript is a language that was developed by Netscape. It is an interpreted language, although some pretty heavy-duty programs have been developed with it. Being an interpreted language, it requires that the interpreter exist on any machine that is going to run it, meaning the system the browser is running on. This is not a problem, however, as browsers have been supporting JavaScript for quite a while now.
[\quote]
briggl wrote that, and a whole lot more at: http://www.gurusnetwork.com/tutorials/javascript/javascript101/javascript101-1.html

anyway... back to your problem... im not sure if this can provide much help, but here is how you can find out how much room the page takes up in the different browser windows:

if (IE) height = document.body.scrollHeight;

if (NN) height = window.document.height;

if (N6) height = document.offsetHeight;

...not totally sure about the NS6 one though.

how to use this? well, this is icky, but you could probably do something like this:
if(window.height<height) //if the current height (not sure if that's correct) is less than the doc height
window.open(url, 'newpage', height=height) //open a new window with the proper height
window.close(this one...) //then close this one.

...or just use the values to alert the height, and then hard code the different popup options.

[This message has been edited by bunchapixels (edited 02-01-2001).]

« BackwardsOnwards »

Show Forum Drop Down Menu