473,505 Members | 16,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Functions

I am learning HTML for the first time taking a self teaching class
though my local Community College. Normally this college rocks and has
some of the best resources and down to earth teachers that pick books
that acutally help folks.

Well they failed and my book take more logic jumps that Stephen
Hawkins! :D

So my ultimate question is as follows:

How do I created a function with the following information provided:

Create a fucntion named Mquote that contains the single parameter,
Qnum.

My apologies for such little information. I am sure its my oversight
that I am unable to locate the answer to my question.

What I am looking for is the base layout for noob java functions.

Thanks!

Jul 23 '05 #1
7 1053
Wintersrush,

You want to create a function that takes in a single parameter:

function Mquote(Qnum)
{
//...code to be executed here...
}

Jul 23 '05 #2
Winters rush wrote:
[...]
How do I created a function with the following information provided:

Create a fucntion named Mquote that contains the single parameter,
Qnum.


var Mquote= function(Qnum){//statements }

Mick
Jul 23 '05 #3
function Mquote (Qnum)
{
//Code
}
**web.dev: You forgot your end of function marks**

Jul 23 '05 #4
ve***********@gmail.com wrote:
function Mquote (Qnum)
{
//Code
}

**web.dev: You forgot your end of function marks**


No he didn't, and if you wanted to reply to web.dev why did you post
your reply to Mick Whilte's post? Looks like you need to find yourself a
functional newsreader.

Richard.
Jul 23 '05 #5
ve***********@gmail.com wrote:
function Mquote (Qnum)
{
//Code
}
**web.dev: You forgot your end of function marks**


This is a copy paste of web.dev's post:
function Mquote(Qnum)
{
//...code to be executed here...
}

Where exactly is the "end of function marks" you are babbling about?
Perhaps if you would read this groups FAQ before posting, you would know
to quote what you are replying to and quoting the above code would have
helped you recognize that the code posted was indeed a complete answer,
not missing anything.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #6
Randy Webb wrote:
ve***********@gmail.com wrote:
function Mquote (Qnum)
{
//Code
}
**web.dev: You forgot your end of function marks**


This is a copy paste of web.dev's post:
function Mquote(Qnum)
{
//...code to be executed here...
}

Where exactly is the "end of function marks" you are babbling about?
Perhaps if you would read this groups FAQ before posting, you would know
to quote what you are replying to and quoting the above code would have
helped you recognize that the code posted was indeed a complete answer,
not missing anything.


Perhaps the reference was to the 'missing' //--> ;-)

--
Rob
Jul 23 '05 #7
Richard Cornford wrote:
ve***********@gmail.com wrote:
function Mquote (Qnum)
{
//Code
}

**web.dev: You forgot your end of function marks**


No he didn't, [...]


I did not check ECMAScript about that, but for all practical purposes he
did. The single-line comment includes the `}' and so the `}' after the
function body is missing which results in a syntax error in Firefox
1.0.4/GNU/Linux.
PointedEars
Jul 23 '05 #8

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

Similar topics

1
1829
by: whimsica | last post by:
I'm investingating a c++ api, Panda3d.com, that has a python binding. I want to convert this api into an ACtiveX control so it will run on the web. When I do so I want to use Microsoft Script...
9
2096
by: Charlene Russ | last post by:
Learn on-line at your own in a user-centered format with plenty of interaction and personal attention. This is a basic level coursed designed to introduce the novice to intermediate computer...
6
1984
by: Alex Fitzpatrick | last post by:
Just by way of introduction, I'm currently the principal developer and maintainer of the a JavaScript editor plug-in for Eclipse. https://sourceforge.net/projects/jseditor/ The plug-in as it...
18
4346
by: Arthur Connor | last post by:
Is there a way of extracting the Javascript code from the "normal" HTML code (e.g. similar to CSS code which can be put into a separate file) ? If you offer a solution: can I determine in your...
136
9201
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
2
4054
by: Jeronimo Bertran | last post by:
A couple of questions I am having problems with converting my JavaScript to C#. I have the following code using JavaScript for the mouseover handler that works fine: <SCRIPT...
11
2758
by: Nathan Sokalski | last post by:
I add several JavaScript events (onchange, onkeypress, etc.) to Controls using the Add method of the Attributes collection. However, if the JavaScript code contains certain characters, such as & or...
1
25621
pbmods
by: pbmods | last post by:
VARIABLE SCOPE IN JAVASCRIPT LEVEL: BEGINNER/INTERMEDIATE (INTERMEDIATE STUFF IN ) PREREQS: VARIABLES First off, what the heck is 'scope' (the kind that doesn't help kill the germs that cause...
2
2486
by: Peter Michaux | last post by:
Douglas Crockford doesn't seem to like JavaScript's built-in syntax for building new objects based on a prototype object. The constructor function, its prototype property and the "new" keyword all...
23
2577
Frinavale
by: Frinavale | last post by:
JavaScript is a very strange place for me... So, I decided that, before I attempt to create an Object, I should first learn about Objects. I had actually created one before with the help of a...
0
7218
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
7307
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
7370
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
7021
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
7478
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...
0
5614
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
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.