![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
I have the following javascript below that closes the action page and then
"refreshes" the referring page that the form (a popup) came from. However, I am finding that the referring page does not refresh with the data that was submitted via the popup form--I have to right click and reload the page. Is there a better way to refresh the page so that my submitted data is reloaded? Thanks! <cfoutput> <script language="javascript" type="text/javascript"> function closeRefresh() { window.opener.location.href='https://a_website.com/ #url.opptyID#'; self.close(); } </script> </cfoutput> |
| Sponsored Links |
|
|||
|
You need an event or button to run the function. I also think self.close() is
unnecessary. It could be as simple as <cfoutput><button onclick="location.href='https://a_website.com/#url .opptyID#';">Refreshed form</button></cfoutput> |
|
|||
|
You need an event or button to run the function. I also think self.close() is
unnecessary. It could be as simple as <cfoutput><button onclick="location.href='https://a_website.com/#url .opptyID#';">Refreshed form</button></cfoutput> |
|
|||
|
Hi,
You are defining the function "closeRefresh", but where do you call it? this should do it: <cfoutput> <script language="javascript" type="text/javascript"> window.opener.location.href='https://a_website.com/ #url.opptyID#'; self.close(); </script> </cfoutput> cheers, fober |
|
|||
|
Hi,
You are defining the function "closeRefresh", but where do you call it? this should do it: <cfoutput> <script language="javascript" type="text/javascript"> window.opener.location.href='https://a_website.com/ #url.opptyID#'; self.close(); </script> </cfoutput> cheers, fober |
|
|||
|
<cfoutput>
<script language="javascript" type="text/javascript"> function closeRefresh() { var ts = new Date(); window.opener.location.href='https://a_website.com/ #val(url.opptyID)#&ts=' + ts.toString(); self.close(); } </script> </cfoutput> |
|
|||
|
<cfoutput>
<script language="javascript" type="text/javascript"> function closeRefresh() { var ts = new Date(); window.opener.location.href='https://a_website.com/ #val(url.opptyID)#&ts=' + ts.toString(); self.close(); } </script> </cfoutput> |
|
|||
|
This may or may not be related, but in the past I came across an issue with an
iframe in which I was passing it url variables. Occasionally, the page would not be udpated despite continuing to click on a link to refresh the page. The solution that I found, was to add a unique variable to the url, such as a random number, to ensure that the browser recognizes that the url is a distinct url, and it is not caching the page. |
|
|||
|
This may or may not be related, but in the past I came across an issue with an
iframe in which I was passing it url variables. Occasionally, the page would not be udpated despite continuing to click on a link to refresh the page. The solution that I found, was to add a unique variable to the url, such as a random number, to ensure that the browser recognizes that the url is a distinct url, and it is not caching the page. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise