dataurl in Tabular Data Control

G

Guest

I want to allow a user to read a local file from their hard drive and load
information on my web page. I am using the TDC object.

Here is what will work when I "preview in browser"

<OBJECT ID="Collection" CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"
width="1" height="1">
<PARAM NAME="DataURL" VALUE="C:\comicmart\collection.csv">
<PARAM NAME="UseHeader" VALUE="TRUE">
</OBJECT>

I have tried to use the following but it does not work.

<OBJECT ID="Collection" CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"
width="1" height="1">
<PARAM NAME="DataURL" VALUE="file://C:\\ComicMart\collection.csv">
<PARAM NAME="UseHeader" VALUE="TRUE">
</OBJECT-->

Is there a way to read a local file (collection.csv) into a web page?

The resulting web page would show the user their file information on my web
page and would not be visible to other people.
 
S

Stefan B Rusynko

Not possible

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I want to allow a user to read a local file from their hard drive and load
| information on my web page. I am using the TDC object.
|
| Here is what will work when I "preview in browser"
|
| <OBJECT ID="Collection" CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"
| width="1" height="1">
| <PARAM NAME="DataURL" VALUE="C:\comicmart\collection.csv">
| <PARAM NAME="UseHeader" VALUE="TRUE">
| </OBJECT>
|
| I have tried to use the following but it does not work.
|
| <OBJECT ID="Collection" CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"
| width="1" height="1">
| <PARAM NAME="DataURL" VALUE="file://C:\\ComicMart\collection.csv">
| <PARAM NAME="UseHeader" VALUE="TRUE">
| </OBJECT-->
|
| Is there a way to read a local file (collection.csv) into a web page?
|
| The resulting web page would show the user their file information on my web
| page and would not be visible to other people.
| --
| sclarke24
 
G

Guest

Is there another way to read a local file into a web page?
Maybe using something other than TDC objects?

Here is a section from a book I am reading to learn how to use links.
I have tried it and I can not get it to work.

"It's important to use document-relative paths instead of absolute paths in
your website. If you have an absolute path to a file on your local drive, the
link will look like the following:

file:///C|/My Documents/first_page.html

This file, first_page.html, is on the C: drive in a directory called My
Documents. If you preview this page in your browser, it works fine for you.
So, what's the problem? The reason it works fine is that you have that page
available on your hard drive, but other people don't have access to your hard
drive and will not be able to access the page."

This is exactly what I want to do - access the users hard drive for a file.
If the user wants to use this feature, they would have to create a file with
the right name and format, then put in it the right path on their hard drive.
Otherwise it would not be visible on the web page.

Thanks for your assist.
 
T

Thomas A. Rowe

For security reasons, a web page can not access files on a local PC.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


sclarke24 said:
Is there another way to read a local file into a web page?
Maybe using something other than TDC objects?

Here is a section from a book I am reading to learn how to use links.
I have tried it and I can not get it to work.

"It's important to use document-relative paths instead of absolute paths in
your website. If you have an absolute path to a file on your local drive, the
link will look like the following:

file:///C|/My Documents/first_page.html

This file, first_page.html, is on the C: drive in a directory called My
Documents. If you preview this page in your browser, it works fine for you.
So, what's the problem? The reason it works fine is that you have that page
available on your hard drive, but other people don't have access to your hard
drive and will not be able to access the page."

This is exactly what I want to do - access the users hard drive for a file.
If the user wants to use this feature, they would have to create a file with
the right name and format, then put in it the right path on their hard drive.
Otherwise it would not be visible on the web page.

Thanks for your assist.
--
sclarke24


Stefan B Rusynko said:
Not possible

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I want to allow a user to read a local file from their hard drive and load
| information on my web page. I am using the TDC object.
|
| Here is what will work when I "preview in browser"
|
| <OBJECT ID="Collection" CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"
| width="1" height="1">
| <PARAM NAME="DataURL" VALUE="C:\comicmart\collection.csv">
| <PARAM NAME="UseHeader" VALUE="TRUE">
| </OBJECT>
|
| I have tried to use the following but it does not work.
|
| <OBJECT ID="Collection" CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"
| width="1" height="1">
| <PARAM NAME="DataURL" VALUE="file://C:\\ComicMart\collection.csv">
| <PARAM NAME="UseHeader" VALUE="TRUE">
| </OBJECT-->
|
| Is there a way to read a local file (collection.csv) into a web page?
|
| The resulting web page would show the user their file information on my web
| page and would not be visible to other people.
| --
| sclarke24
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top