Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

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

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

On 19 Mai, 14:52, Pascal Ehlert <pascal.ehl@odadata.eu> wrote:

> 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;
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)

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 dj dpass
Stephane Moriaux and his (less) old Mac already out of date
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc