Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

472
Views
reload parent window from within an iframe

I have my login page in an iframe and wished to reload the parent window using ajax and jquery from within iframe without refreshing but i'm getting errors like this

(this[0].ownerDocument || this[0]).createDocumentFragment is not a function
please help!

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I could achieve this by reloading the page using javascript

parent.location.reload();

then i fired a trigger to open the target iframe

$("#log-inout").trigger("click");

I needed such system for a peculiar condition. This might help others in similar conditions.

over 4 years ago · Santiago Trujillo Report

0

parent.location.href=parent.location.href

gives a smoother result than

parent.location.reload()

the latter forces a complete reload while the first seems to update more effectively almost like ajax.

over 4 years ago · Santiago Trujillo Report

0

You can use:

window.parent.location.href = "Create?Param=value";

Or:

window.parent.location.href = "http://www.stackoverflow.com";
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!