Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 17th, 2002, 04:17 PM
SABmore SABmore is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 17 SABmore User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 34 sec
Reputation Power: 0
Javascript

I have a Page1 that "onload" calls a function which opens a smaller Page2. I then want the "onload" of Page2, to call a function that redirects Page1 to another location(url) in the background, all the while keeping Page2 open and in the foreground.

What I am trying to accomplish is a search engine, that when you enter a topic, opens a smaller-browser window (pop-up) with links to the most popular matches for your search term. At the same time, I want the original page to operate in the background, recalling all possible links for your search term. The user then has the option to close the smaller window if none of the popular links return match what they are looking for.

Thanks in advance!

Reply With Quote
  #2  
Old October 17th, 2002, 07:46 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
ok, for your first page, you will need something like this

onload="window.open('file.html','window_name','width=400, height=500'"

This would cause a popup which you could display some results, etc.

Then the online option of the file.html page would look like this.

onload="_parent.document.location.href='file2.html';"

Reply With Quote
  #3  
Old October 18th, 2002, 05:37 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
there is some JS code which will force the pop up window to stay on top of your opening window. The only way to get rid of it is to close it.

I presonally dont like popups.... and remember some people have software which removes ANY popup windows... so dont rely too heavily on it for important info!

anyway... add this as a function in the script tags:

function topWindow(){
popup = window.open("popup-page.html","","height=175,width=300,scrollbars=no");

then in the body onload event, simply call it

onLoad="topWindow()

It might not be what you're looking for, but it's not a bad feature if you want people to see the popup!!
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Javascript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway