473,508 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript iframe.location iframe.title

I'm trying to make a little website that allows you to post back the
answer to your search query. I print out some HTML and then put an
IFRAME below to let people navigate around to find the answer. Then I
want a little button that they can click that says 'The page I'm
looking at satisfies my query'. This is where the problem lies.

document.getElementById('iframe').location gives me permission denied
(since it is from another domain) and the .src attribute is just the
original page that I loaded in, not the current one they are looking
at. I have tried history.current and other framesets. I can't find any
way to find out what they are looking at. I even tried a button they
add to their bookmarks to do it, but that can't read the data in the
iframe either. I can't even get privilege escalation to work. I'd be
happy to notify the user that they are giving me rights to do this
(since nothing malicious is happening) but I can't even get a box to
pop up.
netscape.security.PrivilegeManager.enablePrivilege ("UniversalBrowserRead")
doesn't do anything. Any ideas?

Also, I want the main title to change as they keep navigating around
to show the title of the subframe. But again, the iframe won't let me
grab its title or even the HTML to parse myself. Any ideas?

Thanks for all your help.

Paul

Feb 23 '07 #1
2 8007
dd
On Feb 23, 11:33 pm, ptar...@gmail.com wrote:
document.getElementById('iframe').location gives me permission denied
(since it is from another domain) and the .src attribute is just the
original page that I loaded in, not the current one they are looking
I really don't think there's a solution to this. It's
basically spying. If you were allowed to do that, then
anyone who puts a wrapper around a google page and gets
people to use it (with them thinking they were really
at google) would find every page they visited being
able to be recorded. This isn't a bug or an oversight,
it's something the browsers are actively avoiding you
to be able to do.

Feb 24 '07 #2
I really don't think there's a solution to this. It's
basically spying. If you were allowed to do that, then
anyone who puts a wrapper around a google page and gets
people to use it (with them thinking they were really
at google) would find every page they visited being
able to be recorded. This isn't a bug or an oversight,
it's something the browsers are actively avoiding you
to be able to do.
Thank you. Is there any way that I CAN do this? I don't mind asking
the user for permission, or getting them to install a toolbar or
something. I want the functionality and I don't mind telling the user
that I am about to 'spy' on them, because I think the users want this
functionality too.
Feb 25 '07 #3

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

Similar topics

2
3517
by: Xerxes | last post by:
Hi, how can I pass the returned value from Javascript to PHP? I have: ------------------------------------------------------------------------ ------ if ( x>y) {
6
3339
by: ubccis | last post by:
Hi. I'm wondering if you can dynamically query a database with javascript and php. For example, can I select something on the select menu and dynamically query the database and populate another...
6
2581
by: S'fly | last post by:
Hi, I'm struggling with the famous "gatekeeper" a little. Normally, it opens in a popup window, and from there it goes on. But I like this script to open in an iframe, and not in a popup. It...
7
3570
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
1
7474
by: anonieko | last post by:
> Use x = window.Open(...) x.document.write( yourhtml) > How to print from javascript using .print > How to use ContentWindow > > How t use getElementById > How to get HTML of document...
8
3623
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
15
2230
by: Phlip | last post by:
Javascripters: I have an outer page and an inner iframe. The outer page calculates some javascript, and wants the inner frame to run it. The inner frame should hit a page on the same (private)...
5
7688
by: brad | last post by:
I'll post my code below. My goal is to grab the selected text in an iFrame from javascript (really any way possible). When I highlight text in the iFrame and click the link outside of the iFrame, I...
1
3173
by: wenijah | last post by:
Hi everyone! First thank you for reading this post and yes, you probably already see that kind of topic title somewhere but the problem I've got today might be different than the 100 topics I've...
0
7223
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
7321
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
7377
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...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.