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 functionplease help!
dont bother! why use iframes at all if you are using ajax.
just load the login using
$("where you want to load the content here").load("src of your iframe here");
much simpler and alot more elegant.
You can use:
Or:
gives a smoother result than
the latter forces a complete reload while the first seems to update more effectively almost like ajax.
I could achieve this by reloading the page using javascript
then i fired a trigger to open the target iframe
I needed such system for a peculiar condition. This might help others in similar conditions.