473,799 Members | 3,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

may I ask for comments on code?

Hello,

I wonder if this is possible?

I have some code which works but would appreciate comments with a view
to improving the code - appropriate to post it and ask for comments?

Cheers

Geoff
Oct 14 '05 #1
6 1201
Geoff Cox said the following on 10/14/2005 6:13 PM:
Hello,

I wonder if this is possible?
Anything is possible but not everything is realistic :)
I have some code which works but would appreciate comments with a view
to improving the code - appropriate to post it and ask for comments?


A URL is preferred unless it is short code.

If you do post it, make sure you hand format it so that it does not
exceed about 70 characters per line. Once you have it formatted that
way, before you post, copy/paste it back into a test page and make sure
your formatting hasn't caused an unintended error.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 14 '05 #2
On Fri, 14 Oct 2005 18:58:56 -0400, Randy Webb
<Hi************ @aol.com> wrote:
I have some code which works but would appreciate comments with a view
to improving the code - appropriate to post it and ask for comments?


A URL is preferred unless it is short code.


Randy,

OK - will give it a whirl !

The URL is

http://www.micro-active.com/spa-test/spa-ng-front.htm

The first page linsk to a second where most of the Javascript is to be
found.

The slider code is in a file called slider.js which is in the same
folder and can be downloaded if required ...

After the last questions have been answered the slider values are
emailed to me using formmail-nms.cgi.

Look forward to hearing of any (many!) possible improvemenst etc.

Cheers

Geoff

PS I will add this in a separate posting aswell.
Oct 15 '05 #3

"Geoff Cox" <ge*******@notq uitecorrectfree uk.com> wrote in message
news:br******** *************** *********@4ax.c om...
On Fri, 14 Oct 2005 18:58:56 -0400, Randy Webb
<Hi************ @aol.com> wrote:
I have some code which works but would appreciate comments with a view
to improving the code - appropriate to post it and ask for comments?


A URL is preferred unless it is short code.


Randy,

OK - will give it a whirl !

The URL is

http://www.micro-active.com/spa-test/spa-ng-front.htm

The first page linsk to a second where most of the Javascript is to be
found.

The slider code is in a file called slider.js which is in the same
folder and can be downloaded if required ...

After the last questions have been answered the slider values are
emailed to me using formmail-nms.cgi.

Look forward to hearing of any (many!) possible improvemenst etc.

Cheers

Geoff

PS I will add this in a separate posting aswell.


first page the slider thumb is in the middle of the screen - have you tested
this on different screen reolutions ?

What are the questions ? You have a title and a list of possible responses
but I see no questions.

Oct 15 '05 #4
On Sat, 15 Oct 2005 15:58:23 GMT, "Zoe Brown"
<zo***********@ N-O-S-P-A-A-Mtesco.net> wrote:
PS I will add this in a separate posting aswell.
first page the slider thumb is in the middle of the screen - have you tested
this on different screen reolutions ?


Zoe,

no but will do now! it is OK in v6 IE for me.
What are the questions ? You have a title and a list of possible responses
but I see no questions.


perhaps a bad choice of words of mine - you should see a series of
polar statements, eg on the first one has

"I would often be in this situation" and

"I would hardly ever be in this situation"

Questions is not the correct word - will change it later.

Any thoughts on any aspects of the Javascript itself?

Thanks

Geoff
Oct 15 '05 #5
On Sat, 15 Oct 2005 15:58:23 GMT, "Zoe Brown"
<zo***********@ N-O-S-P-A-A-Mtesco.net> wrote:

PS I will add this in a separate posting aswell.


first page the slider thumb is in the middle of the screen - have you tested
this on different screen reolutions ?


Zoe,

It seems to me that the thumb is in the correct position if the
browser window is maximised - do you find that?

Geoff

Oct 15 '05 #6
On Fri, 14 Oct 2005 22:13:51 GMT, Geoff Cox
<ge*******@notq uitecorrectfree uk.com> wrote:

Thanks for the comments - will remove the pages now.

Cheers

Geoff

Oct 17 '05 #7

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

Similar topics

4
3379
by: Sims | last post by:
Hi, I proud myself in having good comments, (/**/, // etc...), all over my scripts as well as a very descriptive section at the beginning of the script. No correct me if i am wrong but php must still 'read' those comments? So, do comments technically slow the whole process? Or is the loss of CPU/Time/memory so negligible that i do not need to worry about it.
17
2755
by: lkrubner | last post by:
I've got a PHP application that's 2 megs in size. Of that, my guess is 200k-400k is comments. Do they impose a performance hit? I've been postponing any kind of optimization, but at some point I'll have to do it. Is taking out the comments worth it? Of all the optimizations I can do, where should it rank?
28
3465
by: Benjamin Niemann | last post by:
Hello, I've been just investigating IE conditional comments - hiding things from non-IE/Win browsers is easy, but I wanted to know, if it's possible to hide code from IE/Win browsers. I found <!> in the original MSDN documentation, but this is (although it is working) unfortunately non-validating gibberish. So I fooled around trying to find a way to make it valid. And voila: <!--><!><!-->
10
2093
by: Monk | last post by:
Hi, Have a query regarding comments that extend over multiple-lines. Would like to know if the standard's view of this, so that we can create a code which doesn't run into compiler specific issues. 1. A normal comments is /* comment text */ 2. A multiple line comment is
40
4649
by: Edward Elliott | last post by:
At the risk of flogging a dead horse, I'm wondering why Python doesn't have any multiline comments. One can abuse triple-quotes for that purpose, but that's obviously not what it's for and doesn't nest properly. ML has a very elegant system for nested comments with (* and *). Using an editor to throw #s in front of every line has limitations. Your editor has to support it and you have to know how to use that feature. Not exactly...
98
4630
by: tjb | last post by:
I often see code like this: /// <summary> /// Removes a node. /// </summary> /// <param name="node">The node to remove.</param> public void RemoveNode(Node node) { <...> }
2
7342
by: beatTheDevil | last post by:
Hey guys, As the title says I'm trying to make a regular expression (regex/regexp) for use in removing the comments from code. In this case, this particular regex is meant to match /* ... */ comments. I'm using Ruby v.1.8.6 Here's my regex: multiline_comments = /\/\*(.*?)\*\// When I try myStr.gsub(multiline_comments, "")
2
5389
by: mad.scientist.jr | last post by:
In .NET 2.0, is there any way to include comments in the aspx file that do not get rendered to the client (ie no <!-- -->) ? When I try to include C# comments in a code block in an aspx page, like this: <% // ******************************************************* // CHANGE HISTORY: // DATE USER CHANGE
6
12001
by: Marjeta | last post by:
I was trying to compare a particular trigger on multiple servers. First I tried phpMyAdmin to script the trigger code, which unfortunately only worked on one server that has newer version of phpMyAdmin... Then I used mysqldump, which scripted trigger code on all the servers, bur with comments around all the trigger related code: phpMyAdmine scripted trigger code without comments. Why are those comments there? I searched thru...
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10488
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10237
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9077
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6808
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.