Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
javascript-open window-close win

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 30.12.2003 17:52    Post subject: javascript-open window-close win Add user to your forum ignore list Reply with quote

ovako znam pomocu javascripte otvoriti novi prozor. kako bi da kada u tom prozoru kliknem na gumb posaljem podatke gdje trebam(forma je->action u neki file), zatvorim prozor I sada je to ono sta me muci. Kako da refresham stranicu na kojoj sam kliknuo taj link za otvaranje prozora?
Back to top
View user's profile Send private message
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 30.12.2003 18:14    Post subject: Add user to your forum ignore list Reply with quote

pa na taj link kojim otvaras prozor stavi recimo pod onclick da otvara prozor, a pod href da refresha stranicu, odnosno samo linkaj na tu stranicu na kojoj se nalazis.
ako sam te dobro razumio Smile

_________________
http://www.hocusvojweb.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 30.12.2003 20:23    Post subject: Re: javascript-open window-close win Add user to your forum ignore list Reply with quote

PsychoPod wrote:
ovako znam pomocu javascripte otvoriti novi prozor. kako bi da kada u tom prozoru kliknem na gumb posaljem podatke gdje trebam(forma je->action u neki file), zatvorim prozor I sada je to ono sta me muci. Kako da refresham stranicu na kojoj sam kliknuo taj link za otvaranje prozora?


sa f5 :))))


trebas refreshat glavni prozor nakon klikanja na gumb, rajt?

znaci prije self.close dodas nesto tipa window.opener.location.href="url.html"
u biti si napravis funkciju, ovo sam ti gore sad bubnuo napamet, al na tu foru ti nesto treba kolko sam shvatio

Last edited by che.UP on 30.12.2003 20:49; edited 1 time in total

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 30.12.2003 20:41    Post subject: Add user to your forum ignore list Reply with quote

eo na

Code:
function klouz() {
   window.opener.location.href="nesto.html";
   self.close();
   return false;
}


i onda di ti treba

Code:
 <a href="javascript:klouz()">close window</a>

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
PsychoPod



Joined: 05 Oct 2003
Posts: 166

PostPosted: 31.12.2003 02:59    Post subject: Add user to your forum ignore list Reply with quote

hvala che. ja nemam pojma previse javascript. zato one prvotne upute ne bi puno pomogle ovo cu isprobati pa javim ako budem imao problema..

hvala puno.
Back to top
View user's profile Send private message
njava
mi3.crew


Joined: 25 Aug 2003
Posts: 624
Location: Zagreb

PostPosted: 31.12.2003 14:35    Post subject: Add user to your forum ignore list Reply with quote

PsychoPod bi cini mi se htio:
- otvoriti novi prozor u kojem je forma
- nakon uspješnog slanja forme zatvoriti taj novi prozor i refreshati 'glavnu' stranicu

U tom slucaju, javascript trebas ubaciti na stranici koja obradjuje formu, onoj na koju pointa action od forme:

u <head> dio:
Code:

function klouz() {
   window.opener.location.href="nesto.html";
   self.close();
   return false;
}


i onda di ti treba

Code:

<body onLoad="klouz();">
Back to top
View user's profile Send private message Visit poster's website
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 31.12.2003 15:55    Post subject: Add user to your forum ignore list Reply with quote

jes, jes of kors, gosn. vanja HELLO MR. SCIENTIST!!!111

Smile

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
njava
mi3.crew


Joined: 25 Aug 2003
Posts: 624
Location: Zagreb

PostPosted: 31.12.2003 16:12    Post subject: Add user to your forum ignore list Reply with quote

Laughing
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group