473,325 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Getting a page to refresh the parent, even when not loaded from the parent?

Hey, I am trying to figure this out. The hyperlinks on my page open
up a small popup window. I have no reason to refresh the parent page
or what have you. I was living in a very happy world, with no
problems or disturbances. However, a problem has since arisen: The
search engines have indexed these popup pages. So, you load them, but
there are no links on them, and there is no parent page. Many people
would not check out the url and go to the base domain or what have
you. So, I feel I'm losing visitors. I had thought, if it's
possible, I'd like to have the popups refresh the parent page on
loading. This is not for the people visiting from within my site,
that have the parent page open, but for the ones that don't - people
who get to the popup urls from the Search Engines. Therefore, I was
wondering if it's possible to do this so that, if the parent page does
not exist (is not open), it will be loaded (in another window of
course)?
Is this possible, and if so, how would I go about this?

Thanks!!
Jul 23 '05 #1
2 1817
Ivo
"Bill S." wrote
Hey, I am trying to figure this out. The hyperlinks on my page open
up a small popup window. I have no reason to refresh the parent page
or what have you. I was living in a very happy world, with no
problems or disturbances. However, a problem has since arisen: The
search engines have indexed these popup pages. So, you load them, but
there are no links on them, and there is no parent page. Many people
would not check out the url and go to the base domain or what have
you. So, I feel I'm losing visitors. I had thought, if it's
possible, I'd like to have the popups refresh the parent page on
loading. This is not for the people visiting from within my site,
that have the parent page open, but for the ones that don't - people
who get to the popup urls from the Search Engines. Therefore, I was
wondering if it's possible to do this so that, if the parent page does
not exist (is not open), it will be loaded (in another window of
course)?
Is this possible, and if so, how would I go about this?


The popped up document should check whether the reffering page is one of
yours. If not, show users your alternative message, possibly auto-redirect
(less user-friendly). A script in the popup could also check if it has an
opener (if not, it isn't a popup - I think this is what you mean with
"parent", which I find confusing because they are from the frames
terminology) but this is less reliable because some search engines alos make
their results open in a new window.
HTH
Ivo
Jul 23 '05 #2
"Ivo" <no@thank.you> wrote in message news:<40***********************@news.wanadoo.nl>.. .
"Bill S." wrote
Hey, I am trying to figure this out. The hyperlinks on my page open
up a small popup window. I have no reason to refresh the parent page
or what have you. I was living in a very happy world, with no
problems or disturbances. However, a problem has since arisen: The
search engines have indexed these popup pages. So, you load them, but
there are no links on them, and there is no parent page. Many people
would not check out the url and go to the base domain or what have
you. So, I feel I'm losing visitors. I had thought, if it's
possible, I'd like to have the popups refresh the parent page on
loading. This is not for the people visiting from within my site,
that have the parent page open, but for the ones that don't - people
who get to the popup urls from the Search Engines. Therefore, I was
wondering if it's possible to do this so that, if the parent page does
not exist (is not open), it will be loaded (in another window of
course)?
Is this possible, and if so, how would I go about this?


The popped up document should check whether the reffering page is one of
yours. If not, show users your alternative message, possibly auto-redirect
(less user-friendly). A script in the popup could also check if it has an
opener (if not, it isn't a popup - I think this is what you mean with
"parent", which I find confusing because they are from the frames
terminology) but this is less reliable because some search engines alos make
their results open in a new window.
HTH
Ivo


Thanks a lot for the info. Ok, the first option is perfect. But can
I have instead of auto direct, a full screen popup? So people that
come from within the referring page (can I do two or 3 referring
pages?), they would have a null and nothing would happen, but from
anything outside, it would load the main page as a "normal page"
popup? How would I write this? I'm not too swift at javascript, so
any pointers would be appreciated!!

Thanks!!
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve | last post by:
I'm working in PHP, but am also using JavaScript, so perhaps there is a better way to do this using more PHP code...... I setup a search screen for my database, the user enters data and submits...
3
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph. Problem is, I have a...
4
by: JPL Verhey | last post by:
Hi, I have a little test script in a pop up window. The pop up page refreshes every 2 seconds. I want it to check with every refresh if a certain page (log3.htm) is loaded in the opener window....
8
by: Judy Ward | last post by:
I have an index.aspx with frames. The top frame has a navigation bar with a "Login" hyperlink. If the user has already logged in I want this link to change to "Logout". I am using forms-based...
10
by: darrel | last post by:
I have this structure: mypage.aspx (class = mypage) myusercontro.ascx On the mypage.aspx I can declare a variable: animal = "monkey" I can read this from the UC by simply doing this:...
7
by: Ben Schumacher | last post by:
How can I refresh the parent page from a popup window that was created using window.showmodaldialog? I would like to accomplish this using vbscript if possible.
1
by: Jessica | last post by:
Hi, I'm sorry if this has been asked before. I'm a designer and occasional javascript hacker, not a javascript writer. I cannot believe I have spent over 4 hours searching for this on Google and...
5
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.