Solved

Javascript opener.location.reload()

Posted on 2015-02-06
4
128 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

864 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

19 Experts available now in Live!

Get 1:1 Help Now