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

Reading HTML in frame

Here's the problem: I need to look up records from Library of Congress and
associate the data to a book in my database.

Here's how I think it should work. Open the Library of Congress search page
in a frame within my app. Do your searching and select a record. Now click a
button on the "my app" frame to import that record.

I should be able to read the HTML in one of two ways:
Access the buffer in the other frame
Get the URL from the other frame and access the page through more
conventional means

I would prefer to just read a buffer since I've already accessed the page.
Can somebody help with some pointers to how I can read the HTML in a frame?

Thanks,
Chip
Nov 18 '05 #1
3 951
"Chip" <ch**@intradata.com> wrote in
news:#s*************@TK2MSFTNGP11.phx.gbl:
Here's how I think it should work. Open the Library of Congress search
page in a frame within my app. Do your searching and select a record.
Now click a button on the "my app" frame to import that record.
How will you import it? If its in a frame, it will be in the users browser.
JS might get it - but often different windows and frames that are from
different domains are security blocked.
I should be able to read the HTML in one of two ways:
Access the buffer in the other frame
Maybe? Might be security restrictions.
Get the URL from the other frame and access the page through more
conventional means
By refetching on to the server?
I would prefer to just read a buffer since I've already accessed the
page. Can somebody help with some pointers to how I can read the HTML in
a frame?


You will have to use Javascript - if the security model will let you because
its a different domain.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #2

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn*****************@127.0.0.1...
"Chip" <ch**@intradata.com> wrote in
news:#s*************@TK2MSFTNGP11.phx.gbl:
Here's how I think it should work. Open the Library of Congress search
page in a frame within my app. Do your searching and select a record.
Now click a button on the "my app" frame to import that record.
How will you import it? If its in a frame, it will be in the users

browser. JS might get it - but often different windows and frames that are from
different domains are security blocked.

Thanks for the reality check -- of course the buffer is in the browser and
not the server.
Is there any way to capture the URL of the page the user has open in this
frame?

Chip
Nov 18 '05 #3
"Chip" <ch**@intradata.com> wrote in news:#erdsMu4DHA.1948
@TK2MSFTNGP12.phx.gbl:
Thanks for the reality check -- of course the buffer is in the browser and
not the server.
Is there any way to capture the URL of the page the user has open in this
frame?


I *think* you might be able to read the URL. But then again, maybe not
because URLs often contain sensitive info that could be used by a hacker.
You'll need to look at the JS security model as well as try it out.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #4

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

Similar topics

5
by: Peter | last post by:
L.S. I am developing a PHP-login script (on Lycos Tripod) that uses Session to pass on variables. Below is the entire (stripped) structure that I use. It opens a page where you can Set and Read...
4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
1
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML...
14
by: Alex Molochnikov | last post by:
Is there any way to embed the HTML code inside FRAMESET? Something like this: <frameset cols="50%,*"> <frame src=" ... HTML code for the frame ... "> <frame src="Frame2.html" name="main">...
3
by: Jofio | last post by:
In my frame based page, I have a hyperlink in the top frame called "header" which, when I click, should make two different pages to be loaded and displayed into two different frames, namely...
1
by: Trevor | last post by:
We currently run our web site in php and are now converting it to asp.net to match the rest of our business that is .net based. I have tried using the following code layout to open the file I...
6
by: Ashok | last post by:
Hi, I am starting a new project to build a software product using APS.NET 2.0. In past I have used "frameset" and "frame" to build pages. My current requirements I have coded using frameset and...
3
by: Axel Gallus | last post by:
I wrote a javascript function which should return the html code between a frame's body tag: function load_frame_as_string( Framename ) { var Frame =...
13
Sushi
by: Sushi | last post by:
Hello again all! (and happy easter if you are that way inclined) I have this file called cameratrack.txt: 0 (0 ,0 ,0 ) 5 (5 ,0 ,0 ) 10 (10 ,0 ,0 ) 15 (15 ,5 ,0 ) 20 (20 ,10 ,0 ...
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: 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: 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...
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,...

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.