navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Count files downloaded

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Count files downloaded
Page: [1]
 
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

(in reply to royUK)
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.

(in reply to coreybryant)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to royUK)
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)?

(in reply to jaybee)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to royUK)
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.

(in reply to jaybee)
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

(in reply to royUK)
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

(in reply to coreybryant)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

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

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to royUK)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
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

(in reply to jaybee)
jaybee

 

Posts: 14145
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Count files downloaded - 10/4/2005 14:18:46   
That's the worst place to trust! :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to coreybryant)
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.

(in reply to jaybee)
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"


(in reply to royUK)
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?

(in reply to treetopsranch)
coreybryant

 

Posts: 2422
Joined: 3/17/2002
From: Castle Rock CO USA
Status: offline

 
RE: Count files downloaded - 10/5/2005 8:54:20   
Can you provide a link?

_____________________________

Corey R. Bryant
Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog

(in reply to royUK)
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

(in reply to coreybryant)
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

(in reply to coreybryant)
royUK

 

Posts: 11
Joined: 9/6/2005
Status: offline

 
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.

(in reply to coreybryant)
coreybryant

 

Posts: 2422
Joined: 3/17/2002
From: Castle Rock CO USA
Status: offline

 
RE: Count files downloaded - 10/5/2005 9:44:05   
Try the new meta code I gave you or the new JS code.

_____________________________

Corey R. Bryant
Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog

(in reply to royUK)
royUK

 

Posts: 11
Joined: 9/6/2005
Status: offline

 
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.

:):):)

(in reply to coreybryant)
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

(in reply to royUK)
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.

(in reply to coreybryant)
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.



(in reply to royUK)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Count files downloaded
Page: [1]
Jump to: 1





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