Hi all
I have coded some JavaScript as well as XHTML and now have a project that
will help me learn to code better. An end to the means shall we say.
The project will display data (Duty rosta for Doctors) in the browser, the
page is dynamically created with JavaScript, at this point in time I
assign values to the variables in the JavaScript and they appear in the
correct places in the browser, and all the required data processes work,
no black magic there.
I have created an Excel sheet that the user data is inputted through,
completely automated and works well, now!! can I get JavaScript read the
data from the server side excel sheet into these variables, if so how, or
do I need to start looking into another language here, I program in Visual
Basic 5 and a little C++ but thought this is a XHTML/JavaScript related
problem.
A few plain english pointers would be apprectiated on how others would
attack the problem.
Thanks
DaveG 3 2510
Dave Griffiths wrote: I have created an Excel sheet that the user data is inputted through, completely automated and works well, now!! can I get JavaScript read the data from the server side excel sheet into these variables, if so how, or do I need to start looking into another language here, I program in Visual Basic 5 and a little C++ but thought this is a XHTML/JavaScript related problem.
You've gone for a strange architecture, why use an Excel spreadsheet as
a database?
Anyway, client-side javascript wouldn't be able to read the server-side
Excel file, at least not in a normal environment (IE in a secure
environment would probably be able to do it).
You need therefore server-side scripting, either (1) to read the Excel
file and send the whole HTML file with preset values, or (2) to interact
more or less in the background with the Excel file.
If you have ASP (Active Server Pages), then use it, it'll be easy to
automate Excel from the server, either using VBScript or JScript, with
the CreateObject method of the Server object.
Regards,
Yep.
On Wed, 19 Nov 2003 23:31:23 +0100, Yann-Erwan Perio wrote: Dave Griffiths wrote:
I have created an Excel sheet that the user data is inputted through, completely automated and works well, now!! can I get JavaScript read the data from the server side excel sheet into these variables, if so how, or do I need to start looking into another language here, I program in Visual Basic 5 and a little C++ but thought this is a XHTML/JavaScript related problem.
You've gone for a strange architecture, why use an Excel spreadsheet as a database?
Anyway, client-side javascript wouldn't be able to read the server-side Excel file, at least not in a normal environment (IE in a secure environment would probably be able to do it).
You need therefore server-side scripting, either (1) to read the Excel file and send the whole HTML file with preset values, or (2) to interact more or less in the background with the Excel file.
If you have ASP (Active Server Pages), then use it, it'll be easy to automate Excel from the server, either using VBScript or JScript, with the CreateObject method of the Server object.
Regards, Yep.
Thanks
Tell me which way you would have gone about this, I'm really open to
suggestions and would like to know the "correct" method of implementing
such a task, I really do not have any great idea's here and the excel
sheet was the easiest option to get somethings visable for the users
originally, now we want to publish it on our intranet and if the excel
sheet needs to go then so be it.
I have never used ASP but that is now my next port of call, thanks again.
DaveG
Dave Griffiths wrote:
Hi Dave, sorry for the late answer. Tell me which way you would have gone about this, I'm really open to suggestions and would like to know the "correct" method of implementing such a task, I really do not have any great idea's here and the excel sheet was the easiest option to get somethings visable for the users originally, now we want to publish it on our intranet and if the excel sheet needs to go then so be it.
Ah, I originally thought data were contained in the spreadsheet, not
that they were inputted by the user, I didn't think it enough :-) Well,
that's another matter, and since you couldn't apparently use web-based
solutions from the beginning (with forms), the only other alternatives I
see would have been to use forms, in Access - which makes it mandatory
for the user to have Access installed and understood - not always possible.
I can now imagine you need to use Excel as the data source, the solution
you want to set up doesn't look bad, and you should be okay using ASP to
access the data. Now, I can only suggest you take a strong defensive
approach while parsing the Excel data, since users can easily change the
Excel format, adding/deleting colums, masking/renaming stuff, changing
cells type etc.
For this sort of scriting, VBScript/ASP might be better than
JScript/ASP, though I believe you could also encapsulate some
validation/retrieval code into macros (I've never automated Excel macros
in the past).
Good luck,
Yep. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: nospam |
last post by:
THIS IS the DOTNETJUNKIES MESSAGE
-------------------------
We're Sorry
As many of you know we have recently launched SqlJunkies.com. We have
overhauled our runtime and will be using it on...
|
by: athos |
last post by:
Hi all,
Believe you have sound experience in development, however, if we look
at the whole Software Development Life Cycle (SDLC) of the project,
say,
1. Project Initiation,
2. Gathering...
|
by: John Smith |
last post by:
Hi,
How can I get the project folder programmatically at design time?
I'd like to use it in the Forms Designer during dialog design process...
And another question... how can I create a custom...
|
by: Adam Clauss |
last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to
get them all added to the solution. Preferable would be that the...
|
by: John Murray |
last post by:
Hi,
I'm setting up a project management website, and having a bit of trouble.
As part of the site, I have been asked to have a javascript dropdown menu
that will open several MS Project (mpp)...
| |
by: John Fly |
last post by:
I'm working on a large project(from scratch). The program is
essentially a data file processor, the overall view is this:
A data file is read in, validated and stored in a memory structure...
|
by: Simon |
last post by:
Hi there,
my question is not specifically related to C++, but rather the
practice around it. I've started a big project in C++ and stumbled
onto a couple problems like inter-dependency, forward...
|
by: AG |
last post by:
I am trying to use a ReportViewer control in a VS 2005 web application
project (not Website project).
When I try to create a new report (local), I can't seem to find any method
to create a...
|
by: Tim |
last post by:
Dear All,
In my opinion, there are so many possible designs for a project, even
small up to a class. How can I know which one is better? Is there any
important point I should consider in the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |