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

Home Posts Topics Members FAQ

Cross-browser DHTML/JS Excel-like "GRID"


Good afternoon,

Does anyone have any code that implements, or approaches implementing, a
cross-browser DHTML/JS solution to provide an Excel-like Grid on a web
page - I'm trying to convert an old Java client/server data maintenance
program to the web - the main display is in a grid format, which allows
the user to select multiple rows and edit them in a new grid, which
processes each grid line individually and validates and saves the data.
In addition users enter new data in another new grid that allows them
to manually type data in and val/save, or paste from, say, excel.

I thought I recalled seeing someone implement this sort of thing, and
I've actually gotten some of it to work IE-centric at one point, but
never finished it, and I'd love a more cross-browser (IE and FF at
least) approach.

Thanks!

Rick

Jan 19 '06 #1
2 3668
You casn use like absolutely positioned textboxes and the eval()
function no?

Jan 20 '06 #2
Questman wrote:

Good afternoon,

Does anyone have any code that implements, or approaches implementing, a
cross-browser DHTML/JS solution to provide an Excel-like Grid on a web
page
A 'grid' can be implemented as a table - get your data and write it into
the cells, one row per record. There are sortable tables that let you
sort by particular columns and to re-size them - but that may not be
what you want (it may add unnecessarily to the script overhead).

There is one here:

<URL:http://www.kryogenix.o rg/code/browser/sorttable/>

Its speed is OK for a few rows (or maybe 30 or 40 on fast machines), if
more are required the sort can be significantly optimised.

I'm trying to convert an old Java client/server data maintenance
program to the web
There are two basic ways to port the client component an application:

1. Make a duplicate of the interface and have it behave exactly as it
did on the original (well, as near as can be done anyway).

2. Look at *what* the application does and replicate that, taking
advantage of the new platform's strengths and avoiding or mitigating the
weaknesses.

Usually 1. is a waste of time, it is really only suitable where die-hard
users absolutely refuse to change they work or the new environment is
pretty much exactly the same as the old (and the application works well
enough that it doesn't need optimising).

Point 2 tries to actually deliver something better and more efficient -
if it doesn't, what's the point of the port? Trying to slavishly copy
functionality to another, very different platform will almost certainly
result in so many trade-offs that rather than a clean port you get some
kind of bastard child that kinda works but not really.

the main display is in a grid format, which allows
the user to select multiple rows and edit them in a new grid, which
processes each grid line individually and validates and saves the data.
You can do that by putting checkboxes on the rows to be edited then have
an 'edit selected' button, or you could make it so that clicking on a
row makes it editable. Or you could just load it into a form in a table
and let users edit as they please.

In addition users enter new data in another new grid that allows them
to manually type data in and val/save, or paste from, say, excel.
Use a form for manual entry, pasting from other applications is
problematic - text pasted from Excel seems to be tab delimited with
returns between records, so you may be able to paste into a text area
and parse it to put values into a form.

I thought I recalled seeing someone implement this sort of thing, and
I've actually gotten some of it to work IE-centric at one point, but
never finished it, and I'd love a more cross-browser (IE and FF at
least) approach.


That shouldn't be a problem if you develop in something other than IE
(say Mozilla or Firefox), then test in IE you will likely get the job
done faster and have fewer (maybe zero) cross-browser issues.
--
Rob
Jan 20 '06 #3

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

Similar topics

2
1630
by: Frances Del Rio | last post by:
please, can you go to http://www.francesdelrio.com/dhtml/ when you click the name of the character the font color for all the lines of that character should change.. this is a simple DHTML memo... but I find that none of the JS or DHTML code is working at all on page... if I download page and view it locally the JS & DHTML code work...
2
1571
by: Christopher Benson-Manica | last post by:
I want to load content into an iframe with script. None of the following methods, however, work on all browsers - any suggestions would be appreciated. // Assume that there is an element whose name and id are both // 'theIFrame'. var myUrl='http://www.yahoo.com' document.getElementById( 'theIFrame' ).location=myUrl;
1
1732
by: Steve | last post by:
Hi; I have heard about a few very good books on DHTML, but the most modern ones seem to have been published in 2002. Have any _significant_ changes in DHTML or the standard DOM happened since then or will those "best of the dhtml books" still do the job? If not, is there a place on the web that documents DHTML, well, in its latest...
3
2113
by: Steel | last post by:
Hi at all, I'ld want to know if position:absolute is crossbrowser. Infact I cannot position absolutely an element in the some place with fox-pro and MSIE6 There is always a little difference Steel
0
1596
by: Pablito | last post by:
Hi at all, I have a little problem about position:absolute. I want to position absolutely a menu bar. if I write: menubar {position: absolute;top:5.2em;} with MSIE the menu bar is too height on the screen and is right on FireFox elseif I write menubar {position: absolute;top:100px;} the menu bar is right with NSIE and not with FF How can...
2
1810
by: kae | last post by:
Hi there, this may not be an advanced problem but to me it is i got a great looking slide show script from this site (http://www.dhteumeuleu.com) but am having a lot of trouble adapting it to my needs. the problem is that when i add a rollover hyperlink to/in the page the slide show ceases to work. i hope somebody can help me with this. i have...
13
2761
by: Pablo | last post by:
Hi at all I'ld like to center a table crossbrowser therefore I wrote: <sryle> table {width:80%;margin-left:auto;margin-right:auto;} </style> firefox work fine but MSIE set the margin to zero Thank in advance
53
4095
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in javascript object and that's all. No need to know CSS hacks, no need to clutter your html with tables. ...
1
1748
by: par7133 | last post by:
Hi, Yea, XMLHttpRequest give out a crossbrowser problem managing the status change of the connection. Here the solution: var xmlhttp; xmlhttp=null;
0
2757
by: aucontraire | last post by:
I'm using a swf as a background for all of the content on a site. Every page has the same background (swf) but with different amount of content. I want to sync the height of the div of the content with the div of the swf so that the swf nicely frames the content. I have been able to find pieces of this overwhelming puzzle but have been quite...
0
7695
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...
0
7612
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...
0
8119
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...
1
7668
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...
0
5218
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...
0
3653
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...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
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
0
936
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.