HighDots Forums  

spostare finestra "figlia"

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss spostare finestra "figlia" in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
spintop
 
Posts: n/a

Default spostare finestra "figlia" - 05-04-2004 , 07:04 AM






data una funzioncina:

function openwindow (mfile) {
opts='status=1,scrollbars=1,resizable=1,width=500, height=330';
nw=window.open(mfile,'apritisesamo',opts);
return false;
}

vorrei "dire" alla finestrella aperta di spostarsi con moveTo.
ma se prima di "return false;" metto:

nw=moveTo(...);

mi si sposta la finestra papa' :-/

--
sp-

courrier électronique:
[spintop _ chez _ virgilio _ point _ it]

Reply With Quote
  #2  
Old   
Dimux
 
Posts: n/a

Default Re: spostare finestra "figlia" - 05-04-2004 , 07:12 AM






spintop wrote:
Quote:
data una funzioncina:

function openwindow (mfile) {
opts='status=1,scrollbars=1,resizable=1,width=500, height=330';
nw=window.open(mfile,'apritisesamo',opts);
return false;
}

vorrei "dire" alla finestrella aperta di spostarsi con moveTo.
ma se prima di "return false;" metto:

nw=moveTo(...);

mi si sposta la finestra papa' :-/
Prova ad usare nw.moveTo() e non nw = moveTo()

--
Dimux
http://www.128byte.com
Scopri gli errori e i segreti dei tuoi film, album e programmi
preferiti!




Reply With Quote
  #3  
Old   
spintop
 
Posts: n/a

Default Re: spostare finestra "figlia" - 05-04-2004 , 07:15 AM



Dimux ha scritto:

Quote:
Prova ad usare nw.moveTo() e non nw = moveTo()
hai ragione, quanto so' scemo.

--
sp-

courrier électronique:
[spintop _ chez _ virgilio _ point _ it]


Reply With Quote
  #4  
Old   
ZER0
 
Posts: n/a

Default Re: spostare finestra "figlia" - 05-04-2004 , 08:04 AM



On Tue, 04 May 2004 11:04:34 GMT, spintop wrote:

Quote:
data una funzioncina:

function openwindow (mfile) {
opts='status=1,scrollbars=1,resizable=1,width=500, height=330';
nw=window.open(mfile,'apritisesamo',opts);
return false;
}

vorrei "dire" alla finestrella aperta di spostarsi con moveTo.
Se lo fai all'interno di questa funzione, non ha senso. Ti basta aggiungere
top e left:

var
opts='status=1,scrollbars=1,resizable=1,width=500, height=330,top=100,left=100';

Quote:
nw=moveTo(...);

mi si sposta la finestra papa' :-/
... forse volevi fare nw.moveTo(...);




--
C'ya,
ZER0 :: coder.gfxer.webDesigner();

Il computer e' una macchina progettata per velocizzare e automatizzare
gli errori.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.