Solved

Javascript opener.location.reload()

Posted on 2015-02-06
4
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40595297
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
ID: 40595647
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
ID: 40595895
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 83

Expert Comment

by:Dave Baldwin
ID: 40595961
"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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
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 invoke it on a web page. 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.: (CODE)
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.

696 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