archux Posted May 29, 2008 Report Share Posted May 29, 2008 Sveiki! Lieta sekojoša: atveru mājaslapu www.nosaukums.lv paņemu uzklikšķinu uz linka (popUP) - to atver! Un tad kad ver ciet kā varētu uztaisīt, lai refresh lapu no kuras atvēra? vai varbūt domāju greizi, varbūt ir kāds cits variants? Ceru, ka sapratāt ideju! Link to comment Share on other sites More sharing options...
andrisp Posted May 29, 2008 Report Share Posted May 29, 2008 Es stipri apshaubu vai tas straadaatu, bet vari meegjinaat izmanto window.onunload eventu, lai norefreshotu parent logu. Bishk reaalaks variants buutu parent logaa palaist ar setInterval JS kodu, kas ik peec kaada neliela briizha paarbauda vai atveertais child logs veel eksistee vai vairs neeksistee. Liidz ko neeksistee, veic refreshu. Link to comment Share on other sites More sharing options...
777 Posted May 29, 2008 Report Share Posted May 29, 2008 pamegini window.close(); if (window.opener && !window.opener.closed) { window.opener.location.reload(); } Link to comment Share on other sites More sharing options...
andrisp Posted May 29, 2008 Report Share Posted May 29, 2008 man jau liekas, ka tālāk par window.close() kods netiks. :) Link to comment Share on other sites More sharing options...
marcis Posted May 30, 2008 Report Share Posted May 30, 2008 (edited) Es parasti izmantoju window.onunload=function(){ opener.document.location.reload(); } Parasti viss strādā (tajās vietās, kur tas vajadzīgs). Edited May 30, 2008 by marcis Link to comment Share on other sites More sharing options...
Recommended Posts