Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Reading HTML in frame

Reply
Thread Tools

Reading HTML in frame

 
 
Chip
Guest
Posts: n/a
 
      01-24-2004
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


 
Reply With Quote
 
 
 
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      01-25-2004
"Chip" <> wrote in
news:#:
> 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

 
Reply With Quote
 
 
 
 
Chip
Guest
Posts: n/a
 
      01-25-2004

"Chad Z. Hower aka Kudzu" <> wrote in message
news:Xns947B2003FF30cpub@127.0.0.1...
> "Chip" <> wrote in
> news:#:
> > 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


 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      01-25-2004
"Chip" <> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server.Transfer - frame to non frame jason ASP .Net 1 09-05-2005 07:34 AM
Framesets - Event in frame 'A' triggering update of frame 'B' -How ? JAW ASP .Net 2 11-09-2004 07:54 PM
Referring to a frame's content from another frame Microsoft ASP .Net 3 10-04-2004 06:35 AM
Manipulating control in one frame from another frame, how? Søren M. Olesen ASP .Net 0 11-13-2003 05:37 PM
To frame or not to frame? donut HTML 4 08-19-2003 10:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57