|
| |
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
Count files downloaded - 10/4/2005 7:50:16
I am just learning FrontPage2003 to develop my website. On the site I have a number of downloadable files. I have set up an account with a counter service. I want to keep a record of how many downloads are made. I think the best way would be to direct the user to a download page containing the counter, then start the download. I have read FP help files on how to redirect the user back to a specific page by using Page Properties, but I cannot find any mention of starting a download after the page is opened. Does anyone know how to do this or maybe suggest a simpler method Thanks
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Count files downloaded - 10/4/2005 8:29:17
You can use a meta tag to start the download. Make sure though to put a link on there saying something like if the download does not start in three seconds to click here. <meta http-equiv="refresh" content="3; URL="filename.zip">
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/4/2005 8:41:22
Hi Corey Thanks for the reply I have already put the message there with a hyperlink to the file. So do I just replace the hyperlink with the metatag? The FrontPage Help only seems to talk about keyword metatags Is the download automatic? Sorry if this is a bit naive, but I am a complete novice with FP.
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/4/2005 8:59:37
Hi jaybee I will give it a try. Do I mark the Thread solved if it works (which i am sure it will)?
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/4/2005 9:16:30
This is what i have done following the suggestions,in the Code preview.The last e of exe is blue, not red like the rest of the filename - is the filename too long/ <meta http-equiv="refresh" content="3; URL="ExcelWebToolbar.exe"> In web preview it doesn't seem to work, I can't try an upload because I am work right now.
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Count files downloaded - 10/4/2005 9:25:16
It should be fine. Can you test it locally if your EXE file is in the same folder as your HTML file. Frontpage does not really understand the code and that is why you are getting different colors.
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/4/2005 9:34:25
I have a different folder, so I will move the .exe file & test again. Thanks again
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Count files downloaded - 10/4/2005 14:14:40
Yeah - still teaches me to copy & paste. Now over to that site that I copied it from. LOL. I thought it looked odd, but hey, it was on the internet
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/4/2005 14:27:20
Thanks for spotting that. I have changed it to <meta http-equiv="refresh" content="3"; URL="ExcelWebToolbar.exe"> but it's still not downloading. I will have another look later.
|
|
|
|
treetopsranch
Posts: 1007 From: Cottage Grove, OR, USA Status: offline
|
RE: Count files downloaded - 10/5/2005 0:23:07
Does your exe file really have those caps? Make sure the spelling is exactly like the file you want to have downloaded.
_____________________________
Don from TreeTops Ranch, Oregon "I've got a taste for quality and luxury"
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/5/2005 7:11:39
The file name is exactly correct. I have tried substituting a simpler file name - test.xls & the result is the same. The new page opens, but the download doesn't start until I click the hyperlink. The file is in the same folder as the download page. I select Allow Blocked Content when XP opens the page. The only result that I see is in the Status bar - it keeps flicking Done. This is the full metetag coding: <head> <meta http-equiv="Content-Language" content="en-gb"> <meta http-equiv="refresh" content="3"; URL="ExcelWebToolbar.exe"> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Thank you for downloading the Ex</title> <script language="JavaScript"> Is somethin else conflicting with the download command?
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Count files downloaded - 10/5/2005 8:57:40
Or try: <meta http-equiv="refresh" content="3;url=ExcelWebToolbar.exe">
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Count files downloaded - 10/5/2005 8:59:41
Or even <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="javascript">
<!-- Begin
function redirTimer() {
window.open("ExcelWebToolbar.exe","webtool",height="400",width="400",toolbar="no",scrollbars="yes",resizable="no",menubar="no");
//setTimeout(window.open("ExcelWebToolbar.exe","webtool",height="400",width="400",toolbar="no",scrollbars="yes",resizable="no",menubar="no"), redirTime);
}
//END Script-->
</script>
</head>
<body onload="setTimeout('redirTimer()', 3000)">
wait 3 seconds...
</body>
</html>
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Count files downloaded - 10/5/2005 9:56:36
Glad it works (now) LOL - good luck with the site and thanks!!
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/5/2005 9:59:40
This is an excellent Forum. I will be back often - I really am getting into FrontPage.
|
|
|
|
royUK
Posts: 11 Joined: 9/6/2005 Status: offline
|
RE: Count files downloaded - 10/6/2005 6:34:20
Just thought I would summarise what I did with the help of Corey & jaybee. Set up an free account with http://www.statcounter.com/ Added a new page with a suitable name, eg ThisFileStats in the Folder that contains ThisFile Added this text to the page: Thank you for downloading the Excel WebToolbar If your download does not start after 5 seconds please click here Hyperlinked "here" to the ThisFile Added the download code provided by the Download service - chose no to display it. Then used this code in the Meta Tags to start the Download <meta http-equiv="refresh" content="3;url=ThisFile.txt"> I also added a "Back" button for good measure N.B. - ThisFile.txt will need to be changed to relevant name Thanks once again for the assistance.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|