473,804 Members | 3,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

grid javascript

Hi,

any excel like grid javascript which is stable and fast to load thousand of rows data ? can it have F2 function to popup another window ? can validate cell value when cursor move away that cell ?

Either free or low developer license with royalty-free distributed with web application.

TQ.
Regards
Hoe
tn***@pc.jaring .my
Jul 23 '05 #1
19 1820
i'm working on it, ready in 2 months

Jul 23 '05 #2
"michael elias"

well, plz drop me more details when you are ready.

TQ
hoe
Jul 23 '05 #3
Really? That would be neat.

After seeing your response I wondered if you're the one to ask this: where
can I find a JavaScript to put commas in a number as it's type into an HTML
textbox? I searched the web for such a script and I find a bunch that work
(I guess) if you want the user to enter the value, then click a button to
format the entry. But that's a lame user interface. I need this to happen
as they type. I tried to modify a few, but I'm still new to JavaScript, so
I didn't have much success. Do you know of such a script?

Thanks,

Russell Campbell

"michael elias" <mi************ @gmail.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
i'm working on it, ready in 2 months

Jul 23 '05 #4
"Russell Campbell" <no****@byteme. com> wrote in message
news:wN******** ********@newsre ad3.news.atl.ea rthlink.net...
Really? That would be neat.

After seeing your response I wondered if you're the one to ask this: where can I find a JavaScript to put commas in a number as it's type into an HTML textbox? I searched the web for such a script and I find a bunch that work (I guess) if you want the user to enter the value, then click a button to
format the entry. But that's a lame user interface. I need this to happen as they type. I tried to modify a few, but I'm still new to JavaScript, so I didn't have much success. Do you know of such a script?

Thanks,

Russell Campbell

Will this help?

<html>
<head>
<title>commas.h tm</title>
<script type="text/javascript">
function commas(that) {
var temp = "";
var what = that.value.repl ace(/,/g,"");
if (what.length == 0) return;
for (i=0; i<what.length; i++) {
if (i > 0 && i % 3 == 0) temp += ",";
temp += what.charAt(i);
}
that.value = temp;
}
</script>
</head>
<body>
<form>
<input type="text" name="numb"
style="text-align:right"
onkeyup="commas (this)">
<input type="reset" value="Clear">
</form>
</body>
</html>

Of course, JavaScript has to be enabled.
Jul 23 '05 #5
Yes, that does it for integers. Thanks. I did notice that if you enter
123456789.00 then you get 123,456,789,.00

However, in this case the user will only be entering positive integer
values, so I'm not too concerned about that issue (though if you wanted to
submit a corrected script, I would not object <g>).

Thanks again - especially for the quick reply!

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:8-*************** *****@comcast.c om...
"Russell Campbell" <no****@byteme. com> wrote in message
news:wN******** ********@newsre ad3.news.atl.ea rthlink.net...
Really? That would be neat.

After seeing your response I wondered if you're the one to ask this:

where
can I find a JavaScript to put commas in a number as it's type into an

HTML
textbox? I searched the web for such a script and I find a bunch that

work
(I guess) if you want the user to enter the value, then click a button to
format the entry. But that's a lame user interface. I need this to

happen
as they type. I tried to modify a few, but I'm still new to JavaScript,

so
I didn't have much success. Do you know of such a script?

Thanks,

Russell Campbell

Will this help?

<html>
<head>
<title>commas.h tm</title>
<script type="text/javascript">
function commas(that) {
var temp = "";
var what = that.value.repl ace(/,/g,"");
if (what.length == 0) return;
for (i=0; i<what.length; i++) {
if (i > 0 && i % 3 == 0) temp += ",";
temp += what.charAt(i);
}
that.value = temp;
}
</script>
</head>
<body>
<form>
<input type="text" name="numb"
style="text-align:right"
onkeyup="commas (this)">
<input type="reset" value="Clear">
</form>
</body>
</html>

Of course, JavaScript has to be enabled.

Jul 23 '05 #6
Whoops - I was not careful enough in looking at this (I was happy just to
get a script that woked as the user typed). This adds the comma from left
to right, so if you enter 12345 - you get 123,45. I think using the
function function that will reverse text, then having it add the commas,
then reversing it back might fix the issue . . .

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:8-*************** *****@comcast.c om...
"Russell Campbell" <no****@byteme. com> wrote in message
news:wN******** ********@newsre ad3.news.atl.ea rthlink.net...
Really? That would be neat.

After seeing your response I wondered if you're the one to ask this:

