Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfering content between pages

Status
Not open for further replies.

TRHorn

Technical User
Feb 21, 2010
24
US
I need a way to transfer content between pages.

Here is what I want, When I open my homepage I want a js code to go on to a different page of my site and grab some content and then paste it inside a div. I know how to paste something inside a div, I don't know how to grab content from another page though.

Any ideas?
 
I have looked at inline frames (iframes) and I don't understand how to use it to get html off of another document, all it does is display content from the same page or an entire website.

Maybe example code would help.
 
While I don't think avascript is the way todo what you want, you can certainly try, using Ajax's XMLHttpRequest object.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top