[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Pop-up venster met variabele hoogte/breedte
Pagina 1 van 1

Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 29 maart 2006 22:08
door KillerSponge
Ik ben dus echt een ramp met javascript, en ik gebruik het dan ook liever niet... helaas heb je af en toe geen keus Razz

Ik ben een gallery-script aan het schrijven in php, en werk daarbij met tumbnails. Nu is het natuurlijk de bedoeling dat als je op die tumbnails klikt, je de volledige versie te zien krijgt. Maar, de hoogte/breedte van het pop-up venster moeten zich eigenlijk wel aanpassen aan de grootte van het plaatje. Daar heb ik dit scriptje voor gemaakt:

[code="javascript"]<script language="JavaScript">
function new_window(url,width,height)
{
par = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=' + width + ',height=' + height + ',left=0,top=0';
window.open(url,'Link',par);
}
</script>[/code]

De pop-up opent nu wel, maar als een mini-popup met minimale hoogte/breedte. De variabelen komen allemaal wel goed door (heb ik getest), dus het lijkt er op dat de variabele width en height niet goed terecht komen....

Weet iemand wat ik hier fout doe? :s

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 07:15
door Derk
en nu post je er niet bji hoe je het script aanroept, hoe kunnen wij het dan testen?

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 08:56
door Anthony
Wat jij fout doet is werken met een irritante popup. Razz

Laat vallen dat script, werk met LightBox JS en je voelt je direct een pak gelukkiger Smile

* Ziet net dat er al een V2 uit is die 100000 keer beter is dan die die we nu hebben draaien, zal even moeten upgraden. :think:

http://www.huddletogether.com/projects/lightbox2/

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 09:11
door Derk

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 09:26
door Anthony

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 09:46
door Derk

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 13:35
door KillerSponge

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 13:39
door Anthony
Het is ook nooit goed met die jeugd van tegenwoordig Rolling Eyes

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 13:45
door KillerSponge
Ja, erg hé. Vroeger, in mijn tijd, nee, toen! *murmel

Maar stop met klagen, en bedenk liever een oplossing! Evil or Very Mad

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 13:47
door Derk

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 30 maart 2006 15:58
door KillerSponge
-_-

1. Jij weet best hoe dat script aangeroepen wordt
2. Ik heb al gemeld dat de variabelen goed doorkomen, en dat het daar niet aan ligt

Maargoed, omdat jij het zo graag wil Razz

[code="javascript"]<a href="javascript:new_window(\'imageshow.php?id='.$image_data->id.'\','.$image_width.','.$image_height.')"><img height="'.$image_height.'" width="'.$image_width.'" src="images/'.$file.'" /></a>[/code]

(en ja, die variabelen komen allemaal goed door...)

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 31 maart 2006 22:00
door KillerSponge

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 31 maart 2006 22:01
door Derk

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 31 maart 2006 22:02
door KillerSponge

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 31 maart 2006 22:05
door Derk

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 10 apr 2006 17:32
door Jonas

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 10 apr 2006 17:56
door KillerSponge

Re: Pop-up venster met variabele hoogte/breedte

BerichtGeplaatst: 10 apr 2006 17:58
door Jonas