where
can I find a JavaScript to put commas in a number as it's type into an

HTML
textbox? I searched the web for such a script and I find a bunch that

work
(I guess) if you want the user to enter the value, then click a button to
format the entry. But that's a lame user interface. I need this to

happen
as they type. I tried to modify a few, but I'm still new to JavaScript,

so
I didn't have much success. Do you know of such a script?

Thanks,

Russell Campbell

Will this help?

<html>
<head>
<title>commas.h tm</title>
<script type="text/javascript">
function commas(that) {
var temp = "";
var what = that.value.repl ace(/,/g,"");
if (what.length == 0) return;
for (i=0; i<what.length; i++) {
if (i > 0 && i % 3 == 0) temp += ",";
temp += what.charAt(i);
}
that.value = temp;
}
</script>
</head>
<body>
<form>
<input type="text" name="numb"
style="text-align:right"
onkeyup="commas (this)">
<input type="reset" value="Clear">
</form>
</body>
</html>

Of course, JavaScript has to be enabled.

Jul 23 '05 #7
"Russell Campbell" <no****@byteme. com> wrote in message
news:F1******** ********@newsre ad3.news.atl.ea rthlink.net...
Whoops - I was not careful enough in looking at this (I was happy just to
get a script that woked as the user typed). This adds the comma from left
to right, so if you enter 12345 - you get 123,45. I think using the
function function that will reverse text, then having it add the commas,
then reversing it back might fix the issue . . .


[snip]

Very poor quality control on my part -- sorry.

Try this though I may refine it:

<html>
<head>
<title>commas.h tm</title>
<script type="text/javascript">
function commas(that) {
var j = 0;
var temp = "";
var what = that.value.repl ace(/,/g,"");
if (what.length < 4) return;
for (i=what.length; i>-1; i--) {
temp = what.charAt(i) + temp;
if (i > 0 && j == 3) {
temp = "," + temp;
j = 0;
}
j++;
}
that.value = temp;
}
</script>
</head>
<body>
<form>
<input type="text" name="numb"
style="text-align:right"
onkeyup="commas (this)">
<input type="reset" value="Clear">
</form>
</body>
</html>
Jul 23 '05 #8
That works great for the commas. Thanks. It still has the problem with a
decimal place, but that's of no concern to me in this particular situation.
Try entering 123456.00 and you'll see what I'm talking about.

But it's always something, isn't it? I noticed that this seems to kill the
"select on entry" feature of the textbox. You know, where you tab to the
textbox and its contents are highlighted so that the first thing you type
replaces the highlighted text. The textboxes without this script still work
that way, but for the ones with the script the text highlights briefly and
then immediately goes away. This does not prevent the script from working,
but forces the user to stop and manually highlight the text. Kind of
strange . . . you wouldn't think a script associated with onKeyUp would
exhibit such behavior.

Thanks for the help! I must say I'm none too fond of JavaScript. Too
cryptic for my taste and the case sensitivity drives me batty. There's no
point in it. But, of course, it can help you accomplish some nifty things
in a browser.

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:Ye******** ************@co mcast.com...
"Russell Campbell" <no****@byteme. com> wrote in message
news:F1******** ********@newsre ad3.news.atl.ea rthlink.net...
Whoops - I was not careful enough in looking at this (I was happy just to
get a script that woked as the user typed). This adds the comma from
left
to right, so if you enter 12345 - you get 123,45. I think using the
function function that will reverse text, then having it add the commas,
then reversing it back might fix the issue . . .


[snip]

Very poor quality control on my part -- sorry.

Try this though I may refine it:

<html>
<head>
<title>commas.h tm</title>
<script type="text/javascript">
function commas(that) {
var j = 0;
var temp = "";
var what = that.value.repl ace(/,/g,"");
if (what.length < 4) return;
for (i=what.length; i>-1; i--) {
temp = what.charAt(i) + temp;
if (i > 0 && j == 3) {
temp = "," + temp;
j = 0;
}
j++;
}
that.value = temp;
}
</script>
</head>
<body>
<form>
<input type="text" name="numb"
style="text-align:right"
onkeyup="commas (this)">
<input type="reset" value="Clear">
</form>
</body>
</html>

Jul 23 '05 #9
Yep, a change to ignore anything but numbers helped me out. My version:

