Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
IFrames alternative for including web content
Old 09-11-2008, 09:14 AM IFrames alternative for including web content
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
Hi all -

I need a way to include web content from one EXTERNAL site in another. For reasons having to do with institutional protocols, it cannot be done at the server level - it must be done client-side. I know I can use IFrames, but was wondering if there was another way it could be done using javascript? Or some other client-side way? I've been searching and searching the web and can't seem to find something definitive. TIA!
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
 
Register now for full access!
Old 09-11-2008, 09:28 AM Re: IFrames alternative for including web content
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Doing it without an iframe would have to involve some kind of data-scraping, which could be done with a server-side code. The basic idea is to program a spider to read the HTML on the page and parse it according to your needs. If you can't do it server-side, use an iframe. I don't know of any way to do it with JavaScript, though there may be some methods I am not educated about. In general, JavaScript has a same origin policy, which means it isn't given access to data outside of the domain it is operating on.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-19-2008, 03:15 PM Re: IFrames alternative for including web content
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
Thanks for this, and sorry for the LONNNGGGG delay in responding. This is the first time I've had a chance to think about this issue in a few weeks.

That is my general understanding too. I've seen some sites discussing using scrollto, and Iframes, but I'm unsure about how the process works.
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Old 09-19-2008, 04:48 PM Re: IFrames alternative for including web content
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
You could scrape the data on the client side with java script. It would work very much like AJAX. I don't know that it would be advisable, but possible, at least.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IFrames alternative for including web content
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13217 seconds with 12 queries