473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Vertikale Scrollbar in Popup (IE)

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
4 2417
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Z | last post by:
Hi, I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens with IE 5.5 on Win2k): If I set scrolling="auto" to frame, IE reserves space where vertical scrollbar normally...
4
by: darius | last post by:
Hello, I seem to be having trouble with a rather simple problem. I am opening a new window with the window.open command, and even though I set scrollbar=yes, I can't seem to get the window to...
5
by: Spondishy | last post by:
Hi, I am using the following in my stylesheet to center divs in firefox. html>body { font-size: 13px; } div.centerdiv {
1
by: Goffin | last post by:
Hey I have an asp.net datagrid width a scrollbar. This scrollbar is placed using a div-tag around the grid with a style property overflow:scrolling, a width an a height. This works very well in...
14
by: Michael Weis | last post by:
Hello all, as a non-professional in these things, I searched for this topic but found no satisfying answer: I have to create a site with 3 frames. (Please no diskussion about the sense of...
1
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where...
3
hsriat
by: hsriat | last post by:
How can I temporarily disable vertical scrollbar? I have replaced confirmation boxes and alert boxes with inlay popup DIVs. But while they are on the screen, I need to disable scrollbar of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.