Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to extract data from iframe?

Featured Replies

Hi everyone,

 

Sorry if this is in the wrong section of the forum, Im not too sure where to put it. I am re building a website for a client however I have a problem that I have never come across before.

 

Basically he has an iframe on his website that gives vehicle statistics when you select your vehicle from a drop down menu. He wants these stats putting into a table rather than use the drop down's. If i select every vehicle and copy the data manually it will take me about a week of hard labour as there are hundreds of vehicles.

 

Does anybody know of a way to extract the data from an iframe? I've never had to do this before so its got me.

 

Many thanks.

You could use jQuery load, this will take the div structure, and you can style it yourself.

where is the data coming from at the moment? Does he own it?

  • Author

Thanks I will look into the jquery load.

 

The iframe is coming from his suppliers website. They gave him a widget so his customers can view the vehicle data. He doesn't own the data but he has permission to use it on his website.

 

Regards

Just watch what that permission allows. Being able to use the data via their widget can be very different to him/you using the data as you wish.

The general rule of thumb is that the client provides all the sites content and is responsible for any copyright disputes that arise. NB: As a designer if you have used any 3rd party photostock from premium sources then you need to make sure the client gets copies of any licence documentation

 

Your case is however a little more fuzzy because I do not know what the information contained on the other site actually is. It could be that it's in the Public Domain and available from other sources perfectly legally in which case scraping it off the other site whilst naughty is not a hanging offence. Though I would suggest charging extra for the service or give them the option to go away and Cut & Paste it all themselves into a text file then present it to you.

Hmmm that is a shame or you could of used a php include if the site was designed in php.

 

Me personally i think Iframes are old fashioned.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.