- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Get data from an Iframe on a local webpage"
Collapse
-
Cheers. Probably not worth the hassle for my purposes, it's only a minor feature I'm trying to add, but I'll have a look.
-
Originally posted by xoggoth View PostTrying to get some data from an iframe and used the simple method in this link:
How to get HTML content of an iFrame using JavaScript ? - GeeksforGeeks
Works fine when the pages are on the website but, as it's just my mappy thing for personal use, I'd like it to work on my PC without having to upload it. However, I get "Blocked a frame with origin "null" from accessing a cross-origin frame"
Any way round this? Cheers.
You'd need a local www server running on your pc to host your local js (apache could do both of the above).
Then when accessing the proxy, your browser would see both targets ( the external website & your local website) under the same domain and allow the resource requests.
Leave a comment:
-
Cheers chaps.
thats generally a Bad Idea since it applies to all websites you visit, not just the ones you own, and exposes you to all sorts of potential nasties
Alternatively install a browser for local use only so can use in isolation of the properly set up main browser(s
Wonder why pages in same local folder are a problem. Annoying. Even pro developers may initially use local files for testing.Last edited by xoggoth; 18 November 2020, 15:44.
Leave a comment:
-
See if can relax the browser security settings for local intranet sites (or deemed safe sites) so it works as you need while still protecting against dodgy external websites you may visit.
Alternatively install a browser for local use only so can use in isolation of the properly set up main browser(s). At one time you could install multiple versions of Internet Explorer but not sure if modern browsers allow that so can use an older version for local stuff while keeping the latest version up to date security wise.
Leave a comment:
-
Originally posted by xoggoth View PostTrying to get some data from an iframe and used the simple method in this link:
How to get HTML content of an iFrame using JavaScript ? - GeeksforGeeks
Works fine when the pages are on the website but, as it's just my mappy thing for personal use, I'd like it to work on my PC without having to upload it. However, I get "Blocked a frame with origin "null" from accessing a cross-origin frame"
Any way round this? Cheers.
EDIT : Can be done in all current browsers except Edge, if you are using that you're out of luck (but safe).
Leave a comment:
-
Get data from an Iframe on a local webpage
Trying to get some data from an iframe and used the simple method in this link:
How to get HTML content of an iFrame using JavaScript ? - GeeksforGeeks
Works fine when the pages are on the website but, as it's just my mappy thing for personal use, I'd like it to work on my PC without having to upload it. However, I get "Blocked a frame with origin "null" from accessing a cross-origin frame"
Any way round this? Cheers.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: