473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

beginners question

Hello,
i gave made some code in VBA for Excel.
i want to make a webpage with the same examples as my excel file, so i think
i will need javascript (serverside?)
how do i begin?
are there some good sites?
thanks.
Sep 9 '05 #1
5 1295
"dirk" <dd> wrote in message
news:43***********************@news.skynet.be...
Hello,
i gave made some code in VBA for Excel.
i want to make a webpage with the same examples as my excel file, so i
think
i will need javascript (serverside?)
how do i begin?
are there some good sites?


Are we to understand that you want a web page that shows/execute
som mathematical calculations based on some user input?

You can do this serverside in any language supported by your
webserver by posting the form with the input-values back to
your server-script, let it do the calculations and generate
the result page back to the browser.

If you do it serverside I suggest using IIS, since you obviously
are familiar with VBA witch are very close to VBScript. ASP pages
can be coded in VB-Script.

Or... You can choos to write all your calculations in JavaScript
as functions in the web-page itself, and do all of the work in
the users browser (clientside).

If you choose the last alternative (I would), then this is the
right NG to ask.

--
Dag.
Sep 9 '05 #2
i want to make a webpage with the same examples as my excel file


That's just too vague. No idea what you're trying to say there.
Sep 10 '05 #3
so yes,
i want to do it by using javascript (client side)
what do you mean by "the right NG to ask"?

can you give me some examples for writing an inputbox and a commandbutton on
a html page,
then returning the value of this inputbox by deviding it by 3 for example?

are there some good sites where i can study this?
thank you
"Dag Sunde" <me@dagsunde.com> wrote in message
news:cI*******************@juliett.dax.net...
"dirk" <dd> wrote in message
news:43***********************@news.skynet.be...
Hello,
i gave made some code in VBA for Excel.
i want to make a webpage with the same examples as my excel file, so i
think
i will need javascript (serverside?)
how do i begin?
are there some good sites?


Are we to understand that you want a web page that shows/execute
som mathematical calculations based on some user input?

You can do this serverside in any language supported by your
webserver by posting the form with the input-values back to
your server-script, let it do the calculations and generate
the result page back to the browser.

If you do it serverside I suggest using IIS, since you obviously
are familiar with VBA witch are very close to VBScript. ASP pages
can be coded in VB-Script.

Or... You can choos to write all your calculations in JavaScript
as functions in the web-page itself, and do all of the work in
the users browser (clientside).

If you choose the last alternative (I would), then this is the
right NG to ask.

--
Dag.

Sep 12 '05 #4
"dirk" <dd> wrote in message
news:43***********************@news.skynet.be...
"Dag Sunde" <me@dagsunde.com> wrote in message
news:cI*******************@juliett.dax.net...
"dirk" <dd> wrote in message
news:43***********************@news.skynet.be...
> Hello,
> i gave made some code in VBA for Excel.
> i want to make a webpage with the same examples as my excel file, so i
> think
> i will need javascript (serverside?)
> how do i begin?
> are there some good sites?
Are we to understand that you want a web page that shows/execute
som mathematical calculations based on some user input?

You can do this serverside in any language supported by your
webserver by posting the form with the input-values back to
your server-script, let it do the calculations and generate
the result page back to the browser.

If you do it serverside I suggest using IIS, since you obviously
are familiar with VBA witch are very close to VBScript. ASP pages
can be coded in VB-Script.

Or... You can choos to write all your calculations in JavaScript
as functions in the web-page itself, and do all of the work in
the users browser (clientside).

If you choose the last alternative (I would), then this is the
right NG to ask.

so yes,
i want to do it by using javascript (client side)
what do you mean by "the right NG to ask"?

can you give me some examples for writing an inputbox and a commandbutton
on
a html page,
then returning the value of this inputbox by deviding it by 3 for example?

are there some good sites where i can study this?
thank you


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Divide</title>
<script type="text/javascript">
function divideBy3() {
var myNum = document.getElementById("myNumber").value;
var myResult = document.getElementById("result");
myResult.value = myNum / 3;
return true
}
</script>
</head>

