Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Javascript Popup (Read 917 times)
Martin_W
Senior Member
****
Offline


I love YaBB 1G - SP1.2!

Posts: 463
Location: Devon
Joined: Jun 22nd, 2005
Gender: Male
Javascript Popup
Jan 18th, 2009 at 4:20pm
Print Post  
I am developing a perl script.

When a link is clicked, a popup appears.
You fill in a form, and click submit inthe window, and the window processes the form and closes itself.

This I have done, and it works.

IW ould like the window in which you originally clicked the link (and the window you return to when the pop up closes) to refresh as the popup window closes.

Any clues how to go about this?
  
Back to top
WWW  
IP Logged
 
Martin_W
Senior Member
****
Offline


I love YaBB 1G - SP1.2!

Posts: 463
Location: Devon
Joined: Jun 22nd, 2005
Gender: Male
Re: Javascript Popup
Reply #1 - Jan 18th, 2009 at 4:35pm
Print Post  
http://lists.evolt.org/archive/Week-of-Mon-20000731/014953.html

This explains it - towards the bottom of the page.

All working.
  
Back to top
WWW  
IP Logged
 
deti
Full Member
***
Offline


YaBB is the best!!!

Posts: 101
Location: Prien am Chiemsee
Joined: Mar 13th, 2008
Re: Javascript Popup
Reply #2 - Jan 18th, 2009 at 8:30pm
Print Post  
With confimation that the opener page is still open (used in MoveSplitSpice.pl):

Code
Select All
<script language="JavaScript1.2" type="text/javascript">
<!--
	function load_thread(threadid) {
		try{
			if (typeof(opener.document) == 'object') throw '1';
			else throw '0';
		} catch (e) {
			if (e == 1) {
				opener.focus();
				opener.location.href='$scripturl?num=' + threadid;
				self.close();
			} else {
				location.href='$scripturl?num=' + threadid;
			}
		}
	}
// -->
</script> 

  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
Johann Wolfgang Goethe
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint