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

javascript & frames

hi,

I have a page whith frames where y load other pages in. If these other pages
are in my computer y can read/write with javascritp in their properties like
name, location, href etc. but when y have loaded in a frame a page that is
not in my computer y can`t use these properties.

I know that the page is not accessible using javascript from my page, but
the frame is a frame of my page. I don`t understand it. why? Can´t I load
another page in this frame if it has a page that isn`t in my computer?

can I know whith javascript when a page loaded in a frame is in my computer
or not?

thanks.

(sorry, my english isn`t good)

Jul 20 '05 #1
2 2016
In article <kI***********************@telenews.teleline.es> ,
ib******@somesi.com enlightened us with...
I know that the page is not accessible using javascript from my page, but
the frame is a frame of my page.
A frame is merely a window embedded in another window. You cannot access
pages from other domains in your frame for security reasons. If you
could, you could hijack their pages and do whatever you wanted with
them, including re-direct orders, credit card information, and other
private data into your pages, database, or whatever. You could also put
malicious scripts on their pages. So, no, you can't access a page from a
different domain in your frames with javascript.
I don`t understand it. why? Can´t I load
another page in this frame if it has a page that isn`t in my computer?

As explained above, no.
can I know whith javascript when a page loaded in a frame is in my computer
or not?


I don't think so. Someone will correct me if I'm wrong.

-------------------------------------------------
~kaeli~
Press any key to continue or any other key to quit.
Who is General Failure and why is he reading
my hard disk?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #2
thanks kaeli.

I'll try another way to do this.

open in the frame a page that has 2 frames too. the size of them will be
100% and 0%. in width and height. the frame "100%" will load the extern
page. in this way, in my principal page of frames I can open this page with
2 frames and others in a frame. now I can access to properties of this frame
because the page it opens not is extern yet.

I only need open the extern page. not to manipulate it.

bye.

(sorry, my english is poor)

"kaeli" <in********************@NOSPAMatt.net> escribió en el mensaje
news:MP************************@nntp.lucent.com...
In article <kI***********************@telenews.teleline.es> ,
ib******@somesi.com enlightened us with...
I know that the page is not accessible using javascript from my page, but the frame is a frame of my page.


A frame is merely a window embedded in another window. You cannot access
pages from other domains in your frame for security reasons. If you
could, you could hijack their pages and do whatever you wanted with
them, including re-direct orders, credit card information, and other
private data into your pages, database, or whatever. You could also put
malicious scripts on their pages. So, no, you can't access a page from a
different domain in your frames with javascript.
I don`t understand it. why? Can´t I load
another page in this frame if it has a page that isn`t in my computer?


As explained above, no.
can I know whith javascript when a page loaded in a frame is in my computer or not?


I don't think so. Someone will correct me if I'm wrong.

-------------------------------------------------
~kaeli~
Press any key to continue or any other key to quit.
Who is General Failure and why is he reading
my hard disk?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------

Jul 20 '05 #3

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

Similar topics

4
by: ÂÑTØÑ | last post by:
Hi, I was looking for a list of commands, but I can't find it. It's about commands you can type in the Internet Explorer adress bar, to get some information about a website. For instance...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
by: GEvans | last post by:
Hi, I have a HTML page consisting of two frames, one visible and one hidden. The hidden frame contains javascript variables holding session information. The visible frame contains interactive...
3
by: pentium77 | last post by:
Basically I have a situation where I need to update changes occuring in one Text field of a table into another text field located in another table. In addition both the tables are located in...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
3
by: dricks dr | last post by:
Hi, I'm using the AxWebBrowser Control from microsoft in a C# application. It works fine, but i have many problems to hide the javascript error windows that appear when u visit a website with......
3
by: jimmygoogle | last post by:
I posted earlier with a scope problem. I think I resolved it in IE but in Firefox it still exists. Anyone have any ideas/experience with this? I attached my code sorry it is so long. You can...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
1
by: jianxin9 | last post by:
Hi, I have an ajax powered tabs box that has a javascript drop-down search menu in the first tab. When I click on another tab, and go back to the first tab I have to refresh the page to get the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...

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.