3 Replies - 2111 Views - Last Post: 23 September 2012 - 05:01 PM

#1 jacko900000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 13-September 12

View specific part of website, iFrame?

Posted 23 September 2012 - 09:40 AM

Is they any way that I can use some sort of code like iframe to view a specific part of a website?

Like when I use iFrame it always loads of course the top left of the page if the iframe is a small box.

What I'm trying to do it fetch a part of the website that so far down the screen and in the middle.
Now the website isn't mine so I don't have access to change anything like that or it would be simple.

Any ideas?

Is This A Good Question/Topic? 0
  • +

Replies To: View specific part of website, iFrame?

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4332
  • View blog
  • Posts: 12,127
  • Joined: 18-April 07

Re: View specific part of website, iFrame?

Posted 23 September 2012 - 10:36 AM

You can't do this simply with <iframe> but you could use javascript to do this using jQuery's load() function. This function allows you to load another page into a container (like a div) and specify which node of the page you want to pluck out.

Check out the section titled "Loading page fragments".

Hope this helps. :)
Was This Post Helpful? 1
  • +
  • -

#3 jacko900000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 13-September 12

Re: View specific part of website, iFrame?

Posted 23 September 2012 - 04:18 PM

Confused me a little haha?
If I was going to let's say this website, How could I do that? What code?
Was This Post Helpful? 0
  • +
  • -

#4 jacko900000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 13-September 12

Re: View specific part of website, iFrame?

Posted 23 September 2012 - 05:01 PM

Wait..
If I use..

<?php echo file_get_contents('EXAMPLE.php');?>


How could I view a specific part of that page?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1