Adobe Dreamweaver Forums



Last 10 THreads :         Re: Cannot paste text from MS Publisher into Dreamweaver (Last Post : Tim G - Replies : 8 - Views : 9 )           »          Format numbers with leading zeros (Last Post : charlie656 - Replies : 0 - Views : 1 )           »          Event listener (Last Post : lammspillning - Replies : 2 - Views : 3 )           »          action script for button (Last Post : NedWebs - Replies : 5 - Views : 10 )           »          403 error from my domain? (Last Post : Ken Ford - *ACE* - Replies : 1 - Views : 4 )           »          Adding database RDS Login Dreamweaver 8 Coldfusion 8 (Last Post : ClubbyJMC2008 - Replies : 4 - Views : 5 )           »          Looping from end of clip to middle of clip (Last Post : Gibbah - Replies : 1 - Views : 5 )           »          Help need div to expand to height of browser (Last Post : Tim G - Replies : 1 - Views : 2 )           »          how do I add a table to a preformed template that I got? (Last Post : mb007inc - Replies : 0 - Views : 1 )           »          Downloading from Flash (Last Post : NedWebs - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 02:03 PM
pnugent
 
Posts: n/a
Diggs:
Default Javascript Refreshed page does not bring back currentdata

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>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 02:03 PM
BKBK
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

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>




Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 02:03 PM
BKBK
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

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>




Reply With Quote


  #4 (permalink)  
Old 10-01-2008, 02:03 PM
fober1
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

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

Reply With Quote
  #5 (permalink)  
Old 10-01-2008, 02:03 PM
fober1
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

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

Reply With Quote
  #6 (permalink)  
Old 10-01-2008, 02:03 PM
NeoRye
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

<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>

Reply With Quote


  #7 (permalink)  
Old 10-01-2008, 02:03 PM
NeoRye
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

<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>

Reply With Quote
  #8 (permalink)  
Old 10-01-2008, 02:04 PM
CF_output
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

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.

Reply With Quote
  #9 (permalink)  
Old 10-01-2008, 02:04 PM
CF_output
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

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.

Reply With Quote


  #10 (permalink)  
Old 10-01-2008, 02:05 PM
Art of Zen
 
Posts: n/a
Diggs:
Default Re: Javascript Refreshed page does not bring backcurrent data

Hmmmm... I tried that but it would not reload the page correctly. I do not have edit rights to the page that needs to be refreshed (its a salesforce.com application).
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk