Solved

Javascript opener.location.reload()

Posted on 2015-02-06
4
124 Views
Last Modified: 2015-02-07
I have this function:

      function refresh_close() {
            opener.location.reload();
            self.close();
      }      

If I am using the page that is in FireFox or Chrome, it works exactly as it should.

I have been told that on the iPad, using Safari you have to refresh the page (opener, the page that opens a separate window) every time the window is closed.

Does this function not work in Safari?

Is there a workaround?

Thanks
0
Comment
Question by:Richard Korts
  • 2
  • 2
4 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
I can find all the individual elements but I don't seem them used together like you are doing.  Can you give a more complete example of what you are trying to do?

http://www.w3schools.com/jsref/met_loc_reload.asp
http://www.w3schools.com/jsref/prop_win_opener.asp
http://www.w3schools.com/jsref/prop_win_self.asp
http://www.w3schools.com/jsref/met_win_close.asp
0
 

Author Comment

by:Richard Korts
Comment Utility
Dave,

If I could send you a private message, I could give you a logon to see exactly what happens. I don't want to post the logon on an open forum.

Thanks
0
 

Author Comment

by:Richard Korts
Comment Utility
To Dave Baldwin,

I used my own iPad & it works as it should.

One minor thing, every time it says something like "Popup Attempted", Block or Allow.

Is there a way to set "Allow" as a standard for a web site? I couldn't find it in the Safari settings.

Thanks
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
"Allow" as a standard for a web site?
You might be able to set it for your device but that is all.  You need to find the Safari error console and see what it is complaining about.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now