473,387 Members | 1,785 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,387 software developers and data experts.

resend: gain HELP: checking content in opener window with frameset

(i hope somebody (else) will read and have an idea! Thnx)
Hi,

With a script in a popup window, I want to check if certain content is
present in a page loaded into the frame "main" of the frameset in the
opener window.

I started with something like this (what happens when the considions are
met already works):

if (
...
&& opener.window.frames['main'] ........................???
...
)

....but have no idea how to proceed..and if this beginning is ok! Assume
there is an image <img src= /photo.jpg> in that page in the 'main' frame
of the opener window.. can I check that out with this script??

Or are there other elements/text strings to check on if images wont do
it?

Most appreciated in advance.
&^%(
Thnx
Jul 23 '05 #1
2 1782
JPL Verhey wrote:
(i hope somebody (else) will read and have an idea! Thnx)
Hi,

With a script in a popup window, I want to check if certain content is
present in a page loaded into the frame "main" of the frameset in the
opener window.

I started with something like this (what happens when the considions are
met already works):

if (
..
&& opener.window.frames['main'] ........................???
..
)

...but have no idea how to proceed..and if this beginning is ok! Assume
there is an image <img src= /photo.jpg> in that page in the 'main' frame
of the opener window.. can I check that out with this script??

Or are there other elements/text strings to check on if images wont do
it?

Most appreciated in advance.
&^%(
Thnx


I roughly understand your question but am not strong enough with js
skills to answer - perhaps others might be able to help but are not
clear in what you are asking.

Can you confirm - You have a popup window, and you want some method of
checking the contents in the popup window, using a script from the
parent window, true?

Are main and child both served from the same domain name? My guess is
yes since you've said the 'if' conditions in your example above work.

What do you want to check? Do you want to check if an image tag is
present inthe popup window, and perhaps the name of the image source?

If you can confirm the above someone else might be able to help out - by
and large, they are a friendly resourceful bunch...

randelld
Jul 23 '05 #2
Hi Randell, thanks for responding..I'll try make it more clear. Below:

"Randell D." <re******************************@fiprojects.moc > wrote in
message news:I7SRd.438784$6l.349433@pd7tw2no...
JPL Verhey wrote:
(i hope somebody (else) will read and have an idea! Thnx)
Hi,

With a script in a popup window, I want to check if certain content
is
present in a page loaded into the frame "main" of the frameset in the
opener window.

I started with something like this (what happens when the considions
are
met already works):

if (
..
&& opener.window.frames['main'] ........................???
..
)

...but have no idea how to proceed..and if this beginning is ok!
Assume
there is an image <img src= /photo.jpg> in that page in the 'main'
frame
of the opener window.. can I check that out with this script??

Or are there other elements/text strings to check on if images wont
do
it?

Most appreciated in advance.
&^%(
Thnx
I roughly understand your question but am not strong enough with js
skills to answer - perhaps others might be able to help but are not
clear in what you are asking.

Can you confirm - You have a popup window, and you want some method of
checking the contents in the popup window, using a script from the
parent window, true?


No.. First of all, the script is in the pop-up window. The pop-up page
is also refreshing itself with another script in the page, every second.
Evertime is refreshes, it checks with an if-statement the content in the
opener window (the window from which the pop-up was opened with
window.open).

At the moment it works, but only if the document in the opener window is
one single page without framesets. (ultimately the script much check in
a frameset page that is loaded in the opener..with .ASP generated
content) At the moment (and which works, as said) the if-statement is
returned true if a page called log3.htm is loaded in the opnener window.
This if-statement goes like this:

if
(
parent.opener
&& !parent.opener.closed
&& parent.opener.location.replace
&& parent.opener.location.href.match(/log3\.htm$/)
)

Ultimately it should not check on log3.htm (which is just my test
version here), but on an asp-generated content page that is loaded in a
frame "main" of the frameset of a page loaded in the opnener window at
one point. (So what happens basically, is that the user is clicking
links in the opnener window, while the refreshing pop-up keeps checking
if you already are "there" (when the if-statement returns true). What
happens after the if-statement returns true,,already works.. only this
little damn thingie!! ;)

I hope this made things more clear.. thanks to anyone with some ideas!

&%&^%
JPL



Are main and child both served from the same domain name? My guess is
yes since you've said the 'if' conditions in your example above work.

What do you want to check? Do you want to check if an image tag is
present inthe popup window, and perhaps the name of the image source?

If you can confirm the above someone else might be able to help out -
by and large, they are a friendly resourceful bunch...

randelld

Jul 23 '05 #3

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

Similar topics

1
by: martingerber | last post by:
Hi, I have the following script (javascript in html document): <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>Standort Speichern</title>
12
by: Nicholas Allen Kilduff | last post by:
Hi, I know this is possible but I can't figure out how to do it. OK. I have a link (on a main windw) that opens up a pop up window (a smaller window) on which is a menu. I want links from...
3
by: ctrl+alt+delete | last post by:
I have a normal window cotaining a form (named form1). The form has a text input called imageURL. There is a button that, when clicked, opens a new window that contains three frames (left, right...
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....
2
by: soup_or_power | last post by:
Hi I have a form that opens a pop-up window. The pop up window has a form like this: <FORM method="POST" ENCTYPE="multipart/form-data"> <INPUT class="txt" type=file name="dn_file"> <INPUT...
1
by: baggy | last post by:
Hi, I have a situation where I need to be able to refresh a windows parent parent. I can not seem to use anything like window.opener.parent.location.reload() as by the time I execute the...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
7
by: gubbachchi | last post by:
Hi all, In my application I need to display the data fetched from mysql database after the user selects date from javascript calender. I have written the code in which after the user selects the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.