<body>
<label>Number to divide: </label>
<input type="text" id="myNumber" value="" />&nbsp;
<input type="button" id="cmdDivide" value="Divide by 3"
onclick="divideBy3();"/><br />
<label>Result: </label>
<input type="text" id="result" value="" />
</body>

</html>

--
Dag.
Sep 12 '05 #5
ASM
dirk wrote:

can you give me some examples for writing an inputbox and a commandbutton on
a html page,
then returning the value of this inputbox by deviding it by 3 for example?
<html>
<form name="form_1">
<p>Enter a number here :
<input type=text onchange="result.value=this.value/3">
and click outside (on page)
<input type=text name="result">
<hr>
<p>number 1 :
<input type=text name="num1" size=5>
<select name="choiss">
<option>Operator
<option> +
<option> -
<option> :
<option> x
</select>
number 2 :
<input type=text name="num2" size=5>
<input type=button value="calcul" onclick="calc()">
<input type=text name="total" size=6>
</form>
<script type="text/javascript">
function calc() {
var f = document.forms['form_1'];
var n1 = f.num1.value;
var n2 = f.num2.value;
var op = new Array('','+','-','/','*');
var i = f.choiss.selectedIndex;
if(i==0) alert('you din\'t select an operator');
else
f.total.value= eval(n1+op[i]+n2);
}
</script>
</html>
are there some good sites where i can study this?
thank you
"Dag Sunde" <me@dagsunde.com> wrote in message
news:cI*******************@juliett.dax.net...
"dirk" <dd> wrote in message
news:43***********************@news.skynet.be. ..
Hello,
i gave made some code in VBA for Excel.
i want to make a webpage with the same examples as my excel file, so i
think
i will need javascript (serverside?)
how do i begin?
are there some good sites?


Are we to understand that you want a web page that shows/execute
som mathematical calculations based on some user input?

You can do this serverside in any language supported by your
webserver by posting the form with the input-values back to
your server-script, let it do the calculations and generate
the result page back to the browser.

If you do it serverside I suggest using IIS, since you obviously
are familiar with VBA witch are very close to VBScript. ASP pages
can be coded in VB-Script.

Or... You can choos to write all your calculations in JavaScript
as functions in the web-page itself, and do all of the work in
the users browser (clientside).

If you choose the last alternative (I would), then this is the
right NG to ask.

--
Dag.


--
Stephane Moriaux et son [moins] vieux Mac
Sep 12 '05 #6

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

Similar topics

7
by: Will | last post by:
Pardon two post in a row to the newsgroup but I want to try and expedite this, if you guys don't mind helping out... I running Windows XP Pro and wanted to download Python and any additional...
4
by: blah | last post by:
I m actually a Novice in Python as well as Linux, When i look up things on the internet about Linux Flavours, They are written so complex that it is difficult for me to understand, i am asking if...
4
by: Eggnog | last post by:
Hi, Is there a newsgroups for beginners questions? Cheers, Nawg
6
by: William Foster | last post by:
Does anyone know of a good online tutorial for C# focused on beginners. I have been to many great sites like csharpfriends, csharp-corner etc looking for good tutorials and have had no luck. Any...
18
by: John Salerno | last post by:
Hi all. I was hoping some of you could recommend a book or two that would help me get started with the basics of C#. I have a slight knowledge of programming, but basically I want to start out like...
2
by: =?Utf-8?B?UmFrZXNo?= | last post by:
Hi, I have worked in Windows development for some time and want to learn ASP.Net - Web Application. Can some one redirect me to some site where I can find some good start up for beginners course...
4
by: aman firoz | last post by:
do you people got anything for c beginners..... help me out guys
0
by: Dual_b00t | last post by:
hi i created a site called PHP Together its for beginners also for gurus to help out the beginners if you are learning PHP and feel alone then drop by . ciao Mark
19
by: yltkhuu | last post by:
1. How does having a widely adopted C++ standard help game programmers? 2. What are the advantages ans disadvantages of employing the "using" directive? 3. Why might you define a new name for an...
6
by: Lars | last post by:
Hi all If this is the wrong list for beginners trouble I apologize. please refer to me the correct list in such case. I am trying to create a simple linked list but I keep getting segmentation...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.