Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!
like image 328
Dipesh KC Avatar asked Mar 18 '11 11:03

Dipesh KC


1 Answers

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.

like image 61
Dipesh KC Avatar answered Sep 25 '22 01:09

Dipesh KC