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

How to get data from another frame?

Hi, I need some help
I have some page with 2 frames on it. In the first frame I placed a button, and second frame contains a web page from another server. By clicking the button in the first frame I run some code, part of it is referred to the second frame

var frName = self.frames[1].document.name;
alert(frName);

But it doesn't work. I can refer to the first frame, but not to the second. Any help, pls?

P.S. Sorry for my terrible English.
Aug 11 '08 #1
7 3003
gits
5,390 Expert Mod 4TB
this is a cross-domain issue ... you cannot cross-site-script for security-reasons ... have a look here ...

kind regards
Aug 11 '08 #2
Thanks for reply, but link doesn't work.
I don't need to change any content of the page. All I need get an id value of html tag. Any way to do this?
Aug 13 '08 #3
gits
5,390 Expert Mod 4TB
the link works for me ... may be it was a temp down at MDC?

it doesn't matter what you want to do on a site its just prohibited ... in case you need something from it you could make a request from your server and process it there in a way you want to ... so it would be a kind of page proxy ...

kind regards
Aug 13 '08 #4
I am not so familiar with JavaScript, I have basic knowledge of it. So, where can I find some code example of proxy page? I've read about this possibility on the net, but didn't understood how it works. I have direct connection to the Internet, where can I get this proxy? Sorry, if this question seems to be stupid.
Aug 14 '08 #5
gits
5,390 Expert Mod 4TB
this is serverside code ... not javascript. you need to run a serverside script that requests the page from where you want ... than this script may parse the page or just copy it and 'serve' it from your domain, so that you may read it with javascript in your clientside application. you may use any serverside language to create such a proxy ... for example: PHP, ASP(.net), JSP, etc.

kind regards
Aug 14 '08 #6
Can You post a link to some code sample...
Aug 14 '08 #7
gits
5,390 Expert Mod 4TB
you may have a look and start further research from here ...

kind regards
Aug 14 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: luu duong | last post by:
I know this is probably easy but here is the details. I have an asp page that is not inside a frameset. I want to post data to another asp page that is inside a frameset. So firstpage.asp has...
4
by: Kathryn | last post by:
I hope you can help as this is driving me crazy! I have an asp which has 3 frames on it as follows: <FRAMESET rows="50%,*,10%"> <FRAME src="rundetailstop.asp" name="rundetailstop"...
2
by: elik | last post by:
i have a frame page with three parts, each parts attached to aspx file, is there any way to transfer data from one frame to another frame in server side? i meen , when the user select some data...
2
by: MW | last post by:
Hi, I am not that familiar with frames, but I'm working on a page that has frames on it. In one frame I have a datagrid, when I click on the select button of a row in the grid, I need to make...
3
by: Evan | last post by:
I have a web page with 2 frames. The left frame is running menu.aspx and the right frame is running images.aspx. When a selection is made in menu.aspx I call a method in images.aspx and pass a...
6
by: Ben Finney | last post by:
Howdy all, Summary: I'm looking for idioms in unit tests for factoring out repetitive iteration over test data. I explain my current practice, and why it's unsatisfactory. When following...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
1
by: Frustrated | last post by:
Since C# and VB.NET are similar, I am posting this here also I have a C++ DLL that I need to access from VB.NET or C#. The following is my attempt via VB.NET. The function I am trying to call...
2
by: Katie | last post by:
I have created a report which sorts data by a time frame. However, if there is no data for a particular time frame then that row does not show. I need it to show with a blank for the value, e.g....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.