Count files downloaded (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


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




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




jaybee -> RE: Count files downloaded (10/4/2005 8:53:19)

Roy, you'll need to open up the page and click on the code tab at the bottom.

At the top you'll see other meta tags that sit within the header section.

Put your cursor at the end of one of the meta tags and press enter to create a new blank line then copy and paste Corey's code into it, then type in the correct filename where he's got filename.zip.

Save the page.




royUK -> 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)?




jaybee -> RE: Count files downloaded (10/4/2005 9:11:24)

I do like an optimist! If it doesn't work then complain to Corey.

It's good if you can come back and just post that it worked for the benefit of others but there's no need to make the title solved. [:D]




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




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




jaybee -> RE: Count files downloaded (10/4/2005 14:07:50)

quote:

<meta http-equiv="refresh" content="3; URL="ExcelWebToolbar.exe">



COOOOOEEEE! Come Back! There's a bit missing. Whenever you get the mixed colour bit look carefully at what you've got before the colour change.

<meta http-equiv="refresh" content="3"; URL="ExcelWebToolbar.exe">


Naughty Corey [8D]




jaybee -> RE: Count files downloaded (10/4/2005 14:14:00)

quote:

URL="ExcelWebToolbar.exe"


Is the exe file in your root folder? If not, that won't work.




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




jaybee -> RE: Count files downloaded (10/4/2005 14:18:46)

That's the worst place to trust! [sm=lol.gif]




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





royUK -> 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 -> RE: Count files downloaded (10/5/2005 8:54:20)

Can you provide a link?




coreybryant -> RE: Count files downloaded (10/5/2005 8:57:40)

Or try:
<meta http-equiv="refresh" content="3;url=ExcelWebToolbar.exe">




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




royUK -> RE: Count files downloaded (10/5/2005 9:37:31)

This is the link to the web page

http://www.excel-it.com/addins/freeadd-ins/freeadd-ins.htm

Click on th etoolbar image to download & it opens the "stats" page.




coreybryant -> RE: Count files downloaded (10/5/2005 9:44:05)

Try the new meta code I gave you or the new JS code.




royUK -> RE: Count files downloaded (10/5/2005 9:51:23)

Hi Corey

The new meta tag code works great!!!!!! Thanks a million.

If you ever need any help with Excel give me a shout.

[:)][:)][:)]




coreybryant -> RE: Count files downloaded (10/5/2005 9:56:36)

Glad it works (now) LOL - good luck with the site and thanks!!




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






Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125