Page 1 of 1

[ok] standard pop-up : window.open problem.

Posted: 05 Nov 2008, 12:03
by bigwill
hi,
here is my problem that i can't solve ...
I've modified the window.open java function into components/com_phocagallery/views/category /view.html.php (frontend) on lines 146 to 149 to open the standard pop-up like a normal page with menubar.
The problem is that i don't know how to force this popup to use scrollbars.
I've tried :window.open(this.href,'_self,scrollbars=yes') but doesn't work. Even if i try to add scrollbars=yex in normal code (without my hack), it doesn't work ...
Need these scrollbars cause of my pictures : have a look, just clic on a thumb.

Need help :x

Re: standard pop-up : window.open problem.

Posted: 05 Nov 2008, 23:32
by Jan
Hi, I don't understand, on your site, no popup is displayed ?

Re: standard pop-up : window.open problem.

Posted: 06 Nov 2008, 00:07
by bigwill
Sorry, i'm not clear.
In fact i want the pop-up to open just like if it was a normal window ; so i've modified the code :

Code: Select all

$button->set('methodname', 'js-button');
$button->set('options', "window.open(this.href,'win2','width=".$front_popup_window_width.",height=".$front_popup_window_height.",menubar=no,resizable=yes'); return false;");
$buttonOther->set('methodname', 'js-button');
$buttonOther->set('options', "window.open(this.href,'win2','width=".$front_popup_window_width.",height=".$front_popup_window_height.",menubar=no,resizable=yes'); return false;");
to

Code: Select all

$button->set('methodname', 'js-button');
$button->set('options', "window.open(this.href,'_self'); return false;");			
$buttonOther->set('methodname', 'js-button');
$buttonOther->set('options', "window.open(this.href,'_self'); return false;");
hoping the window.open display scrollbars cause pictures i'm using are700px height, and on a 17" screen, the bottom where my navigation module is do not appear.

But even specifying "scrollbars=yes", they don't appear.
The window opens correctly but without scrollbars :shock:

Re: standard pop-up : window.open problem.

Posted: 06 Nov 2008, 00:25
by Jan
no idea what can be wrong ? :( see if it is all ok in the generated html on your site

Re: standard pop-up : window.open problem.

Posted: 06 Nov 2008, 00:33
by bigwill
Whao ... i've found !! :twisted:

not possible with the javascript, so i focused on css ... It's so easy :x
Just put "overflow:auto" and a fixed height in <div >

Re: [ok] standard pop-up : window.open problem.

Posted: 06 Nov 2008, 23:34
by Jan
Ok