473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there an equivalent to outerHTML in Netscape 4?

What I really need to do is determine the source of a frame (in this
case, a PDF) in a different window, close that window, and then launch
a new window with that source, displaying only the PDF. However, when
I try to access the DOM, it tells me that access is disallowed to
scripts from another domain. This strikes me as a bug, since the
pages are in the same domain. If I could just get the HTML source of
the other window, I could parse out what I need, ugly as that is.
Thanks in advance.
Jul 20 '05 #1
1 3784
In article <2f**************************@posting.google.com >,
ar************@jpmorgan.com shared the illuminating thought...
What I really need to do is determine the source of a frame (in this
case, a PDF) in a different window, close that window, and then launch
a new window with that source, displaying only the PDF. However, when
I try to access the DOM, it tells me that access is disallowed to
scripts from another domain. This strikes me as a bug, since the
pages are in the same domain. If I could just get the HTML source of
the other window, I could parse out what I need, ugly as that is.
Thanks in advance.


From a frame in the same frameset: top.frames
["framename"].document.location.href

I don't think you can do it from another window unless you already have
a variable that references the frameset window, such as if you'd opened
it from that window. I.E. the frameset window is a child of the window
you're trying to access it from.

As for the domain issue, protocol is included. You can't access https
from http and other such things. It may have a problem because the PDF
is a different security level or something.

Is there some reason you can't just have a button in the window with the
PDF in it to open it sans frames?
<input type="button"
onclick="top.document.location=window.document.loc ation" value="Open
sans frames">

----------------------------------------
~kaeli~
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
----------------------------------------
Jul 20 '05 #2

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

Similar topics

1
3814
by: Chung Leong | last post by:
Is there an equivalent in Konqueror's KJS engine to Gecko's __defineGetter__() and __defineSetter__() methods? Our web application uses a ton of Javascript, written based on Internet Explorer's...
8
4001
by: Mark | last post by:
Is there a way to achieve multithreading in JavaScript? I'm looking to fetch a page into a div while allowing the user to interact with another div. At some point the newly fetched page contents...
3
11242
by: Pai | last post by:
Hello there, I have the following peice of javascript which works with IE but would not work with mozilla. In IE the first for loop is entered but in mozilla i would not enter the for loop...
4
17171
by: harry | last post by:
Using IE 5.5 (sp2) - no other I have a table that need's to be sorted by single column using javascript. I have the code to do this but because of the attributes associated with the <tr>...
1
1283
by: Richard | last post by:
In understanding how this works, would it not be possible then to replace an item with another? For instance, I have the first paragraph of "Lorem Ipsum" shown in a division. At the bottom is a...
1
13272
by: prasaddevivara | last post by:
I am using the outerHTML property to modify the HTML of existin elements in a web page in Internet Explorer. But same outerHTM property is not working in firefox browser, Anybody can tell me a...
3
2286
by: David Virgil Hobbs | last post by:
I discovered how to write out the inner HTML of the contents of an Iframe; I want to know how to write out the outerHTML of the contents of an Iframe. frames.document.body.innerHTML allows me to...
1
3525
by: cweeks | last post by:
Dev env: VS 2005 C# Express, .Net Framework 2.0 I am trying to programmatically select an item in a listbox on a web page. The first thing I do is go through and de-select any selected items. ...
1
2588
by: rishabhshrivastava | last post by:
Hey All, I want to get the OuterHtml in a TextBox and I am using following code but I am getting value as "undefined" Please let me know if I am doing anything wrong.. function GetValue() {...
2
2666
by: Smugsboy | last post by:
Hi, Got a problem here. I'm trying to create a bookmarklet on IE6, that passes the outerHTML of the body element as a GET param my site. The problem is that for some page (ie mail.yahoo.com) the...
0
7259
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
7158
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
7535
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
5683
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
5085
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
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
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 ...

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.