function FormatNumberWit hCommas(toTextb ox)
{
if (event.keyCode >= 96 && event.keyCode <= 105)
{
var j = 0;
var temp = "";
var what = toTextbox.value .replace(/,/g,"");
if (what.length < 4) return;
for (i=what.length; i>-1; i--)
{
temp = what.charAt(i) + temp;
if (i > 0 && j == 3)
{
temp = "," + temp;
j = 0;
}
j++;
}
toTextbox.value = temp;
}
}
Thanks for all your help. I really appreciate it.

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:Ye******** ************@co mcast.com...
"Russell Campbell" <no****@byteme. com> wrote in message
news:F1******** ********@newsre ad3.news.atl.ea rthlink.net...
Whoops - I was not careful enough in looking at this (I was happy just to
get a script that woked as the user typed). This adds the comma from
left
to right, so if you enter 12345 - you get 123,45. I think using the
function function that will reverse text, then having it add the commas,
then reversing it back might fix the issue . . .


[snip]

Very poor quality control on my part -- sorry.

Try this though I may refine it:

<html>
<head>
<title>commas.h tm</title>
<script type="text/javascript">
function commas(that) {
var j = 0;
var temp = "";
var what = that.value.repl ace(/,/g,"");
if (what.length < 4) return;
for (i=what.length; i>-1; i--) {
temp = what.charAt(i) + temp;
if (i > 0 && j == 3) {
temp = "," + temp;
j = 0;
}
j++;
}
that.value = temp;
}
</script>
</head>
<body>
<form>
<input type="text" name="numb"
style="text-align:right"
onkeyup="commas (this)">
<input type="reset" value="Clear">
</form>
</body>
</html>

Jul 23 '05 #10

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

Similar topics

3
1903
by: Gleep | last post by:
Hello, I am trying to develop an online application that utilzes a grid to save our sales people weekly productivty. We have a grid listing the days of the week going across the top Sunday - Saturday Along the left side is hours of the day broken up in half hour increments. 16 total In the gridl, we want the cells to include an image that has three color states that are clickable. For example 1 click is green 2nd click is red - 3rd...
6
1564
by: Kate | last post by:
Hi, we are now developing complex business application using Ajax framework. Could anyone point me to the editable javascript grid control which supports XML loading. Good javascript API would be a plus. And rather important thing - sometimes we need to represent hierarchically structured data, so tree view is a must. In most grid controls I looked through this last thing was missed. Thanks.
1
2001
by: Steve | last post by:
Hi I have a db with 2 tables that I want to bind to a grid depending on a selection in a Dropdownlist Also I want to be able to select a row from the gris to fill some textboxes. The databases are static in that they will not be updated they are just for viewing I have everything working but not to perfection
1
1309
by: Nikhil Patel | last post by:
Hi all, I have written an ASP.Net form that displays a sortable grid. I works fine in Internet Explorer. But it gives me an error when I try to display it in 3rd party application. The error says something like "object expected" in the following line: <td nowrap="nowrap"><a href="javascript:__doPostBack('dgProposals$_ctl1$_ctl0','')" style="color:White;">ProposalID</a></td> Please note that in the above line dgProposals is the grid's...
4
1584
by: Ed | last post by:
I have a new requisite from a client that wants to give the user the option to about a databind based on number of returned rows. if ds.rows.count < 1000 then dg.databind() etc. They want a message box to popup and let the user choose to abort the operation or let them continue with the long databind.
10
10380
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover 100% of the image, and all I would need is a set of horizontal and vertical lines over the image to create a grid overlay Is there a way I can leverage some functionality in Javascript to do this? I can't use any server side 3rd party...
6
7998
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data, call determined functions, and edit the data already present What will you need to use the grid? A table with standard markup and an ID to call the script that will turn the table into a grid Parameters: tabelaID => id of the table that will...
3
3044
by: jacelyn2211 | last post by:
Hi, i have a grid / table in html form as followings code,:- function addCritr(curno){ var f = document.frmC5W002; // check val 1 & val 2 range if (f.txt_val1.value!="" && f.txt_val2.value!=""){
2
2813
by: mdock | last post by:
Hello, I have a javascript grid on my ASP page which displays information about the history of specific units produced in our manufacturing facility. One of the results is the order number on which the unit was shipped. If the unit was not shipped, obviously there is no order number; the default value of this field on the data table is 0. Herein lies the problem; if the order number is 0, I do not want the grid to display anything. If...
5
9978
by: gaya3 | last post by:
Hi, can anyone find error in the following example <%@ include file="JspBean.jsp" %> <%@ page import="java.util.*"%> <html> <head> <%
0
9588
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
10589
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...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10327
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
9161
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
7625
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
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
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 we have to send another system
2
3828
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.