473,513 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Project design

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
Jul 20 '05 #1
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.
Jul 20 '05 #2
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
Jul 20 '05 #3
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.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
3999
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...
1
3502
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...
1
2975
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...
8
1926
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...
3
1653
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)...
11
2333
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...
3
1954
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...
10
3737
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...
1
1366
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...
0
7260
marktang
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,...
0
7161
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...
0
7384
Oralloy
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,...
0
7539
jinu1996
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...
1
7101
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...
0
5686
agi2029
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,...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
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 ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.