Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: REFRESH/RELOAD


Message #1 by "Claudio Pallone" <pallone@l...> on Thu, 13 Feb 2003 17:11:18
Hi Robert,

Thanks a lot

Claudio

> You need to use the delay approach.
Like this:

window.setTimeout("parent.frames[\"toolbar\"].location.reload()", 3000);


/Robert



-----Original Message-----
From: Claudio Pallone [mailto:pallone@l...]=20
Sent: den 13 februari 2003 18:11
To: JavaScript HowTo
Subject: [javascript_howto] REFRESH/RELOAD


Hi,=20

Is it possible to pick up the event when the user clicks on a save
button=20
in a dialog box produced by the code below?

The problem is that after the user clicks to save the file to his/her=20
computer the page freezes and I need to refresh the other frame that
loads=20
this page.

I need to do this but only when the save button in the dialog box that=20
pops up is clicked:

parent.frames["toolbar"].location.reload();

If this is impossible then is it possible to delay the execution of the=20
reload code for say 3 seconds so that the user has time to save the file

and then the toolbar would be refreshed??

This is the code that is saving the file but then freezes the page:


strFileSave =3D strRptName + ".csv"
' Write out content-type that will FORCE user to SAVE FILE.
Response.ContentType =3D "text/csv" Response.ContentType =3D
"application/vnd.ms-excel" ' Tell Browser what the file name is, so it
doesn't try to save original=20
name
Response.AddHeader("Content-Disposition","attachment; filename=3D""" &=20
strFileSave & """")

Cheers,

Claudio
---
Change your mail options at http://p2p.wrox.com/manager.asp or=20
to unsubscribe send a blank email to


  Return to Index