Solved

Javascript opener.location.reload()

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

726 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