473,473 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

grid entries through javascript

nirmalsingh
218 New Member
i want to give entries(not using web controls) through grid plz help me with javascript sample code, i have no idea..
Jan 9 '07 #1
2 1076
acoder
16,027 Recognized Expert Moderator MVP
You'll have to give more details than that. I have no idea what you want. What do you mean by entries?
Jan 9 '07 #2
MoorthiDaniel
5 New Member
hi friends,

i want to show the data like msflexgrid . for that i wrote this. what the problem is it run succesfully under ie not in firefox. help me plz


<html>
<head>
<title>Getting Sticky</title>

<script type="text/javascript">

var iC =0 , iR = 0 ;
var tblWidth =0 ,tblheight = 0 ,tblColspan =0,tblRowspan =0;

function addCell(){
tblheight = "20";tblWidth = "50"; tblColspan = "2";tblRowspan = "1";
mainDivElement = document.getElementById("huti");
newNote = document.createElement("div");
newNote.setAttribute("id", "note" + iC);
newNote.style.width = tblColspan * tblWidth ;
newNote.style.height = tblRowspan * tblheight;
newNote.style.border ="1px ridge";
// newNote.style.borderleft = "0";
newNote.style.backgroundColor="#cccccc";
newNote.style.position="absolute";
newNote.style.top = parseInt(tblRowspan * iR * 21) + 'px';
newNote.style.left= parseInt(tblColspan * iC * 50) + 'px';
mainDivElement.appendChild(newNote);

newNote.innerHTML = iC;
newNote.setAttribute('align','center');
iC++;

}
function addRow() {
iR++;iC=0;
}
</script>



</head>
<body style="background-image:url(../ba.gif)">
<form id="noteForm">
<input type="button" value="Add Cell" onClick="addCell()"/>
<input type="button" value="Add Row" onClick="addRow()"/>
</form>
<div id="huti" style="border:1 #000099 solid;overflow:auto;height:250;width:50%;backgroun d:#FFFFFF">Digitech</div>
</body>
</html>
Jan 10 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
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...
3
by: Serious_Practitioner | last post by:
Good day, and thank you in advance for any assistance you can provide. I have a table in an Access 2000 .mdb file, and I've run into something odd and insolvable, at least for me. The database is...
1
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...
10
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...
7
by: Ray | last post by:
hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like, first time, it...
6
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,...
3
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...
2
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...
5
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
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
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
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,...
1
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...
0
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.