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

Phoca Gallery - image gallery extension
bigwill
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 23:19

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

Post 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
Last edited by bigwill on 06 Nov 2008, 00:34, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, I don't understand, on your site, no popup is displayed ?
If you find Phoca extensions useful, please support the project
bigwill
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 23:19

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

Post 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:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

no idea what can be wrong ? :( see if it is all ok in the generated html on your site
If you find Phoca extensions useful, please support the project
bigwill
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 23:19

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

Post 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 >
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply