By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,886 Members | 1,107 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,886 IT Pros & Developers. It's quick & easy.

Vertikale Scrollbar in Popup (IE)

P: n/a
Hi,

ich verwende folgenden Code, den ich im Internet gefunden habe, um
Informationen auf Anfrage in Popupfenstern zu öffnen:

// Script by Thomas Stich
// http://www.stichpunkt.de/beitrag/popup.html
// use it if you like it
//
// <a href="html-or.jpg" onclick="return popup(this,123,456)"
title="..."
// or
// <a href="html-or.jpg" onclick="return popup(this)" title="..."
var pop = null;

function popdown() {
if (pop && !pop.closed) pop.close();
}

function popup(obj,w,h) {
var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
if (!url) return true;
w = (w) ? w += 20 : 150; // 150px*150px is the default size
h = (h) ? h += 25 : 150;
var args = 'width='+w+',height='+h+',resizable';
popdown();
pop = window.open(url,'',args);
return (pop) ? false : true;
}

window.onunload = popdown;
window.onfocus = popdown;

Nun ist mir aufgefallen, dass der IE keine vertikale Scrollbar
anzeigt, falls der Anzeigeplatz nicht reicht. Wie kann ich das
beheben?

Gruß
Richard

May 19 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Richard!

This is an English JavaScript group, if you really want to ask
questions in German try de.comp.lang.javascript.

//
Das hier ist eine englische Newsgroup, guck dir mal
de.comp.lang.javascript an!
//

For the others:
Richard is using the code he posted to open additional information in a
popup window.
The problem is that the IE doesn't display a vertical scrollbar if the
content doesn't fit into the default window's size.

Just another issue is btw, that opening things in popup windows is worse
enough, it sucks even more if the user has to scroll to see the whole
content..
Pascal
Hi,

ich verwende folgenden Code, den ich im Internet gefunden habe, um
Informationen auf Anfrage in Popupfenstern zu öffnen:

// Script by Thomas Stich
// http://www.stichpunkt.de/beitrag/popup.html
// use it if you like it
//
// <a href="html-or.jpg" onclick="return popup(this,123,456)"
title="..."
// or
// <a href="html-or.jpg" onclick="return popup(this)" title="..."
var pop = null;

function popdown() {
if (pop && !pop.closed) pop.close();
}

function popup(obj,w,h) {
var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
if (!url) return true;
w = (w) ? w += 20 : 150; // 150px*150px is the default size
h = (h) ? h += 25 : 150;
var args = 'width='+w+',height='+h+',resizable';
popdown();
pop = window.open(url,'',args);
return (pop) ? false : true;
}

window.onunload = popdown;
window.onfocus = popdown;

Nun ist mir aufgefallen, dass der IE keine vertikale Scrollbar
anzeigt, falls der Anzeigeplatz nicht reicht. Wie kann ich das
beheben?

Gruß
Richard
May 19 '07 #2

P: n/a
On 19 Mai, 14:52, Pascal Ehlert <pascal.ehl...@odadata.euwrote:
Hi Richard!

This is an English JavaScript group, if you really want to ask
questions in German try de.comp.lang.javascript.
Ups,

I'm sorry. So lets try this in English. I'm using the following code
to opent user requested popups. My Problem is, that IE doesen't show a
vertical scrollbar, when the text is to long to display. Can somebody
help me?

// Script by Thomas Stich
// http://www.stichpunkt.de/beitrag/popup.html
// use it if you like it
//
// <a href="html-or.jpg" onclick="return popup(this,123,456)"
title="..."
// or
// <a href="html-or.jpg" onclick="return popup(this)" title="..."

var pop = null;

function popdown() {
if (pop && !pop.closed) pop.close();

}

function popup(obj,w,h) {
var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
if (!url) return true;
w = (w) ? w += 20 : 150; // 150px*150px is the default size
h = (h) ? h += 25 : 150;
var args = 'width='+w+',height='+h+',resizable';
popdown();
pop = window.open(url,'',args);
return (pop) ? false : true;

}

window.onunload = popdown;
window.onfocus = popdown;

May 19 '07 #3

P: n/a
Pascal Ehlert wrote on 19 mei 2007 in comp.lang.javascript:
Hi Richard!

This is an English JavaScript group, if you really want to ask
questions in German try de.comp.lang.javascript.
This is NOT an English language JavaScript group.

Although English is most often used in this NG,
and the chance of a succesful answer on a Q
is enhanced by writing in English,
this NG is an international one,
so all languages are allowed.

Some German, Spanish and Dutch threads
have to my knowledge been successful,
and many French ones.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 19 '07 #4

P: n/a
ASM
Richard a écrit :
>
function popup(obj,w,h) {
var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
if (!url) return true;
w = (w) ? w += 20 : 150; // 150px*150px is the default size
h = (h) ? h += 25 : 150;
var args = 'width='+w+',height='+h+',resizable';
var args = 'width='+w+',height='+h+',resizable=1,scrollbars=1 ';
popdown();
pop = window.open(url,'',args);
return (pop) ? false : true;
}


--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
May 21 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.